From 368a7565aa550fcc5f569d3f90d3cde9c08ccf58 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 10 Feb 2016 10:05:39 +0100 Subject: [PATCH 1/2] New package: p0f-3.08b --- srcpkgs/p0f/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/p0f/template diff --git a/srcpkgs/p0f/template b/srcpkgs/p0f/template new file mode 100644 index 00000000000..4ea64d98f27 --- /dev/null +++ b/srcpkgs/p0f/template @@ -0,0 +1,29 @@ +# Template file for 'p0f' +pkgname=p0f +version=3.08b +revision=1 +makedepends="libpcap-devel" +short_desc="A passive OS fingerprinting tool" +maintainer="Michael Gehring " +license="LGPL-2.1" +homepage="http://lcamtuf.coredump.cx/p0f3" +distfiles="http://lcamtuf.coredump.cx/p0f3/releases/${pkgname}-${version}.tgz" +checksum=da89a7fe4ba5db3704207f4bde231643bedd4fe8653ab8111c65766c8c768aec + +do_configure() { + sed -i "s!\"p0f.fp!\"/usr/share/${pkgname}/p0f.fp!" config.h +} + +do_build() { + make + make -C tools +} + +do_install() { + vbin p0f + vbin tools/p0f-client + vbin tools/p0f-sendsyn + vbin tools/p0f-sendsyn6 + vinstall p0f.fp 644 /usr/share/${pkgname} + vdoc docs/README +} From 52c5857fdab18bf6da1b24de36772b4c10c6f9db Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 10 Feb 2016 10:16:29 +0100 Subject: [PATCH 2/2] p0f: fix cross build --- srcpkgs/p0f/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/p0f/template b/srcpkgs/p0f/template index 4ea64d98f27..71894e0a1f7 100644 --- a/srcpkgs/p0f/template +++ b/srcpkgs/p0f/template @@ -1,7 +1,7 @@ # Template file for 'p0f' pkgname=p0f version=3.08b -revision=1 +revision=2 makedepends="libpcap-devel" short_desc="A passive OS fingerprinting tool" maintainer="Michael Gehring " @@ -16,7 +16,7 @@ do_configure() { do_build() { make - make -C tools + make CC="${CC}" CFLAGS="${CFLAGS}" -C tools } do_install() {