summaryrefslogtreecommitdiff
path: root/security/p0f/Makefile
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/p0f/Makefile
parent8cc6940946b87e5c2613506a377ed31efd273912 (diff)
downloadpkgsrc-9c8a584f4e2ae319327df258c426ef04a284e6fd.tar.gz
Make this package honor PKG_SYSCONFDIR. Bump PKGREVISION.
Diffstat (limited to 'security/p0f/Makefile')
-rw-r--r--security/p0f/Makefile16
1 files changed, 9 insertions, 7 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"