Debian-Apt-PM
view release on metacpan or search on metacpan
lib/Debian/Apt/PM/SettingUpBuildSystem.pod view on Meta::CPAN
sudo apt-get install libfile-find-rule-perl libfile-homedir-perl libio-compress-bzip2-perl
sudo cpan
# o conf connect_to_internet_ok yes
# o conf commit
sudo cpan -i CPAN::Patches::Plugin::Debian Debian::Apt::PM
sudo apt-get install debootstrap
sudo chown b /var/cache/apt/apt-pm/*
sudo bash -c 'echo "deb http://pkg-perl.alioth.debian.org/~jozef-guest/pmindex/ lenny main contrib non-free" >> /etc/apt/sources.list'
apt-pm update
sudo chown b /var/lib/dh-make-pm /var/lib/cpan-patches/
cd /var/lib/cpan-patches/
rmdir debian-set
sudo git clone git://github.com/jozef/CPAN-Patches-Debian-Set.git debian-set
rmdir set
sudo git clone git://github.com/jozef/CPAN-Patches-Example-Set.git set
sudo bash -c 'echo "deb http://ftp.at.debian.org/debian testing main contrib" >> /etc/apt/sources.list'
sudo bash -c 'echo "deb-src http://ftp.at.debian.org/debian testing main contrib" >> /etc/apt/sources.list'
sudo bash -c 'echo -e "Package: *\nPin: release a=stable\nPin-Priority: 700\n\nPackage: *\nPin: release a=testing\nPin-Priority: 600\n" >> /etc/apt/preferences'
lib/Debian/Apt/PM/SettingUpBuildSystem.pod view on Meta::CPAN
sudo cpan -i Array::Unique Email::Date::Format autodie Module::CoreList File::DirCompare Text::Diff
perl Build.PL && ./Build test && sudo ./Build install
=head2 create cowbuilder for lenny
sudo debootstrap lenny /var/cache/pbuilder/base.cow
sudo bash -c 'echo "127.0.0.1"' > /var/cache/pbuilder/base.cow/etc/hosts'
sudo bash -c 'echo "deb file:///var/cache/pbuilder/result/ unstable/" >> /var/cache/pbuilder/base.cow/etc/apt/sources.list'
sudo bash -c 'echo "deb file:///var/cache/pbuilder/result/ unstable/" >> /etc/apt/sources.list'
cd /var/cache/pbuilder/result/
sudo chown b .
wget http://github.com/jozef/Debian-Apt-PM/raw/master/examples/repo/Makefile
wget http://github.com/jozef/Debian-Apt-PM/raw/master/examples/repo/Release.conf
mkdir -p unstable/unsorted
vim Release.conf
# generate a key without passphrase
gpg --gen-key
gpg --export --armor | sudo apt-key add -
gpg --export --armor | sudo chroot /var/cache/pbuilder/base.cow/ apt-key add -
make
sudo apt-get update
( run in 0.415 second using v1.01-cache-2.11-cpan-71847e10f99 )