wok-6.x annotate apache-mod-perl/receipt @ rev 24500
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 19:01:32 2022 +0000 (2022-02-19) |
parents | d9097791a13e |
children | cb67b4f8be05 |
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 |
pascal@24103 | 17 current_version() |
pascal@24103 | 18 { |
pascal@24103 | 19 wget -O - http://perl.apache.org/download/index.html 2>/dev/null | \ |
pascal@24103 | 20 sed '/Version/!d;s|.*ersion ||;s| .*||;q' |
pascal@24103 | 21 } |
pascal@24103 | 22 |
erjo@3677 | 23 # Rules to configure and make the package. |
erjo@3677 | 24 compile_rules() |
erjo@3677 | 25 { |
erjo@3677 | 26 cd $src |
pascal@15367 | 27 perl Makefile.PL MP_APXS=/usr/bin/apxs \ |
pascal@15374 | 28 MP_APR_CONFIG=/usr/bin/apr-1-config |
pascal@15374 | 29 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \ |
pascal@15374 | 30 WrapXS/Apache2/Connection/Connection.xs |
pascal@15374 | 31 sed -i 's/>loglevel/>log.level/' \ |
pascal@15374 | 32 WrapXS/Apache2/ServerRec/ServerRec.xs |
pascal@15367 | 33 make && |
pascal@15361 | 34 make DESTDIR=$DESTDIR install |
erjo@3677 | 35 } |
erjo@3677 | 36 |
erjo@3677 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3677 | 38 genpkg_rules() |
erjo@3677 | 39 { |
erjo@3677 | 40 mkdir -p $fs/usr/share |
pascal@15361 | 41 cp -a $install/usr/bin $fs/usr |
pascal@15361 | 42 cp -a $install/usr/lib $fs/usr |
pascal@15361 | 43 cp -a $install/usr/share/apache $fs/usr/share |
erjo@3677 | 44 |
erjo@3677 | 45 } |