aboutsummaryrefslogtreecommitdiffstats
path: root/testing/p0f
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-01-17 10:13:42 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-01-17 10:13:42 +0000
commit6046b8abe13872f701f913432435a9469b666f6a (patch)
tree48c3540fbcd6f2f9fadbba519798008da206bb4b /testing/p0f
parent56856330d45dacc0db81240dcdf2a76fb805f2bd (diff)
downloadaports-6046b8abe13872f701f913432435a9469b666f6a.tar.bz2
aports-6046b8abe13872f701f913432435a9469b666f6a.tar.xz
testing/p0f: new aport
Passive IP fingerprinting tool
Diffstat (limited to 'testing/p0f')
-rw-r--r--testing/p0f/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/p0f/APKBUILD b/testing/p0f/APKBUILD
new file mode 100644
index 0000000000..64e5a359a0
--- /dev/null
+++ b/testing/p0f/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=p0f
+pkgver=3.01b
+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="292683bafaa31a03b4739c4b5f96eef5 p0f-3.01b.tgz"