2006-02-23 16:26:10 +01:00
|
|
|
|
# Description: Perl programming language
|
|
|
|
|
# URL: http://www.perl.org/
|
2006-04-20 22:37:09 +02:00
|
|
|
|
# Maintainer: Per Lid<69>n, core-ports at crux dot nu
|
2006-02-23 16:26:10 +01:00
|
|
|
|
# Depends on: db, gdbm
|
|
|
|
|
|
|
|
|
|
name=perl
|
2006-02-23 19:05:27 +01:00
|
|
|
|
version=5.8.8
|
|
|
|
|
release=1
|
2006-02-23 16:26:10 +01:00
|
|
|
|
source=(ftp://ftp.perl.org/pub/CPAN/src/$name-$version.tar.gz \
|
|
|
|
|
$name-$version-CVE-2005-3962.patch)
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd $name-$version
|
|
|
|
|
patch -p4 < ../$name-$version-CVE-2005-3962.patch
|
|
|
|
|
./Configure -des \
|
|
|
|
|
-Dprefix=/usr \
|
|
|
|
|
-Darchname=linux \
|
|
|
|
|
-Dman1ext=1pm \
|
|
|
|
|
-Dman3ext=3pm \
|
|
|
|
|
-Dman1dir=/usr/man/man1 \
|
|
|
|
|
-Dman3dir=/usr/man/man3 \
|
|
|
|
|
-Di_gdbm \
|
|
|
|
|
-Di_db \
|
|
|
|
|
-Doptimize="$CFLAGS"
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
ln -sf perl$version $PKG/usr/bin/perl
|
|
|
|
|
ln -sf c2ph $PKG/usr/bin/pstruct
|
|
|
|
|
ln -sf s2p $PKG/usr/bin/psed
|
|
|
|
|
ln -sf c2ph.1pm $PKG/usr/man/man1/pstruct.1pm
|
|
|
|
|
ln -sf s2p.1pm $PKG/usr/man/man1/psed.1pm
|
|
|
|
|
find $PKG \
|
|
|
|
|
-iname 'TODO*' -or \
|
|
|
|
|
-iname 'Change*' -or \
|
|
|
|
|
-iname 'README*' -or \
|
|
|
|
|
-name '*.bs' -or \
|
|
|
|
|
-name .packlist -or \
|
|
|
|
|
-name perllocal.pod | xargs rm
|
|
|
|
|
find $PKG -depth -empty -exec rmdir {} \;
|
|
|
|
|
chmod -R +w $PKG
|
|
|
|
|
}
|