diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2006-02-17 18:55:04 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2006-02-17 18:55:04 +0000 |
commit | dc4b5b6d1af646b31a958ee5f8fa57fc7cd35870 (patch) | |
tree | d6c4030a29ef8db9cc564983c04e5d44a4b107dc /net/l4ip | |
parent | 08e492016fb71d84c431750564039c310aecc805 (diff) | |
download | ports-dc4b5b6d1af646b31a958ee5f8fa57fc7cd35870.tar.gz ports-dc4b5b6d1af646b31a958ee5f8fa57fc7cd35870.zip |
Notes
Diffstat (limited to 'net/l4ip')
-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 |