wok-current view perl-net-pcap/receipt @ rev 24561
updated fping (4.2 -> 5.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 16:30:10 2022 +0100 (2022-02-25) |
parents | be4f6d921ef0 |
children |
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
29 # no longer needed with libpcap-1.9.1
31 perl Makefile.PL &&
32 make &&
33 make install DESTDIR=$DESTDIR
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cook_copy_folders lib
40 }