aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/p0f/APKBUILD
blob: 025d51b5e94a056fbb0a1be04bae348a95dcd38f (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
43
44
45
46
47
48
49
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=p0f
pkgver=3.05b
pkgrel=0
pkgdesc="Passive traffic fingerprinting tool"
url="http://lcamtuf.coredump.cx/p0f3/"
arch="all"
license="GPL"
depends=
depends_dev="bash libpcap-dev"
makedepends="$depends_dev"
install=
subpackages="$pkgname-doc"
source="http://lcamtuf.coredump.cx/p0f3/releases/$pkgname-$pkgver.tgz"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	# apply patches here
}

build() {
	cd "$_builddir"
	make || return 1
	cd tools
	make p0f-client
	make p0f-sendsyn
	make p0f-sendsyn6
}

package() {
	cd "$_builddir"
	install -d -Dm755 ${pkgdir}/usr/sbin
	install -d -Dm755 ${pkgdir}/etc/p0f
	install -d -Dm755 ${pkgdir}/usr/share/licenses/${pkgname}
	install -d -Dm755 ${pkgdir}/usr/share/doc/${pkgname}
	install -m744 p0f ${pkgdir}/usr/sbin
	install -m755 p0f.fp ${pkgdir}/etc/p0f
	install -D -m644 docs/COPYING ${pkgdir}/usr/share/licenses/${pkgname}
	install -D -m644 docs/README ${pkgdir}/usr/share/doc/${pkgname}
	install -m744 ${srcdir}/${pkgname}-${pkgver}/tools/p0f-client ${pkgdir}/usr/sbin
	install -m744 ${srcdir}/${pkgname}-${pkgver}/tools/p0f-sendsyn ${pkgdir}/usr/sbin
	install -m744 ${srcdir}/${pkgname}-${pkgver}/tools/p0f-sendsyn6 ${pkgdir}/usr/sbin
}

md5sums="edbc4b135b2646db3227a441268fd2e2  p0f-3.05b.tgz"