wok annotate tcpdump/receipt @ rev 25673

Fix tcpdump path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 26 14:52:00 2024 +0000 (3 months ago)
parents 6acd28d149b8
children
rev   line source
sdaigl@48 1 # SliTaz package receipt.
sdaigl@48 2
sdaigl@48 3 PACKAGE="tcpdump"
pascal@25672 4 VERSION="4.99.4"
sdaigl@48 5 CATEGORY="security"
Hans-G?nter@22013 6 TAGS="network security"
Hans-G?nter@22013 7 SHORT_DESC="A network traffic monitoring tool."
pascal@1065 8 MAINTAINER="sdaigl@lacitec.on.ca"
pascal@15133 9 LICENSE="BSD"
Hans-G?nter@22013 10 WEB_SITE="https://www.tcpdump.org/"
Hans-G?nter@22013 11
sdaigl@48 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22013 13 WGET_URL="${WEB_SITE}release/$TARBALL"
sdaigl@48 14
Hans-G?nter@22013 15 DEPENDS="libcrypto libpcap openssl"
pascal@15325 16 BUILD_DEPENDS="libpcap libpcap-dev openssl-dev"
pascal@10460 17
pascal@24425 18 # What is the latest version available today?
pascal@24425 19 current_version()
pascal@24425 20 {
pascal@24425 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 22 sed "/snapshot/d;/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24425 23 }
pascal@24425 24
sdaigl@48 25 # Rules to configure and make the package.
sdaigl@48 26 compile_rules()
sdaigl@48 27 {
Hans-G?nter@22013 28 ./configure \
Hans-G?nter@22013 29 --prefix=/usr \
Hans-G?nter@22013 30 --infodir=/usr/share/info \
Hans-G?nter@22013 31 --mandir=/usr/share/man \
Hans-G?nter@22013 32 $CONFIGURE_ARGS &&
Hans-G?nter@22013 33 make &&
pascal@15133 34 make DESTDIR=$DESTDIR install
sdaigl@48 35 }
sdaigl@48 36
sdaigl@48 37 # Rules to gen a SliTaz package suitable for Tazpkg.
sdaigl@48 38 genpkg_rules()
sdaigl@48 39 {
pascal@25673 40 mkdir -p $fs/usr/bin
pascal@25673 41 cp -a $install/usr/bin/tcpdump.$VERSION $fs/usr/bin
pascal@25673 42 ln -s tcpdump.$VERSION $fs/usr/bin/tcpdump
sdaigl@48 43 }