aboutsummaryrefslogtreecommitdiffstats
path: root/main/tcpdump
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-06-15 10:22:11 +0000
committerFabian Affolter <fabian@affolter-engineering.ch>2013-06-15 11:41:50 +0000
commitf2e9b2aff2683da8b3bc801a37616e1206a697ff (patch)
treec40867d7aa8c2bff02206aece264fad5ae55c9e8 /main/tcpdump
parent1eee4e02c3dc46056a803240de71fd490066d6f1 (diff)
downloadaports-f2e9b2aff2683da8b3bc801a37616e1206a697ff.tar.bz2
aports-f2e9b2aff2683da8b3bc801a37616e1206a697ff.tar.xz
main/tcpdump: run tests
Diffstat (limited to 'main/tcpdump')
-rw-r--r--main/tcpdump/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/main/tcpdump/APKBUILD b/main/tcpdump/APKBUILD
index a2b8124191..d7707dd23d 100644
--- a/main/tcpdump/APKBUILD
+++ b/main/tcpdump/APKBUILD
@@ -6,23 +6,26 @@ pkgdesc="A tool for network monitoring and data acquisition"
url="http://www.tcpdump.org"
arch="all"
license="BSD"
-depends=
+depends=""
makedepends="libpcap-dev openssl-dev"
-source="http://www.$pkgname.org/release/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
+source="http://www.$pkgname.org/release/$pkgname-$pkgver.tar.gz"
-build ()
-{
- cd "$srcdir/$pkgname-$pkgver"
- ./configure --prefix=/usr \
+_builddir="$srcdir"/$pkgname-$pkgver
+build () {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr \
--mandir=/usr/share/man \
- --enable-ipv6
+ --enable-ipv6 \
+ || return 1
+ make check || return 1
make || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/sbin/tcpdump.4*
}