Making installing Koha dependencies easier

I did some work with CPANPLUS specifically using cpan2dist and CPANPLUS::Dist::Deb to create a distribution using Bundle::KohaSupport as the base.

So now we can do this, add a line to our sources.list
deb http://apt.workbuffer.org/ unstable main

run apt-get update
Then

chris@ubuntu:~/git/koha.git$ sudo apt-get install cpan-libbundle-kohasupport-perl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cpan-libalgorithm-checkdigits-perl cpan-libansicolor-perl cpan-libbiblio-endnotestyle-perl cpan-libcgi-perl
cpan-libclass-adapter-perl cpan-libconstant-perl cpan-libdata-dumper-perl cpan-libdigest-md5-perl
cpan-libexporter-perl cpan-libgetopt-long-perl cpan-libhtml-template-pro-perl cpan-liblocale-codes-perl
cpan-libmime-base64-perl cpan-libmodule-pluggable-perl cpan-libparams-util-perl cpan-libperl-ldap-perl
cpan-libpod-parser-perl cpan-libscalar-list-utils-perl cpan-libsms-send-perl cpan-libtest-manifest-perl
cpan-libtest-simple-perl cpan-libtext-csv-perl cpan-libtext-csv-xs-perl cpan-libtext-tabs-wrap-perl
cpan-libtime-hires-perl cpan-libunicode-normalize-perl cpan-libxml-libxml-perl cpan-libxml-rss-perl
libbarcode-code128-perl libclass-returnvalue-perl libdata-ical-perl libdigest-perl libfile-temp-perl
libgd-barcode-perl libgd-gd2-noxpm-perl libhtml-scrubber-perl libnet-z3950-zoom-perl
libpdf-reuse-barcode-perl libpdf-reuse-perl libschedule-at-perl libtext-vfile-asdata-perl
The following NEW packages will be installed:
cpan-libalgorithm-checkdigits-perl cpan-libansicolor-perl cpan-libbiblio-endnotestyle-perl
cpan-libbundle-kohasupport-perl cpan-libcgi-perl cpan-libclass-adapter-perl cpan-libconstant-perl
cpan-libdata-dumper-perl cpan-libdigest-md5-perl cpan-libexporter-perl cpan-libgetopt-long-perl
cpan-libhtml-template-pro-perl cpan-liblocale-codes-perl cpan-libmime-base64-perl
cpan-libmodule-pluggable-perl cpan-libparams-util-perl cpan-libperl-ldap-perl cpan-libpod-parser-perl
cpan-libscalar-list-utils-perl cpan-libsms-send-perl cpan-libtest-manifest-perl cpan-libtest-simple-perl
cpan-libtext-csv-perl cpan-libtext-csv-xs-perl cpan-libtext-tabs-wrap-perl cpan-libtime-hires-perl
cpan-libunicode-normalize-perl cpan-libxml-libxml-perl cpan-libxml-rss-perl libbarcode-code128-perl
libclass-returnvalue-perl libdata-ical-perl libdigest-perl libfile-temp-perl libgd-barcode-perl
libgd-gd2-noxpm-perl libhtml-scrubber-perl libnet-z3950-zoom-perl libpdf-reuse-barcode-perl libpdf-reuse-perl
libschedule-at-perl libtext-vfile-asdata-perl
0 upgraded, 42 newly installed, 0 to remove and 39 not upgraded.
Need to get 3046kB of archives.
After this operation, 23.6MB of additional disk space will be used.
Do you want to continue [Y/n]?

The trick thing is, it will use the packages in the main debian repo first (like libfile-temp-perl above) and then use the package built from cpan if it can’t find one (like cpan-libtest-manifest-perl)

Ive only built packages for amd64 at this point (well a lot are architecture independent), but if others would find it useful I can add i386 packages to my repo as well.