diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-23 18:01:22 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-07-23 18:01:22 -0500 |
commit | d97844073a853fbfd1b4f5e075e2f8c93e45b632 (patch) | |
tree | 4612bd829926d46ff2c786b2ab8b6feb7120bdd1 /user/libpcap/APKBUILD | |
parent | 38f7e3d4dd2b813c2984be3d71883d6c37f5edb3 (diff) | |
download | packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.tar.gz packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.tar.bz2 packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.tar.xz packages-d97844073a853fbfd1b4f5e075e2f8c93e45b632.zip |
user/libpcap: pull in, bump to 1.9.0, build/license, modernise
Diffstat (limited to 'user/libpcap/APKBUILD')
-rw-r--r-- | user/libpcap/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/user/libpcap/APKBUILD b/user/libpcap/APKBUILD new file mode 100644 index 000000000..f1c3cd9d7 --- /dev/null +++ b/user/libpcap/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: +pkgname=libpcap +pkgver=1.9.0 +pkgrel=0 +pkgdesc="System-independent interface for user-level packet capture" +url="http://www.tcpdump.org/" +arch="all" +options="!check" +license="BSD-3-Clause" +depends="" +makedepends="autoconf bison bluez-dev flex linux-headers" +subpackages="$pkgname-doc $pkgname-dev" +source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz + add-missing-header.patch + " + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --enable-ipv6 + + # seems to be problem with timestamps + sleep 1 + ./config.status + + make all shared +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install install-shared +} + +sha512sums="0ff25641f1e9d29082766caef45888c19214f770c4f378818caa73fcbc4ae54ad9195549c2499d4879ff46e35741d93b2b02cc5f3d6aa99e85a32194cf10bfe7 libpcap-1.9.0.tar.gz +d9bee430f26e647c4a7ddd5b1ddd588fadefd3a034710e9bdfa9ff1d8c18ad8f6c0be1c29c2261e7be89db7d7e545e30c7910f09f3f53701ce04421449328be2 add-missing-header.patch" |