wok-6.x view apache-mod-perl/receipt @ rev 24380
blender: added implicite build dependency libboost-locale
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 06 10:08:38 2022 +0100 (2022-02-06) |
parents | d9097791a13e |
children | cb67b4f8be05 |
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-perl"
4 VERSION="2.0.8"
5 CATEGORY="network"
6 SHORT_DESC="PERL module for Apache"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="Apache"
9 SOURCE="mod_perl"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://perl.apache.org/"
12 WGET_URL="http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$TARBALL"
14 DEPENDS="apache perl-thread"
15 BUILD_DEPENDS="perl-thread gdbm-dev apache-dev apr-dev apr-util-dev apache"
17 current_version()
18 {
19 wget -O - http://perl.apache.org/download/index.html 2>/dev/null | \
20 sed '/Version/!d;s|.*ersion ||;s| .*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 perl Makefile.PL MP_APXS=/usr/bin/apxs \
28 MP_APR_CONFIG=/usr/bin/apr-1-config
29 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \
30 WrapXS/Apache2/Connection/Connection.xs
31 sed -i 's/>loglevel/>log.level/' \
32 WrapXS/Apache2/ServerRec/ServerRec.xs
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share/apache $fs/usr/share
45 }