aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpcap/APKBUILD
blob: a88a384d87a705547fc87b7dda73680272e6121a (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
35
36
37
38
39
40
41
42
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpcap
pkgver=1.8.1
pkgrel=1
pkgdesc="A system-independent interface for user-level packet capture"
url="http://www.tcpdump.org/"
arch="all"
license="BSD"
depends=
options="!check"
makedepends="bison flex autoconf linux-headers"
source="http://www.tcpdump.org/release/$pkgname-$pkgver.tar.gz
	disable-remote.patch
	"
subpackages="$pkgname-doc $pkgname-dev"
builddir="$srcdir"/$pkgname-$pkgver

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="bff5ff53fe53324f423e38eb4062c3fbb9125f86ca90d5e88aca9f0b3da72bc0acc6221c022b0f88cb3f000267580719119824c388da545c6f35117660cbb53b  libpcap-1.8.1.tar.gz
3e5d47793ad154da7bc42b9b249288cd4c84bf545baa5d49b2fb8b0626c87305ed6e07006a62767db2cda045103343844042655603d85f2679fff83fda00b3b8  disable-remote.patch"