aboutsummaryrefslogtreecommitdiff
path: root/net/queso
diff options
context:
space:
mode:
Diffstat (limited to 'net/queso')
-rw-r--r--net/queso/Makefile11
-rw-r--r--net/queso/pkg-plist8
2 files changed, 12 insertions, 7 deletions
diff --git a/net/queso/Makefile b/net/queso/Makefile
index 30a299971ba7..74ea83519b4e 100644
--- a/net/queso/Makefile
+++ b/net/queso/Makefile
@@ -9,6 +9,7 @@
PORTNAME= queso
PORTVERSION= 980922
+PORTREVISION= 1
CATEGORIES= net security
MASTER_SITES= http://ftp.cerias.purdue.edu/pub/tools/unix/scanners/queso/ \
http://www.mirrors.wiretapped.net/security/network-mapping/
@@ -18,12 +19,14 @@ COMMENT= Determine the remote OS using simple tcp packets
GNU_CONFIGURE= yes
+post-patch:
+ @${REINPLACE_CMD} 's,$(CFGDIR)/queso.conf,$(CFGDIR)/queso.conf.sample,' \
+ ${WRKSRC}/Makefile.in
+
post-install:
- #${INSTALL_PROGRAM} ${WRKSRC}/queso ${PREFIX}/sbin
- #${INSTALL_DATA} ${WRKSRC}/queso.conf ${PREFIX}/etc
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/queso
- ${INSTALL_DATA} ${WRKSRC}/Documentation.txt ${PREFIX}/share/doc/queso
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/Documentation.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/net/queso/pkg-plist b/net/queso/pkg-plist
index f408f169353d..3f80fd727050 100644
--- a/net/queso/pkg-plist
+++ b/net/queso/pkg-plist
@@ -1,5 +1,7 @@
@comment $FreeBSD$
sbin/queso
-etc/queso.conf
-share/doc/queso/Documentation.txt
-@dirrm share/doc/queso
+@unexec if cmp -s %D/etc/etc/queso.conf %D/etc/etc/queso.conf.sample; then rm -f %D/etc/queso.conf.sample; fi
+etc/queso.conf.sample
+@exec [ -f %B/queso.conf.sample ] || cp %B/%f %B/queso.conf.sample
+%%PORTDOCS%%%%DOCSDIR%%/Documentation.txt
+%%PORTDOCS%%@dirrm %%DOCSDIR%%