IGNOREPATH=/etc:/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/var:/usr/src STRIPLIB=y STRIPBIN=y VERSION=5.8.0 # Additional required modules: DBI=1.37 DBDMYSQL=2.9002 PROGNAME="Perl $VERSION" DESC="\ perl (Practical Extraction and Report Language) \n\ \n\ Larry Wall's \"Practical Extraction and Report Language\". Perl is a \n\ language optimized for scanning arbitrary text files, extracting \n\ information from those text files, and printing reports based on that \n\ information. It's also a good language for many system management \n\ tasks. The language is intended to be practical (easy to use, \n\ efficient, complete) rather than beautiful (tiny, elegant, minimal)." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.perl.com PKGNAME=perl-$VERSION-s390-$BUILD TAG=REC compile() { # modules won't build if older stuff is around rm -rf /usr/lib/perl5 return tar -zxvf $CWD/perl-$VERSION.tar.gz cd perl-$VERSION/ chown -R root.root . find . -perm 555 -exec chmod 755 {} \; find . -perm 444 -exec chmod 644 {} \; # It is often suggested that we add this to the ./Configure: # -Dusethreads \ # However, this option is considered experimental, and is not # recommended for production systems. As such, we can't add # to our default perl build. If you want the option anyway, # just add it below and rebuild perl. # We no longer include suidperl. To quote the INSTALL file: # # Because of the buggy history of suidperl, and the difficulty # of properly security auditing as large and complex piece of # software as Perl, we cannot recommend using suidperl and the feature # should be considered deprecated. # Instead use for example 'sudo': http://www.courtesan.com/sudo/ ./Configure -de \ -Dinstallprefix=/package-perl/usr \ -Dprefix=/usr \ -Dcccdlflags='-fPIC' \ -Dman1dir=/package-perl/usr/man/man1 \ -Dman3dir=/package-perl/usr/man/man3 \ -Darchname=s390-linux make make test } install() { cd $TMP/perl-$VERSION make install INSTALLSITEMAN1DIR=/package-perl/usr/man/man1 INSTALLSITEMAN3DIR=/package-perl/usr/man/man3 mkdir -p /package-perl/usr/doc/perl-$VERSION cp -a AUTHORS Artistic Copying INSTALL MANIFEST README README.Y2K README.cn \ README.jp README.ko README.micro README.tw Todo.micro \ /package-perl/usr/doc/perl-$VERSION ( cd /package-perl/usr/bin ln -sf perl$VERSION perl ln -sf s2p psed ln -sf c2ph pstruct ) ( cd ext PATH=$PATH:/package-perl/usr/bin export PATH PERL5LIB="/package-perl/usr/lib/perl5/$VERSION:/package-perl/usr/lib/perl5/site_perl" export PERL5LIB ( tar xzvf $CWD/DBI-${DBI}.tar.gz cd DBI-${DBI} chown -R root.root . perl Makefile.PL make make test make install INSTALLSITEMAN1DIR=/package-perl/usr/man/man1 INSTALLSITEMAN3DIR=/package-perl/usr/man/man3 cp -p README /package-perl/usr/doc/perl-$VERSION/README.DBI-${DBI} chmod 644 /package-perl/usr/doc/perl-$VERSION/DBI-${DBI}/README ) ( tar xzvf $CWD/DBD-mysql-${DBDMYSQL}.tar.gz cd DBD-mysql-${DBDMYSQL} chown -R root.root . perl Makefile.PL make make test make install INSTALLSITEMAN1DIR=/package-perl/usr/man/man1 INSTALLSITEMAN3DIR=/package-perl/usr/man/man3 cp -p README /package-perl/usr/doc/perl-$VERSION/README.DBD-mysql-${DBDMYSQL} chmod 644 /package-perl/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}/* ) ) ( cd /package-perl/usr/man/ # mv man .. # cd .. # rmdir share # cd man for dir in 1 3; do ( cd man$dir rm -f *.gz gzip -9f *.$dir ) done cd man1 rm -rf pstruct.1.gz ; ln -sf c2ph.1.gz pstruct.1.gz rm -rf psed.1.gz ; ln -sf s2p.1.gz psed.1.gz ) } attributes() { chown -R root.bin $PKG/package-perl/usr/bin/ # chmod 755 $PKG/package-perl/usr/bin/dbi* find $PKG/package-perl/usr/man/ -type f | xargs chmod 644 } special() { cd $PKG mv package-perl/* ./ rmdir package-perl cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-perl/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }