wok annotate apache-mod-perl/receipt @ rev 25572
BootProg: fix boot16.asm (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 13 13:34:41 2023 +0000 (15 months ago) |
parents | cb67b4f8be05 |
children | d80275dcc2c7 |
rev | line source |
---|---|
erjo@3677 | 1 # SliTaz package receipt. |
erjo@3677 | 2 |
erjo@3677 | 3 PACKAGE="apache-mod-perl" |
Hans-G?nter@25124 | 4 VERSION="2.0.11" |
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" |
Hans-G?nter@25124 | 9 WEB_SITE="https://perl.apache.org/" |
Hans-G?nter@25124 | 10 REPOLOGY="apmod:perl" |
Hans-G?nter@25124 | 11 |
erjo@3677 | 12 SOURCE="mod_perl" |
erjo@3677 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@15374 | 14 WGET_URL="http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$TARBALL" |
Hans-G?nter@25124 | 15 WGET_URL="https://archive.apache.org/dist/perl/$TARBALL" |
erjo@3677 | 16 |
pascal@15380 | 17 DEPENDS="apache perl-thread" |
Hans-G?nter@25124 | 18 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev gdbm-dev perl-thread" |
pascal@15361 | 19 |
pascal@24103 | 20 current_version() |
pascal@24103 | 21 { |
pascal@24103 | 22 wget -O - http://perl.apache.org/download/index.html 2>/dev/null | \ |
pascal@24103 | 23 sed '/Version/!d;s|.*ersion ||;s| .*||;q' |
pascal@24103 | 24 } |
pascal@24103 | 25 |
erjo@3677 | 26 # Rules to configure and make the package. |
erjo@3677 | 27 compile_rules() |
erjo@3677 | 28 { |
Hans-G?nter@25124 | 29 perl Makefile.PL \ |
Hans-G?nter@25124 | 30 MP_APXS=/usr/bin/apxs \ |
Hans-G?nter@25124 | 31 MP_APR_CONFIG=/usr/bin/apr-1-config |
pascal@15374 | 32 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \ |
pascal@15374 | 33 WrapXS/Apache2/Connection/Connection.xs |
pascal@15374 | 34 sed -i 's/>loglevel/>log.level/' \ |
pascal@15374 | 35 WrapXS/Apache2/ServerRec/ServerRec.xs |
pascal@15367 | 36 make && |
Hans-G?nter@25124 | 37 make install DESTDIR=$DESTDIR |
erjo@3677 | 38 } |
erjo@3677 | 39 |
erjo@3677 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3677 | 41 genpkg_rules() |
erjo@3677 | 42 { |
erjo@3677 | 43 mkdir -p $fs/usr/share |
Hans-G?nter@25124 | 44 |
Hans-G?nter@25124 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25124 | 46 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@25124 | 47 cp -a $install/usr/share/apache $fs/usr/share |
erjo@3677 | 48 } |