wok-6.x annotate apache-mod-perl/receipt @ rev 17545
Up parted (3.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 27 17:35:53 2015 +0100 (2015-01-27) |
parents | efe4d0b688a9 |
children | ca4a422cce07 |
rev | line source |
---|---|
erjo@3677 | 1 # SliTaz package receipt. |
erjo@3677 | 2 |
erjo@3677 | 3 PACKAGE="apache-mod-perl" |
pascal@15374 | 4 VERSION="2.0.8" |
erjo@3677 | 5 CATEGORY="network" |
erjo@3677 | 6 SHORT_DESC="PERL module for Apache" |
erjo@3677 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15361 | 8 LICENSE="Apache" |
erjo@3677 | 9 SOURCE="mod_perl" |
erjo@3677 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
erjo@3677 | 11 WEB_SITE="http://perl.apache.org/" |
pascal@15374 | 12 WGET_URL="http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$TARBALL" |
erjo@3677 | 13 |
pascal@15380 | 14 DEPENDS="apache perl-thread" |
pascal@15380 | 15 BUILD_DEPENDS="perl-thread gdbm-dev apache-dev apr-dev apr-util-dev apache" |
pascal@15361 | 16 |
erjo@3677 | 17 # Rules to configure and make the package. |
erjo@3677 | 18 compile_rules() |
erjo@3677 | 19 { |
erjo@3677 | 20 cd $src |
pascal@15367 | 21 perl Makefile.PL MP_APXS=/usr/bin/apxs \ |
pascal@15374 | 22 MP_APR_CONFIG=/usr/bin/apr-1-config |
pascal@15374 | 23 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \ |
pascal@15374 | 24 WrapXS/Apache2/Connection/Connection.xs |
pascal@15374 | 25 sed -i 's/>loglevel/>log.level/' \ |
pascal@15374 | 26 WrapXS/Apache2/ServerRec/ServerRec.xs |
pascal@15367 | 27 make && |
pascal@15361 | 28 make DESTDIR=$DESTDIR install |
erjo@3677 | 29 } |
erjo@3677 | 30 |
erjo@3677 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3677 | 32 genpkg_rules() |
erjo@3677 | 33 { |
erjo@3677 | 34 mkdir -p $fs/usr/share |
pascal@15361 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15361 | 36 cp -a $install/usr/lib $fs/usr |
pascal@15361 | 37 cp -a $install/usr/share/apache $fs/usr/share |
erjo@3677 | 38 |
erjo@3677 | 39 } |