summaryrefslogtreecommitdiffstats
path: root/main/libpcap/APKBUILD
blob: 85a946229b7db112a8a51a818b415b0b29c5a5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpcap
pkgver=1.0.0
_sover=1.0.0
pkgrel=3
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
		msg "Applying $i..."
		patch -p1 -i $i || return 1
	done

	./configure --prefix=/usr --enable-ipv6

	make all shared || return 1
	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"