wok-current annotate perl-net-pcap/receipt @ rev 23104
Up perl-net-pcap (0.18)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 12 11:27:14 2020 +0100 (2020-03-12) |
parents | 2d12ebd38be4 |
children | ca4a422cce07 |
rev | line source |
---|---|
pascal@11215 | 1 # SliTaz package receipt. |
pascal@11215 | 2 |
pascal@11215 | 3 PACKAGE="perl-net-pcap" |
pascal@23104 | 4 VERSION="0.18" |
pascal@11215 | 5 CATEGORY="development" |
pascal@11215 | 6 SHORT_DESC="Net::Pcap module is a Perl extension." |
pascal@11215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14702 | 8 LICENSE="GPL" |
pascal@11215 | 9 DEPENDS="perl libpcap" |
pascal@11215 | 10 BUILD_DEPENDS="perl libpcap libpcap-dev" |
pascal@11215 | 11 SOURCE="Net-Pcap" |
pascal@11215 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@11215 | 13 WEB_SITE="http://cpan.org/" |
pascal@11215 | 14 WGET_URL="http://cpan.org/authors/id/S/SA/SAPER/$TARBALL" |
pascal@11215 | 15 |
pascal@11215 | 16 # Rules to configure and make the package. |
pascal@11215 | 17 compile_rules() |
pascal@11215 | 18 { |
pascal@23104 | 19 # libpcap 1.9.0 update |
pascal@23104 | 20 sed '/pcap_samp {/{NNNNNNNNNd};/pcap_rmtauth {/{NNNNd}' -i stubs.inc |
pascal@23104 | 21 sed 's|cpp_defines(@funcs)|&. "-DHAVE_PCAP_SETSAMPLING"|' -i Makefile.PL |
pascal@23104 | 22 |
pascal@11215 | 23 perl Makefile.PL |
pascal@11215 | 24 make |
pascal@14702 | 25 make DESTDIR=$DESTDIR install |
pascal@11215 | 26 } |
pascal@11215 | 27 |
pascal@11215 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11215 | 29 genpkg_rules() |
pascal@11215 | 30 { |
pascal@11215 | 31 mkdir -p $fs/usr |
pascal@14702 | 32 cp -a $install/usr/lib $fs/usr |
pascal@11215 | 33 } |
pascal@11215 | 34 |