1
0
forked from ports/opt
opt/mod_perl/Pkgfile
2005-11-16 18:05:23 +00:00

31 lines
816 B
Plaintext

# Description: Persistent Perl interpreter for the Apache HTTP server
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
# URL: http://perl.apache.org
# Depends on: apache, p5-cgi
# Group: apache
name=mod_perl
version=2.0.2
release=1
source=(http://perl.apache.org/dist/$name-$version.tar.gz)
build(){
cd $name-$version
perl Makefile.PL \
MP_USE_DSO=1 \
MP_APXS=/usr/sbin/apxs
make
make DESTDIR=$PKG install
rm -r $PKG/usr/bin
rm -r $PKG/usr/lib/perl5/site_perl/5.8.6/linux/{Apache,Bundle}
rm $PKG/usr/man/man3/{Bundle::*,Apache::*}
find $PKG \
-name perllocal.pod -or \
-name .packlist -or \
-name '*.bs' -or \
-name autosplit.ix | xargs rm
find $PKG -depth -empty -exec rm -rf {} \;
}