aports/testing/p0f/APKBUILD
2024-09-23 01:41:08 +00:00

38 lines
1.3 KiB
Text

# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Arch3y <arch3y@riseup.net>
pkgname=p0f
pkgver=3.09b
pkgrel=3
pkgdesc="Passive traffic fingerprinting tool"
url="https://lcamtuf.coredump.cx/p0f3/"
arch="all"
license="GPL-2.0-or-later"
makedepends="bash libpcap-dev"
options="!check" # no tests
subpackages="$pkgname-doc"
source="https://lcamtuf.coredump.cx/p0f3/releases/p0f-$pkgver.tgz
p0f-fixes.patch
gcc14.patch
"
build() {
make
cd tools
make p0f-client p0f-sendsyn p0f-sendsyn6
}
package() {
install -Dm 755 p0f "$pkgdir/usr/bin/p0f"
install -Dm 644 p0f.fp "$pkgdir/etc/p0f/p0f.fp"
install -Dm 644 docs/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 docs/README "$pkgdir/usr/share/doc/$pkgname/README"
install -Dm 755 tools/p0f-client -t "$pkgdir/usr/bin/"
install -Dm 755 tools/p0f-sendsyn -t "$pkgdir/usr/bin/"
install -Dm 755 tools/p0f-sendsyn6 -t "$pkgdir/usr/bin/"
}
sha512sums="
2a688baa865f27c91c023a7c53e530649f56a681e6ca2533152ab07b42883857b20c378b636e87dda8d1d5dfac17e426d09ee032b363d0b7d98e57a9ff6164d0 p0f-3.09b.tgz
c5e236f6ca11274b636813509127ea57c2b0c4798f166e1f6a5edea31499eeaaccefe71aa44583925edd184f197ed63b1b0e01e7c7e598fd9e74ddd150583272 p0f-fixes.patch
0ffbe6136becb6630f2629eb2a233d5820f0fdbba5621c14e7584a6ce6ba3cb800fcb9da827b4b422aae632f02f7c29c15a3eace53589a6a230ad6d35e48206d gcc14.patch
"