aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcpdump
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-02 14:26:48 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-03-06 00:37:52 +0000
commit8a41400cdacdd45aa44f565b025be9403a67efc4 (patch)
tree943996685f106216c3e676de80075da7e2605e48 /main/tcpdump
parent28fa3157d0d58180f635a4516f84267ecaf0a246 (diff)
downloadaports-8a41400cdacdd45aa44f565b025be9403a67efc4.tar.bz2
aports-8a41400cdacdd45aa44f565b025be9403a67efc4.tar.xz
main/tcpdump: add check, modernise, fix license
Diffstat (limited to 'main/tcpdump')
-rw-r--r--main/tcpdump/APKBUILD19
1 files changed, 11 insertions, 8 deletions
diff --git a/main/tcpdump/APKBUILD b/main/tcpdump/APKBUILD
index a121fbc2ab..e83a8dbe2f 100644
--- a/main/tcpdump/APKBUILD
+++ b/main/tcpdump/APKBUILD
@@ -1,11 +1,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tcpdump
pkgver=4.9.2
-pkgrel=1
+pkgrel=2
pkgdesc="A tool for network monitoring and data acquisition"
url="http://www.tcpdump.org"
arch="all"
-license="BSD"
+license="BSD-3-Clause"
depends=""
makedepends="libpcap-dev libressl-dev perl"
subpackages="$pkgname-doc"
@@ -61,7 +61,7 @@ source="http://www.$pkgname.org/release/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$builddir"
- update_config_sub || return 1
+ update_config_sub
}
build () {
@@ -72,15 +72,18 @@ build () {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- --enable-ipv6 \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/sbin/tcpdump.4*
}