wok-next annotate libpcap/receipt @ rev 19890

iptstate, tint2, waterline-plugin-multiload: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Oct 11 15:11:57 2017 +0200 (2017-10-11)
parents 1a86cb99cbbf
children c4e53a39395a
rev   line source
al@19780 1 # SliTaz package receipt v2.
pankso@117 2
pankso@117 3 PACKAGE="libpcap"
al@19780 4 VERSION="1.8.1"
al@19709 5 CATEGORY="libdevel"
al@19780 6 SHORT_DESC="Functions for user-level packet capture, used in low-level network \
al@19709 7 monitoring"
pascal@1065 8 MAINTAINER="sdaigl@lacitec.on.ca"
pascal@15323 9 LICENSE="BSD"
al@19709 10 WEB_SITE="http://www.tcpdump.org/"
al@19709 11 HOST_ARCH="i486 arm"
al@19709 12
pankso@117 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@19709 14 WGET_URL="http://www.tcpdump.org/release/$TARBALL"
pankso@117 15
al@19780 16 BUILD_DEPENDS="flex bison libnl-dev"
al@19780 17 BUILD_DEPENDS_arm=" "
al@19780 18 SPLIT="libpcap-dev"
pascal@15323 19
pankso@16042 20 # Handle cross compilation
pankso@16042 21 case "$ARCH" in
al@19709 22 arm)
al@19709 23 ARCH_ARGS="--with-pcap=linux"
al@19709 24 export ac_cv_linux_vers=2
al@19709 25 ;;
pankso@16042 26 esac
pankso@16042 27
pankso@117 28 # Rules to configure and make the package.
pankso@117 29 compile_rules()
pankso@117 30 {
pankso@16042 31 ./configure \
pankso@16042 32 $CONFIGURE_ARGS $ARCH_ARGS &&
pankso@16042 33 make && make install
pankso@117 34 }
pankso@117 35
pankso@117 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@117 37 genpkg_rules()
pankso@117 38 {
al@19780 39 case $PACKAGE in
al@19780 40 libpcap) copy @std; DEPENDS="libnl";;
al@19780 41 *-dev) copy @dev;;
al@19780 42 esac
pankso@117 43 }