aboutsummaryrefslogtreecommitdiffstats
path: root/core/libpcap/APKBUILD
blob: 3db64d26cf2387e1d1fb7770e8d290ccf7b6b6aa (plain) (blame)
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
pkgname=libpcap
pkgver=1.0.0
pkgrel=0
pkgdesc="A system-independent interface for user-level packet capture"
url="http://www.tcpdump.org/"
license="BSD"
depends="uclibc"
makedepends="bison flex"
source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz
	$pkgname-1.0.0-LDFLAGS.patch"
subpackages="$pkgname-doc $pkgname-dev"

build () 
{ 
	cd ${startdir}/src/${pkgname}-${pkgver}
	patch -Np1 -i ${startdir}/libpcap-1.0.0-LDFLAGS.patch || return 1

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

	make all shared || return 1
	mkdir -p "$pkgdir/usr/bin"
	make -j1 DESTDIR="$pkgdir" install install-shared

#	mkdir -p ${startdir}/pkg/usr/include/net
#	cd ${startdir}/pkg/usr/include/net
#	ln -s ../pcap-bpf.h bpf.h
}
md5sums="9ad1358c5dec48456405eac197a46d3d  libpcap-1.0.0.tar.gz
2bf7e986980c6e5d99758ba55b48d706  libpcap-1.0.0-LDFLAGS.patch"