wok-current view apache-mod-perl/receipt @ rev 25449
BootProg/boot32.asm: floppy chs support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 12 16:35:46 2022 +0000 (23 months ago) |
parents | cb67b4f8be05 |
children | 3ad63c8fc2f9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="apache-mod-perl"
4 VERSION="2.0.11"
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 current_version()
21 {
22 wget -O - http://perl.apache.org/download/index.html 2>/dev/null | \
23 sed '/Version/!d;s|.*ersion ||;s| .*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 perl Makefile.PL \
30 MP_APXS=/usr/bin/apxs \
31 MP_APR_CONFIG=/usr/bin/apr-1-config
32 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \
33 WrapXS/Apache2/Connection/Connection.xs
34 sed -i 's/>loglevel/>log.level/' \
35 WrapXS/Apache2/ServerRec/ServerRec.xs
36 make &&
37 make install DESTDIR=$DESTDIR
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/share/apache $fs/usr/share
48 }