diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/l4ip/Makefile | 7 | ||||
-rw-r--r-- | net/l4ip/pkg-plist | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/net/l4ip/Makefile b/net/l4ip/Makefile index 594daf563378..95ca7f0ba847 100644 --- a/net/l4ip/Makefile +++ b/net/l4ip/Makefile @@ -13,7 +13,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:C/([0-9]*)\.([0-9]*)\.([0-9]*)/v\1.\2.b\3/} EXTRACT_SUFX= .tgz MAINTAINER= leeym@FreeBSD.org -COMMENT= L4 and Health-Check project for IPFilter +COMMENT= L4 health check daemon for IPFILTER USE_GMAKE= yes WRKSRC= ${WRKDIR}/${PORTNAME}/src @@ -24,7 +24,10 @@ post-patch: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/l4ip ${PREFIX}/sbin - ${INSTALL_DATA} ${WRKSRC}/l4ip.conf ${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/l4ip.conf ${PREFIX}/etc/l4ip.conf.sample +.if !exists(${PREFIX}/etc/l4ip.conf) + ${CP} ${PREFIX}/etc/l4ip.conf.sample ${PREFIX}/etc/l4ip.conf +.endif ${MKDIR} ${EXAMPLESDIR} ${INSTALL} ${WRKSRC}/../samples/*.conf ${EXAMPLESDIR} diff --git a/net/l4ip/pkg-plist b/net/l4ip/pkg-plist index 4c140014c3b6..665394d1f4c5 100644 --- a/net/l4ip/pkg-plist +++ b/net/l4ip/pkg-plist @@ -1,5 +1,7 @@ sbin/l4ip -etc/l4ip.conf +@unexec if cmp -s %D/etc/l4ip.conf %D/etc/l4ip.conf.sample; then rm -f %D/etc/l4ip.conf; fi +etc/l4ip.conf.sample +@exec [ -f %B/l4ip.conf ] || cp %B/%f %B/l4ip.conf %%EXAMPLESDIR%%/apache1.conf %%EXAMPLESDIR%%/apache2.conf %%EXAMPLESDIR%%/dns1.conf |