#!/bin/sh # an ugly, horrible hack to install the billions and billions # of dependencies for the fine Publican package # # must be run as rooooot cuz yer installing a bunch of stuff # # # script corrected and changed by Dimitris Tzemos # # if [ $(id -ru) -ne 0 ]; then echo "You need to be root to run this script." exit 1 fi #install rpm2tgz if it is not exist in the system if ! [ -x /usr/bin/rpm2targz ]; then slapt-get -y -i --reinstall rpm2tgz fi CWD=$(pwd) if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 LIBDIRSUFFIX="" THREADDIR="i486" ;; # arm*) ARCH=arm ;; *) ARCH=$( uname -m ) LIBDIRSUFFIX="64" THREADDIR="x86_64" ;; esac fi echo $LIBDIRSUFFIX echo $THREADDIR # and so it begins... perl -MCPAN -e 'install Devel::Cover' ## commented modules are already present in default Slackware #perl -MCPAN -e 'install Module::Build' #perl -MCPAN -e 'install Test::Exception' perl -MCPAN -e 'install Test::More' perl -MCPAN -e 'install Test::Pod' perl -MCPAN -e 'install Test::Pod::Coverage' perl -MCPAN -e 'install Perl::Critic' ## perl::critic satisfies a load of deps unless MCPAN is configured incorrectly perl -MCPAN -e 'install Test::Perl::Critic' #perl -MCPAN -e 'install Archive::Tar' #perl -MCPAN -e 'install Archive::Zip' #perl -MCPAN -e 'install Carp' perl -MCPAN -e 'install Config::Simple' #perl -MCPAN -e 'install Cwd' #perl -MCPAN -e 'install Data::Dumper' perl -MCPAN -e 'install DateTime' perl -MCPAN -e 'install DateTime::Format::Parse' perl -MCPAN -e 'install Encode' perl -MCPAN -e 'install File::Copy::Recursive' #perl -MCPAN -e 'install File::Find' perl -MCPAN -e 'install File::Find::Read' perl -MCPAN -e 'install File::Find::Rule' #perl -MCPAN -e 'install File::Path' perl -MCPAN -e 'install File::pushd' perl -MCPAN -e 'install HTML::FormatText' perl -MCPAN -e 'install HTML::TreeBuilder' perl -MCPAN -e 'install I18N::LangTags::List' perl -MCPAN -e 'install Bundle::Compress::Zlib' # install PerlMagick wget http://www.slackermedia.info/downloads/PerlMagick.tar.gz MDCHECK=$(md5sum PerlMagick.tar.gz | cut -f1 -d " ") if [ "X$MDCHECK" != "Xacca39f6bdc3b43b7ecf64dcccac99bb" ] then echo "MD5sum check failed. Aborting." && exit else tar -xf PerlMagick.tar.gz; cd PerlMagick #wget http://search.cpan.org/CPAN/authors/id/J/JC/JCRISTY/PerlMagick-6.67.tar.gz wget http://ftp.mirror.8086.net/pub/sites/CPAN/authors/John_Cristy/PerlMagick-6.67.tar.gz ./PerlMagick.SlackBuild installpkg /tmp/PerlMagick*SBo.tgz cd $CWD fi # more modules perl -MCPAN -e 'install Image::Size' perl -MCPAN -e 'install Locale::Maketext::Gettext' perl -MCPAN -e 'install Locale::Language' perl -MCPAN -e 'install Locale::PO' # steal Makefile::Parser wget http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/x86_64/os/Packages/perl-Makefile-Parser-0.211-3.fc14.noarch.rpm MDCHECK=$(md5sum perl-Makefile-Parser-0.211-3.fc14.noarch.rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "X2b484e7aed474fe961d308babcf70f36" ] then echo "MD5sum check failed. Aborting." && exit else rpm2tgz perl-Makefile-Parser-0.211-3.fc14.noarch.rpm installpkg perl-Makefile-Parser-0.211-3.fc14.noarch.tgz # note to self.. we have to move Makefile later fi perl -MCPAN -e 'install Syntax::Highlight::Engine::Kate' # perl -MCPAN -e 'install Term::ANSIColor' # perl -MCPAN -e 'install Text::Wrap' # perl -MCPAN -e 'install Test::Pod' perl -MCPAN -e 'install XML::LibXML' perl -MCPAN -e 'install XML::LibXSLT' # perl -MCPAN -e 'install XML::Simple' perl -MCPAN -e 'install XML::TreeBuilder' yes | perl -MCPAN -e 'install Template::Plugins' perl -MCPAN -e 'install DBD::SQLite' perl -MCPAN -e 'install DateTime::Format::DateParse' # install Archive::Zip wget http://slackbuilds.org/slackbuilds/13.37/perl/perl-Archive-Zip.tar.gz MDCHECK=$(md5sum perl-Archive-Zip.tar.gz | cut -f1 -d " ") if [ "X$MDCHECK" != "X9ba5b3026c8d2ff05ae9c4e8c7e70385" ] then echo "MD5sum check failed. Aborting." && exit else tar -xf perl-Archive-Zip.tar.gz; cd perl-Archive-Zip wget http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Archive-Zip-1.31_01.tar.gz ./perl-Archive-Zip.SlackBuild installpkg /tmp/perl-Archive-Zip*SBo.tgz cd $CWD fi # steal batik wget http://sparc.koji.fedoraproject.org/packages/batik/1.7/11.fc15/noarch/batik-1.7-11.fc15.noarch.rpm MDCHECK=$(md5sum batik*rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "Xa74c5e7a07e2e9de275f3a221f6e0366" ] then echo "MD5sum check failed. Aborting. It's for your own good." && exit else rpm2tgz batik-1.7-11.fc15.noarch.rpm installpkg batik-1.7-11.fc15.noarch.tgz fi # I don't mess with peoples fonts, so they can do this on their own as needed echo "Skipping fonts. WARNING: This may affect your ability to properly render certain languages in your documents!" echo "If you need better language support, please install these fonts:" echo " " echo "fonts-bengali - http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-bengali-fonts-2.4.3-7.fc15.noarch.rpm fonts-chinese - package unknown fonts-chinese-zysong - available via Red Hat supplementary CD only due to licensing restrictions on the font fonts-gujarati http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-gujarati-fonts-2.4.5-1.fc15.noarch.rpm fonts-hindi - package unknown fonts-japanese - package unknown fonts-kannada http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-kannada-fonts-2.4.5-8.fc15.noarch.rpm fonts-korean - package unknown fonts-malayalam http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-malayalam-fonts-2.4.4-9.fc15.noarch.rpm fonts-oriya http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-oriya-fonts-2.4.3-9.fc15.noarch.rpm fonts-punjabi http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-punjabi-fonts-2.4.4-4.fc15.noarch.rpm fonts-sinhala - package unknown fonts-tamil http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-tamil-fonts-2.4.5-9.fc15.noarch.rpm fonts-telugu http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lohit-telugu-fonts-2.4.5-9.fc15.noarch.rpm cjkuni-uming-fonts http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/cjkuni-uming-fonts-0.2.20080216.1-47.fc15.noarch.rpm ipa-gothic-fonts http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/ipa-gothic-fonts-003.02-6.fc15.noarch.rpm ipa-pgothic-fonts http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/ipa-pgothic-fonts-003.02-6.fc15.noarch.rpm lklug-fonts http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/lklug-fonts-0.6-5.20090803cvs.fc15.noarch.rpm baekmuk-ttf-batang-fonts http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/baekmuk-ttf-batang-fonts-2.2-30.fc15.noarch.rpm baekmuk-ttf-hline-fonts http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/baekmuk-ttf-hline-fonts-2.2-30.fc15.noarch.rpm baekmuk-ttf-fonts-common http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/baekmuk-ttf-fonts-common-2.2-30.fc15.noarch.rpm" echo " " # And finally...steal publican wget http://download.fedora.redhat.com/pub/fedora/linux/releases/16/Everything/x86_64/os/Packages/publican-2.7-1.fc16.noarch.rpm MDCHECK=$(md5sum publican-2.7-1.fc16.noarch.rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "X6f3a16015525e7b501c04f2308cc128a" ] then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit else rpm2tgz publican-2.7-1.fc16.noarch.rpm installpkg publican-2.7-1.fc16.noarch.tgz fi #wget http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/publican-2.5-2.fc15.noarch.rpm #MDCHECK=$(md5sum publican-2.5-2.fc15.noarch.rpm | cut -f1 -d " ") #if [ "X$MDCHECK" != "Xde198f8772d9d8bb32e422f4b17c9292" ] #then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit #else #rpm2tgz publican-2.5-2.fc15.noarch.rpm #installpkg publican-2.5-2.fc15.noarch.tgz #fi # move publican and makefile from the rpm installdir # to a location to some place in Slackwares default @INC mv /usr/share/perl5/vendor_perl/Publican /usr/lib$LIBDIRSUFFIX/perl5/vendor_perl/5.12.3/$THREADDIR-linux-thread-multi/ mv /usr/share/perl5/vendor_perl/Publican.pm /usr/lib$LIBDIRSUFFIX/perl5/vendor_perl/5.12.3/$THREADDIR-linux-thread-multi/ mv /usr/share/perl5/Makefile /usr/lib$LIBDIRSUFFIX/perl5/vendor_perl/5.12.3/$THREADDIR-linux-thread-multi/ # steal some pretty branding templates wget http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/publican-genome-1.0-4.fc15.noarch.rpm MDCHECK=$(md5sum publican-genome*rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "X6eb86ee6caa81e822d7e65a0e2777484" ] then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit else rpm2tgz publican-genome-1.0-4.fc15.noarch.rpm installpkg publican-genome-1.0-4.fc15.noarch.tgz fi wget http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/publican-fedora-2.0-0.fc15.noarch.rpm MDCHECK=$(md5sum publican-fedora*rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "Xc99cea961893f091cdf032f371418264" ] then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit else rpm2tgz publican-fedora-2.0-0.fc15.noarch.rpm installpkg publican-fedora-2.0-0.fc15.noarch.tgz fi wget http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/publican-jboss-2.4-2.fc15.noarch.rpm MDCHECK=$(md5sum publican-jboss*rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "X348fa982905f33c86660c679e1a87551" ] then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit else rpm2tgz publican-jboss-2.4-2.fc15.noarch.rpm installpkg publican-jboss-2.4-2.fc15.noarch.tgz fi wget http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/publican-ovirt-1.3-1.fc15.noarch.rpm MDCHECK=$(md5sum publican-ovirt*rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "X5423bcc1db5d306549158299d2c6f64e" ] then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit else rpm2tgz publican-ovirt-1.3-1.fc15.noarch.rpm installpkg publican-ovirt-1.3-1.fc15.noarch.tgz fi wget http://download.fedora.redhat.com/pub/fedora/linux/releases/15/Everything/x86_64/os/Packages/publican-redhat-2.7-2.fc15.noarch.rpm MDCHECK=$(md5sum publican-redhat*rpm | cut -f1 -d " ") if [ "X$MDCHECK" != "Xe815baba46e8ebd50398e90cba1c0e7e" ] then echo "MD5sum check failed. Aborting. Check the downloaded files before continuing manually; it appears they may have been incomplete or insecure." && exit else rpm2tgz publican-redhat-2.7-2.fc15.noarch.rpm installpkg publican-redhat-2.7-2.fc15.noarch.tgz fi # your journey ends.