diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-04 14:19:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-05-04 14:19:34 +0000 |
commit | d95f8000b48c83905223acd10fc5823ba95458c3 (patch) | |
tree | 973d66240e17d6e475a3e566deb32e382e49fa64 /main/libpcap/APKBUILD | |
parent | 6224fead063e0e0ebe4ab41b9285b9d0a10253f9 (diff) | |
download | aports-d95f8000b48c83905223acd10fc5823ba95458c3.tar.bz2 aports-d95f8000b48c83905223acd10fc5823ba95458c3.tar.xz |
main/libpcap: upgrade to 1.1.1
Diffstat (limited to 'main/libpcap/APKBUILD')
-rw-r--r-- | main/libpcap/APKBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/main/libpcap/APKBUILD b/main/libpcap/APKBUILD index 85a946229b..4fc54bbcbd 100644 --- a/main/libpcap/APKBUILD +++ b/main/libpcap/APKBUILD @@ -1,34 +1,36 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libpcap -pkgver=1.0.0 +pkgver=1.1.1 _sover=1.0.0 -pkgrel=3 +pkgrel=0 pkgdesc="A system-independent interface for user-level packet capture" url="http://www.tcpdump.org/" license="BSD" depends= makedepends="bison flex" source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz - $pkgname-1.0.0-LDFLAGS.patch - $pkgname-any.patch" + " subpackages="$pkgname-doc $pkgname-dev" -build () -{ - cd ${startdir}/src/${pkgname}-${pkgver} - for i in ../*.patch; do +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in "$srcdir"/*.patch; do + [ -r "$i" ] || continue msg "Applying $i..." patch -p1 -i $i || return 1 done +} +build() { + cd "$_builddir" ./configure --prefix=/usr --enable-ipv6 - make all shared || return 1 +} + +package() { + cd "$_builddir" mkdir -p "$pkgdir/usr/bin" make -j1 DESTDIR="$pkgdir" install install-shared - ln -s libpcap.so.$_sover "$pkgdir"/usr/lib/libpcap.so.1 - ln -s libpcap.so.$_sover "$pkgdir"/usr/lib/libpcap.so } -md5sums="9ad1358c5dec48456405eac197a46d3d libpcap-1.0.0.tar.gz -2bf7e986980c6e5d99758ba55b48d706 libpcap-1.0.0-LDFLAGS.patch -1e6b01c4f283b497e81e137c3f35e744 libpcap-any.patch" +md5sums="1bca27d206970badae248cfa471bbb47 libpcap-1.1.1.tar.gz" |