wok view apache-mod-perl/receipt @ rev 25734

updated sc-im (-> 0.8.4)
author Hans-G?nter Theisgen
date Thu Aug 22 14:48:42 2024 +0100 (4 months ago)
parents d80275dcc2c7
children
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-perl"
4 VERSION="2.0.13"
5 CATEGORY="network"
6 SHORT_DESC="PERL module for Apache"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="Apache"
9 WEB_SITE="https://perl.apache.org/"
10 REPOLOGY="apmod:perl"
12 SOURCE="mod_perl"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 #WGET_URL="http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/$TARBALL"
15 WGET_URL="https://archive.apache.org/dist/perl/$TARBALL"
17 DEPENDS="apache perl-thread"
18 BUILD_DEPENDS="apache apache-dev apr-dev apr-util-dev gdbm-dev perl-thread"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - http://perl.apache.org/download/index.html 2>/dev/null | \
24 sed '/Version/!d;s|.*ersion ||;s| .*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 perl Makefile.PL \
31 MP_APXS=/usr/bin/apxs \
32 MP_APR_CONFIG=/usr/bin/apr-1-config
33 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \
34 WrapXS/Apache2/Connection/Connection.xs
35 sed -i 's/>loglevel/>log.level/' \
36 WrapXS/Apache2/ServerRec/ServerRec.xs
37 make &&
38 make install DESTDIR=$DESTDIR
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib $fs/usr
48 cp -a $install/usr/share/apache $fs/usr/share
49 }