32 lines
927 B
Plaintext
32 lines
927 B
Plaintext
# Description: Persistent Perl interpreter for the Apache HTTP server
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# URL: http://perl.apache.org
|
|
# Depends on: apache, perl
|
|
# Group: apache
|
|
|
|
name=mod_perl
|
|
version=2.0.7
|
|
release=2
|
|
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
|
|
|
|
perl Makefile.PL \
|
|
MP_USE_DSO=1 \
|
|
MP_APXS=/usr/sbin/apxs
|
|
|
|
make
|
|
make -j1 DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/bin
|
|
rm -r $PKG/usr/lib/perl5/site_perl/5.16/linux-thread-multi/{Apache,Bundle}
|
|
rm $PKG/usr/man/man3/{Bundle::*,Apache::*}
|
|
find $PKG -regex '.*\(perllocal\.pod\|\.packlist\|\.bs\)' -delete
|
|
find $PKG -depth -empty -exec rm -rf {} \;
|
|
}
|