wok-current view apache-mod-perl/receipt @ rev 25634

Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 14 08:12:37 2024 +0000 (20 months ago)
parents 1d0d8eba1e3d
children 5926178cd6fa
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 # Patch to use recent perl
30 # see https://github.com/Perl/perl5/issues/18617
31 patch -p1 < $stuff/perl-5.34.0.patch
33 perl Makefile.PL \
34 MP_APXS=/usr/bin/apxs \
35 MP_APR_CONFIG=/usr/bin/apr-1-config
36 sed -i 's/remote_ip/client_ip/;s/remote_addr/client_addr/' \
37 WrapXS/Apache2/Connection/Connection.xs
38 sed -i 's/>loglevel/>log.level/' \
39 WrapXS/Apache2/ServerRec/ServerRec.xs
40 make &&
41 make install DESTDIR=$DESTDIR
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib $fs/usr
51 cp -a $install/usr/share/apache $fs/usr/share
52 }