diff options
-rw-r--r-- | user/tcpdump/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/user/tcpdump/APKBUILD b/user/tcpdump/APKBUILD new file mode 100644 index 000000000..c5f4203e7 --- /dev/null +++ b/user/tcpdump/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Dan Theisen <djt@hxx.in> +pkgname=tcpdump +pkgver=4.9.2 +pkgrel=0 +pkgdesc="A tool for network monitoring and data acquisition" +url="http://www.tcpdump.org" +arch="all" +license="BSD-3-Clause" +depends="" +makedepends="libpcap-dev openssl-dev perl" +subpackages="$pkgname-doc" +source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz" + +build () { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + rm -f "$pkgdir"/usr/sbin/tcpdump.4* +} + +sha512sums="e1bc19a5867d6e3628f3941bdf3ec831bf13784f1233ca1bccc46aac1702f47ee9357d7ff0ca62cddf211b3c8884488c21144cabddd92c861e32398cd8f7c44b tcpdump-4.9.2.tar.gz" |