1 # Maintainer: Michal Zalewski <lcamtuf[at]coredump[dot]cx>
2 # Contributor: cbreaker <cbreaker[at]tlen[dot]pl>]
3 # Contributor: Tino Reichardt
5 _p0ftools=n # additional tools: p0f-client & p0f-sendsyn, write y if you want them to be added
6 _p0ftools6=n # additional tool: p0f-sendsyn6 (ipv6 p0f-sendsyn), write y if you want to add it into package
11 pkgdesc="Purely passive TCP/IP traffic fingerprinting tool "
12 url="http://lcamtuf.coredump.cx/p0f3/"
13 arch=('x86_64' 'i686')
16 source=("http://lcamtuf.coredump.cx/p0f3/releases/$pkgname-$pkgver.tgz")
17 md5sums=('292683bafaa31a03b4739c4b5f96eef5')
21 cd "${srcdir}/${pkgname}-${pkgver}"
22 sed -e 's/\/usr\/local\/include\//\/usr\/include\//g' -i build.sh
23 sed -e 's/\/usr\/local\/lib\//\/usr\/lib\//g' -i build.sh
24 sed -e 's/"p0f.fp"/"\/etc\/p0f\/p0f.fp"/g' -i config.h
28 if [ $_p0ftools = "y" ]; then
29 cd "${srcdir}/${pkgname}-${pkgver}/tools"
33 if [ $_p0ftools6 = "y" ]; then
34 cd "${srcdir}/${pkgname}-${pkgver}/tools"
40 cd "${srcdir}/${pkgname}-${pkgver}"
41 install -d -Dm755 ${pkgdir}/usr/sbin
42 install -d -Dm755 ${pkgdir}/etc/p0f
43 install -d -Dm755 ${pkgdir}/usr/share/licenses/${pkgname}
44 install -d -Dm755 ${pkgdir}/usr/share/doc/${pkgname}
46 install -m744 p0f ${pkgdir}/usr/sbin
47 install -m755 p0f.fp ${pkgdir}/etc/p0f
48 install -D -m644 docs/COPYING ${pkgdir}/usr/share/licenses/${pkgname}
49 install -D -m644 docs/README ${pkgdir}/usr/share/doc/${pkgname}
52 if [ $_p0ftools = "y" ]; then
53 install -m744 ${srcdir}/${pkgname}-${pkgver}/tools/p0f-client ${pkgdir}/usr/sbin
54 install -m744 ${srcdir}/${pkgname}-${pkgver}/tools/p0f-sendsyn ${pkgdir}/usr/sbin
56 if [ $_p0ftools6 = "y" ]; then
57 install -m744 ${srcdir}/${pkgname}-${pkgver}/tools/p0f-sendsyn6 ${pkgdir}/usr/sbin
60 warning "no man page available, README is at /usr/share/doc/${pkgname}/README"