IGNOREPATH=/etc:/home:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/var:/usr/src STRIPLIB=y STRIPBIN=y VERSION=5.8.4 # Additional required modules: DBI=1.42 DBDMYSQL=2.9003 XMLPARSER=2.34 # Also use modules that were installed for earlier perl versions. #MODCOMPAT="-Dinc_version_list='5.8.3 5.8.2 5.8.1 5.8.0'" 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=http://www.perl.com/download.csp PKGNAME=perl-$VERSION-s390-$BUILD TAG=REC compile() { # modules won't build if older stuff is around rm -rf /usr/lib/perl5 tar -yxvf $CWD/perl-$VERSION.tar.bz2 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 uncomment the lines below and rebuild perl. # # Update: while it's no longer considered experimental (and # yes, other vendors do ship threaded perl by default), enabling # threads causes a huge (>20%) performance hit, and I've seen # other reports of instability. A few things "need" perl threads # but usually that's simply because they were compiled against # a threaded libperl... not any real need. IMHO, shipping a # threaded perl by default would not be a good idea. It's only # because everyone else does it that it's continually # reconsidered here. #USE_THREADS="-Dusethreads -Duseithreads" # 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/ cd perl-$VERSION/ ./Configure -de \ -Dprefix=/usr \ -Dcccdlflags='-fPIC' \ -Dinstallprefix=/usr \ -Doptimize=-O2 \ $USE_THREADS \ -Dinc_version_list='5.8.3 5.8.2 5.8.1 5.8.0' \ -Darchname=s390-linux make make test } install() { cd $TMP/perl-$VERSION make install DESTDIR=/package-perl 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 # Symlinks that replace hard links ( cd /package-perl/usr/bin ln -sf perl$VERSION perl ln -sf s2p psed ln -sf c2ph pstruct ) ( cd ext PATH=/package-perl/usr/bin:$PATH 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 DESTDIR=/package-perl mkdir -p /package-perl/usr/doc/perl-$VERSION/DBI-${DBI} cp -a README /package-perl/usr/doc/perl-$VERSION/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 DESTDIR=/package-perl mkdir -p /package-perl/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL} cp -a INSTALL.html README TODO /package-perl/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL} chmod 644 /package-perl/usr/doc/perl-$VERSION/DBD-mysql-${DBDMYSQL}/* ) ( tar xzvf $CWD/XML-Parser-${XMLPARSER}.tar.gz cd XML-Parser-${XMLPARSER} chown -R root.root . perl Makefile.PL make make test make install DESTDIR=/package-perl mkdir -p /package-perl/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER} cp -a README /package-perl/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER} chmod 644 /package-perl/usr/doc/perl-$VERSION/XML-Parser-${XMLPARSER}/* ) ) ( cd /package-perl/usr/share/ 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 }