aboutsummaryrefslogtreecommitdiffstats
path: root/net/iplog
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2001-01-16 23:32:49 +0800
committerkevlo <kevlo@FreeBSD.org>2001-01-16 23:32:49 +0800
commit5d98a87232dced615f875dbe98f2b56c74110863 (patch)
tree0a3b4e4b21b99efaa99c8b1df1a8a118c3ecf8a6 /net/iplog
parentb579066f60245f57b33e516974db1db116dcc7b1 (diff)
downloadfreebsd-ports-graphics-5d98a87232dced615f875dbe98f2b56c74110863.tar.gz
freebsd-ports-graphics-5d98a87232dced615f875dbe98f2b56c74110863.tar.zst
freebsd-ports-graphics-5d98a87232dced615f875dbe98f2b56c74110863.zip
Fix a problem when installing without a previously installed version of
iplog port. PR: 24380 Submitted by: MAINTAINER
Diffstat (limited to 'net/iplog')
-rw-r--r--net/iplog/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/iplog/Makefile b/net/iplog/Makefile
index 13b565a4b63..526fa5e6aad 100644
--- a/net/iplog/Makefile
+++ b/net/iplog/Makefile
@@ -30,7 +30,8 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc
.if !exists(${PREFIX}/etc/iplog.conf)
${INSTALL_DATA} ${WRKSRC}/example-iplog.conf ${PREFIX}/etc/iplog.conf
-.else
+.endif
+.if exists(${PREFIX}/etc/iplog.rules)
@${ECHO_MSG}
@${ECHO_MSG} "============================================================================"
@${ECHO_MSG} "Hint: iplog changed its configuration file from ${PREFIX}/etc/iplog.rules"
@@ -38,6 +39,7 @@ post-install:
@${ECHO_MSG}
@${ECHO_MSG} "See ${PREFIX}/etc/example-iplog.conf for an example"
@${ECHO_MSG} "============================================================================"
+.endif
@${ECHO_MSG}
@${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/iplog.sh.sample file."
@${CAT} ${FILESDIR}/iplog.sh.tmpl | \
@@ -49,6 +51,5 @@ post-install:
@${ECHO_MSG} "cp -p ${PREFIX}/etc/rc.d/iplog.sh.sample ${PREFIX}/etc/rc.d/iplog.sh"
@${ECHO_MSG} "----------------------------------------------------------------------------"
@${ECHO_MSG}
-.endif
.include <bsd.port.post.mk>