wok-current view perl-net-pcap/receipt @ rev 24235
updated perl-log-log4perl (1.49 -> 1.54)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 07:05:50 2022 +0100 (2022-01-02) |
parents | 431d56806c7d |
children | be4f6d921ef0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perl-net-pcap"
4 VERSION="0.18"
5 CATEGORY="development"
6 SHORT_DESC="Net::Pcap module is a Perl extension."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 DEPENDS="perl libpcap"
10 BUILD_DEPENDS="perl libpcap libpcap-dev"
11 SOURCE="Net-Pcap"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WEB_SITE="https://metacpan.org/dist/Net-Pcap"
14 WGET_URL="http://cpan.org/authors/id/S/SA/SAPER/$TARBALL"
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/release-name/!d;s|.*-v*||;s|<.*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # libpcap 1.9.0 update
26 sed '/pcap_samp {/{NNNNNNNNNd};/pcap_rmtauth {/{NNNNd}' -i stubs.inc
27 sed 's|cpp_defines(@funcs)|&. "-DHAVE_PCAP_SETSAMPLING"|' -i Makefile.PL
29 perl Makefile.PL
30 make
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/lib $fs/usr
39 }