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