smlinux/net/tcpdump/smbuild

35 lines
764 B
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=tcpdump
version=4.9.2
build=1sml
homepage="https://www.tcpdump.org/"
download="https://www.tcpdump.org/release/tcpdump-$version.tar.gz"
desc="Text-mode network monitoring and packet data acquisition tool"
requires="libpcap openssl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
ac_cv_linux_vers=3 \
./configure \
--prefix=/usr \
--sbindir=/usr/bin
make
make install DESTDIR=$pkg
cp LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
c299de1f1f12d2fda53b2ae4f60e8930c196d490390d935498970a0d82a76ea2da55dfa67e79784990b01161ed93da521f95e282f997a9081f5fa805ea9f6cb3 tcpdump-4.9.2.tar.lz
"