From 3d18342831a902b30c2ba20e721b955dd1dd11d6 Mon Sep 17 00:00:00 2001
From: Patrick Li <pat@FreeBSD.org>
Date: Thu, 28 Mar 2002 23:04:51 +0000
Subject: Install config file as a sample file

PR:		36442
Submitted by:	ago <a.go@wish.net>
---
 security/fwtk/Makefile       | 4 ++++
 security/fwtk/files/patch-ac | 6 +++---
 security/fwtk/pkg-plist      | 2 +-
 3 files changed, 8 insertions(+), 4 deletions(-)

(limited to 'security/fwtk')

diff --git a/security/fwtk/Makefile b/security/fwtk/Makefile
index 66eb5249d09a..06d6bafe0bf6 100644
--- a/security/fwtk/Makefile
+++ b/security/fwtk/Makefile
@@ -56,6 +56,10 @@ pre-configure:
 post-install:
 	cd ${PREFIX}/libexec ; strip ${SBIN_BINS} ${LIBEXEC_BINS}
 	cd ${PREFIX}/libexec ; ${MV} ${SBIN_BINS} mqueue ../sbin
+	if [ ! -f ${PREFIX}/etc/netperm-table ]; then \
+		${INSTALL_DATA} ${WRKSRC}/config/netperm-table \
+		${PREFIX}/etc/netperm-table;\
+	fi
 .for man in ${MAN3}
 	@${INSTALL_MAN} ${WRKSRC}/doc/man/${man} ${PREFIX}/man/man3
 .endfor
diff --git a/security/fwtk/files/patch-ac b/security/fwtk/files/patch-ac
index d739e4e61778..9d7aa09c1a28 100644
--- a/security/fwtk/files/patch-ac
+++ b/security/fwtk/files/patch-ac
@@ -15,7 +15,7 @@
 -	if [ ! -f $(DEST)/netperm-table ]; then \
 -		$(CP) netperm-table $(DEST); \
 -		chmod 644 $(DEST)/netperm-table; \
-+	if [ ! -f $(DEST)/../etc/netperm-table ]; then \
-+		$(CP) netperm-table $(DEST)/../etc/; \
-+		chmod 644 $(DEST)/../etc/netperm-table; \
++	if [ ! -f $(DEST)/../etc/netperm-table.sample ]; then \
++		$(CP) netperm-table $(DEST)/../etc/netperm-table.sample; \
++		chmod 644 $(DEST)/../etc/netperm-table.sample; \
  	fi
diff --git a/security/fwtk/pkg-plist b/security/fwtk/pkg-plist
index 632e964f3c2c..81876830d6a8 100644
--- a/security/fwtk/pkg-plist
+++ b/security/fwtk/pkg-plist
@@ -1,4 +1,4 @@
-etc/netperm-table
+etc/netperm-table.sample
 libexec/authsrv
 libexec/ftp-gw
 libexec/http-gw
-- 
cgit v1.2.3