# Contributor: Sergei Lukin # Maintainer: Natanael Copa pkgname=tcpdump pkgver=4.9.0 pkgrel=0 pkgdesc="A tool for network monitoring and data acquisition" url="http://www.tcpdump.org" arch="all" license="BSD" depends="" makedepends="libpcap-dev openssl-dev perl" subpackages="$pkgname-doc" source="http://www.$pkgname.org/release/$pkgname-$pkgver.tar.gz" # secfixes: # 4.9.0-r0: # - CVE-2016-7922 # - CVE-2016-7923 # - CVE-2016-7924 # - CVE-2016-7925 # - CVE-2016-7926 # - CVE-2016-7927 # - CVE-2016-7928 # - CVE-2016-7929 # - CVE-2016-7930 # - CVE-2016-7931 # - CVE-2016-7932 # - CVE-2016-7933 # - CVE-2016-7934 # - CVE-2016-7935 # - CVE-2016-7936 # - CVE-2016-7937 # - CVE-2016-7938 # - CVE-2016-7939 # - CVE-2016-7940 # - CVE-2016-7973 # - CVE-2016-7974 # - CVE-2016-7975 # - CVE-2016-7983 # - CVE-2016-7984 # - CVE-2016-7985 # - CVE-2016-7986 # - CVE-2016-7992 # - CVE-2016-7993 # - CVE-2016-8574 # - CVE-2016-8575 # - CVE-2017-5202 # - CVE-2017-5203 # - CVE-2017-5204 # - CVE-2017-5205 # - CVE-2017-5341 # - CVE-2017-5342 # - CVE-2017-5482 # - CVE-2017-5483 # - CVE-2017-5484 # - CVE-2017-5485 # - CVE-2017-5486 _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" update_config_sub || return 1 } build () { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-ipv6 \ || return 1 make || return 1 # make check || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/sbin/tcpdump.4* } md5sums="2b83364eef53b63ca3181b4eb56dab0c tcpdump-4.9.0.tar.gz" sha256sums="eae98121cbb1c9adbedd9a777bf2eae9fa1c1c676424a54740311c8abcee5a5e tcpdump-4.9.0.tar.gz" sha512sums="e98d73ae706d42e96b4069e196cf17af892eb97935664eebd08779b55b4da858bc1732d714efd16924f862aad0ba5550ceb2213c68414ed48907c46456c9fc82 tcpdump-4.9.0.tar.gz"