wok view perl-net-pcap/receipt @ rev 24244

updated perl-net-pcap (0.18 -> 0.20)
author Hans-G?nter Theisgen
date Sun Jan 02 07:38:44 2022 +0100 (2022-01-02)
parents ca4a422cce07
children bd71c410ddda
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-net-pcap"
4 VERSION="0.20"
5 CATEGORY="development"
6 SHORT_DESC="Net::Pcap module is a Perl extension."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://metacpan.org/pod/Net::Pcap"
10 REPOLOGY="perl:net-pcap"
11 SOURCE="Net-Pcap"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://www.cpan.org/modules/by-module/Net/$TARBALL"
14 DEPENDS="perl libpcap"
15 BUILD_DEPENDS="perl libpcap libpcap-dev"
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # libpcap 1.9.0 update
27 sed '/pcap_samp {/{NNNNNNNNNd};/pcap_rmtauth {/{NNNNd}' -i stubs.inc
28 sed 's|cpp_defines(@funcs)|&. "-DHAVE_PCAP_SETSAMPLING"|' -i Makefile.PL
30 perl Makefile.PL &&
31 make &&
32 make install DESTDIR=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cook_copy_folders lib
39 }