wok-current view libpcap/receipt @ rev 24458
updated gnustep-gui and gnustep-gui-dev again (0.27.0 -> 0.29.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 09:58:13 2022 +0100 (2022-02-16) |
parents | 3601f83e0645 |
children | f604496f040c |
line source
1 # SliTaz package receipt.
3 PACKAGE="libpcap"
4 VERSION="1.9.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="http://www.tcpdump.org/release/$TARBALL";
14 DEPENDS="libnl"
15 BUILD_DEPENDS="flex bison 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 mkdir -p $fs/usr/lib
48 cp -a $install/usr/lib/*.so* $fs/usr/lib
49 }