diff options
author | leeym <leeym@FreeBSD.org> | 2006-02-18 02:55:04 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2006-02-18 02:55:04 +0800 |
commit | 89106d4d82187111c5727d046988e60660022204 (patch) | |
tree | d09c049baa6bd98168ba5c61ce0269af95fd64c8 /net | |
parent | 7b298ebc75013b2ffa488166e4862cffbe083691 (diff) | |
download | freebsd-ports-gnome-89106d4d82187111c5727d046988e60660022204.tar.gz freebsd-ports-gnome-89106d4d82187111c5727d046988e60660022204.tar.zst freebsd-ports-gnome-89106d4d82187111c5727d046988e60660022204.zip |
- update COMMENT
- better config file handling
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 |