wok-6.x annotate libpcap/receipt @ rev 25107
Up open-iscsi (2.0.873)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 17:23:49 2022 +0000 (2022-06-22) |
parents | ede1d184d5c5 |
children |
rev | line source |
---|---|
pankso@117 | 1 # SliTaz package receipt. |
pankso@117 | 2 |
pankso@117 | 3 PACKAGE="libpcap" |
Hans-G?nter@24821 | 4 VERSION="1.10.1" |
pankso@200 | 5 CATEGORY="development" |
Hans-G?nter@23093 | 6 SHORT_DESC="Library for tcpdump." |
pascal@1065 | 7 MAINTAINER="sdaigl@lacitec.on.ca" |
pascal@15323 | 8 LICENSE="BSD" |
Hans-G?nter@23093 | 9 WEB_SITE="https://www.tcpdump.org/" |
Hans-G?nter@23093 | 10 |
pankso@117 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24821 | 12 WGET_URL="${WEB_SITE}release/$TARBALL"; |
pankso@117 | 13 |
pascal@15323 | 14 DEPENDS="libnl" |
Hans-G?nter@24821 | 15 BUILD_DEPENDS="bison flex libnl-dev" |
Hans-G?nter@23093 | 16 |
Hans-G?nter@23093 | 17 HOST_ARCH="i486 arm" |
pascal@15323 | 18 |
pankso@16042 | 19 # Handle cross compilation |
pankso@16042 | 20 case "$ARCH" in |
pankso@16042 | 21 arm) |
pankso@16042 | 22 BUILD_DEPENDS="" |
pankso@16042 | 23 ARCH_ARGS="--with-pcap=linux" |
pankso@16042 | 24 export ac_cv_linux_vers=2 ;; |
pankso@16042 | 25 esac |
pankso@16042 | 26 |
pascal@24447 | 27 # What is the latest version available today? |
pascal@24447 | 28 current_version() |
pascal@24447 | 29 { |
pascal@24447 | 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 31 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 32 } |
pascal@24447 | 33 |
pankso@117 | 34 # Rules to configure and make the package. |
pankso@117 | 35 compile_rules() |
pankso@117 | 36 { |
Hans-G?nter@23093 | 37 ./configure \ |
Hans-G?nter@23093 | 38 $CONFIGURE_ARGS \ |
Hans-G?nter@23093 | 39 $ARCH_ARGS && |
Hans-G?nter@23093 | 40 make && |
Hans-G?nter@23093 | 41 make install |
pankso@117 | 42 } |
pankso@117 | 43 |
pankso@117 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@117 | 45 genpkg_rules() |
pankso@117 | 46 { |
Hans-G?nter@24821 | 47 cook_copy_files *.so* |
pankso@117 | 48 } |
pankso@117 | 49 |