opt/mod_perl/Pkgfile

32 lines
927 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Persistent Perl interpreter for the Apache HTTP server
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2006-02-23 16:26:10 +01:00
# URL: http://perl.apache.org
2006-12-01 09:41:43 +01:00
# Depends on: apache, perl
2006-02-23 16:26:10 +01:00
# Group: apache
name=mod_perl
2012-06-16 10:51:34 +02:00
version=2.0.7
release=2
2006-02-23 16:26:10 +01:00
source=(http://perl.apache.org/dist/$name-$version.tar.gz)
build(){
cd $name-$version
# http://pkgs.fedoraproject.org/cgit/mod_perl.git/plain/mod_perl-2.0.5-nolfs.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=730832
sed -i '2210c\return 0;' lib/Apache2/Build.pm
2006-02-23 16:26:10 +01:00
perl Makefile.PL \
MP_USE_DSO=1 \
MP_APXS=/usr/sbin/apxs
2008-04-17 09:25:18 +02:00
2006-02-23 16:26:10 +01:00
make
make -j1 DESTDIR=$PKG install
2008-04-17 09:25:18 +02:00
2006-02-23 16:26:10 +01:00
rm -r $PKG/usr/bin
rm -r $PKG/usr/lib/perl5/site_perl/5.16/linux-thread-multi/{Apache,Bundle}
2006-02-23 16:26:10 +01:00
rm $PKG/usr/man/man3/{Bundle::*,Apache::*}
find $PKG -regex '.*\(perllocal\.pod\|\.packlist\|\.bs\)' -delete
find $PKG -depth -empty -exec rm -rf {} \;
}