wok-current view tcpdump/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | 3ad63c8fc2f9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tcpdump"
4 VERSION="4.99.1"
5 CATEGORY="security"
6 TAGS="network security"
7 SHORT_DESC="A network traffic monitoring tool."
8 MAINTAINER="sdaigl@lacitec.on.ca"
9 LICENSE="BSD"
10 WEB_SITE="https://www.tcpdump.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}release/$TARBALL"
15 DEPENDS="libcrypto libpcap openssl"
16 BUILD_DEPENDS="libpcap libpcap-dev openssl-dev"
18 HOST_ARCH="i486 x86_64"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - ${WGET_URL%/*} 2>/dev/null | \
24 sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 ./configure \
31 --prefix=/usr \
32 --infodir=/usr/share/info \
33 --mandir=/usr/share/man \
34 $CONFIGURE_ARGS &&
35 make &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 # Move tcpdump to /usr/sbin (it's system tools)
43 mkdir -p $fs/usr/sbin
44 cp -a $install/usr/bin $fs/usr
45 }