wok-6.x view perl-net-pcap/receipt @ rev 23864
syslinux/isoboot.s: accept user args (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 19 17:01:11 2020 +0000 (2020-06-19) |
parents | 2d12ebd38be4 |
children | ca4a422cce07 |
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="http://cpan.org/"
14 WGET_URL="http://cpan.org/authors/id/S/SA/SAPER/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # libpcap 1.9.0 update
20 sed '/pcap_samp {/{NNNNNNNNNd};/pcap_rmtauth {/{NNNNd}' -i stubs.inc
21 sed 's|cpp_defines(@funcs)|&. "-DHAVE_PCAP_SETSAMPLING"|' -i Makefile.PL
23 perl Makefile.PL
24 make
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/usr/lib $fs/usr
33 }