summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-02-02 21:32:11 +0000
committerjmmv <jmmv@pkgsrc.org>2003-02-02 21:32:11 +0000
commit9c8a584f4e2ae319327df258c426ef04a284e6fd (patch)
treebb14469a6dc2d0b971029542a59e66a2e363dc7c /security
parent8cc6940946b87e5c2613506a377ed31efd273912 (diff)
downloadpkgsrc-9c8a584f4e2ae319327df258c426ef04a284e6fd.tar.gz
Make this package honor PKG_SYSCONFDIR. Bump PKGREVISION.
Diffstat (limited to 'security')
-rw-r--r--security/p0f/Makefile16
-rw-r--r--security/p0f/PLIST5
-rw-r--r--security/p0f/distinfo4
-rw-r--r--security/p0f/patches/patch-aa27
4 files changed, 25 insertions, 27 deletions
diff --git a/security/p0f/Makefile b/security/p0f/Makefile
index 83f17fa1ecf..318b3094b71 100644
--- a/security/p0f/Makefile
+++ b/security/p0f/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2003/01/17 23:15:24 hubertf Exp $
+# $NetBSD: Makefile,v 1.3 2003/02/02 21:32:11 jmmv Exp $
#
DISTNAME= p0f-1.8.2
+PKGREVISION= 1
CATEGORIES= security net
MASTER_SITES= http://www.stearns.org/p0f/
EXTRACT_SUFX= .tgz
@@ -9,16 +10,17 @@ EXTRACT_SUFX= .tgz
MAINTAINER= dawszy@arhea.net
COMMENT= passive OS fingerprinting tool
-pre-build:
- ${SED} \
- -e 's,@PREFIX@,${LOCALBASE},'\
- <${WRKSRC}/p0f.c > ${WRKSRC}/p0f.c.tmp
- ${MV} ${WRKSRC}/p0f.c.tmp ${WRKSRC}/p0f.c
+USE_BUILDLINK2= yes
+USE_PKGINSTALL= yes
+
+CFLAGS+= -DSYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\\\"\"
+CONF_FILES= ${PREFIX}/share/examples/p0f/p0f.fp ${PKG_SYSCONFDIR}/p0f.fp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/p0f ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/p0f.README
${INSTALL_DATA} ${WRKSRC}/p0frep ${PREFIX}/share/doc/p0frep
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p0f
+ ${INSTALL_DATA} ${WRKSRC}/p0f.fp ${PREFIX}/share/examples/p0f
.include "../../mk/bsd.pkg.mk"
diff --git a/security/p0f/PLIST b/security/p0f/PLIST
index c424584f611..f287f3b843a 100644
--- a/security/p0f/PLIST
+++ b/security/p0f/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2003/01/17 23:15:24 hubertf Exp $
+@comment $NetBSD: PLIST,v 1.3 2003/02/02 21:32:11 jmmv Exp $
bin/p0f
-etc/p0f.fp
share/doc/p0f.README
share/doc/p0frep
+share/examples/p0f/p0f.fp
+@dirrm share/examples/p0f
diff --git a/security/p0f/distinfo b/security/p0f/distinfo
index bff7cb45bc8..f1571bba6d3 100644
--- a/security/p0f/distinfo
+++ b/security/p0f/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2003/01/17 23:15:24 hubertf Exp $
+$NetBSD: distinfo,v 1.4 2003/02/02 21:32:11 jmmv Exp $
SHA1 (p0f-1.8.2.tgz) = e0c6cb93f9251a3c9e588290a5426c26c9a9af07
Size (p0f-1.8.2.tgz) = 23969 bytes
-SHA1 (patch-aa) = 21d484a2fa8de86fcd33727b4056787bdc6099d5
+SHA1 (patch-aa) = 2fc8af522a2e38a9a097a9a68ead47ae0c74c51b
diff --git a/security/p0f/patches/patch-aa b/security/p0f/patches/patch-aa
index 8710e7ec941..b2f78e9cca9 100644
--- a/security/p0f/patches/patch-aa
+++ b/security/p0f/patches/patch-aa
@@ -1,18 +1,13 @@
-$NetBSD: patch-aa,v 1.2 2003/01/17 23:15:25 hubertf Exp $
+$NetBSD: patch-aa,v 1.3 2003/02/02 21:32:12 jmmv Exp $
---- p0f.c.orig Sat Feb 2 08:00:40 2002
-+++ p0f.c
-@@ -369,11 +369,8 @@ int main(int argc, char *argv[]) {
+--- Makefile.orig Sat Feb 2 08:09:14 2002
++++ Makefile
+@@ -8,7 +8,7 @@ CC = gcc
+ CLIBS = -lpcap
+ SUNLIBS = -lsocket -lnsl -D_SUN_=1
+ STRIP = strip
+-CFLAGS = -O3 -Wall
++CFLAGS += -Wall
+ FILE = p0f
+ VERSION = 1.8.2
- /* set a reasonable default fingerprint file */
- if (!filename || !*filename)
--#ifdef SYSCONFDIR
-- filename = SYSCONFDIR "/p0f.fp";
--#else
-- filename = "/etc/p0f.fp";
--#endif
-+
-+ filename = "@PREFIX@/etc/p0f.fp";
-
- /* anything left after getopt'ing is a rule */
- if (argv[optind] && *(argv[optind]))