svn commit: r356730 - head/net/l4ip
Vanilla I. Shu
vanilla at FreeBSD.org
Fri Jun 6 01:40:09 UTC 2014
Author: vanilla
Date: Fri Jun 6 01:40:08 2014
New Revision: 356730
URL: http://svnweb.freebsd.org/changeset/ports/356730
QAT: https://qat.redports.org/buildarchive/r356730/
Log:
Stagify, and add @sample to pkg-plist.
Approved by: portmgr@
Modified:
head/net/l4ip/Makefile
head/net/l4ip/pkg-plist
Modified: head/net/l4ip/Makefile
==============================================================================
--- head/net/l4ip/Makefile Fri Jun 6 01:34:31 2014 (r356729)
+++ head/net/l4ip/Makefile Fri Jun 6 01:40:08 2014 (r356730)
@@ -14,19 +14,15 @@ COMMENT= L4 health check daemon for IPFI
USES= gmake
WRKSRC= ${WRKDIR}/${PORTNAME}/src
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's,service_type_t,script_type_t,g' ${WRKSRC}/service.c
${REINPLACE_CMD} -e 's,/usr/sbin,/sbin,g' ${WRKSRC}/l4ip.conf
${REINPLACE_CMD} -e '/^CC/d' ${WRKSRC}/${MAKEFILE} ${WRKSRC}/../lion/${MAKEFILE}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/l4ip ${PREFIX}/sbin
- ${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}
+ ${INSTALL_PROGRAM} ${WRKSRC}/l4ip ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/l4ip.conf ${STAGEDIR}${PREFIX}/etc/l4ip.conf.sample
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL} ${WRKSRC}/../samples/*.conf ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
Modified: head/net/l4ip/pkg-plist
==============================================================================
--- head/net/l4ip/pkg-plist Fri Jun 6 01:34:31 2014 (r356729)
+++ head/net/l4ip/pkg-plist Fri Jun 6 01:40:08 2014 (r356730)
@@ -1,7 +1,5 @@
sbin/l4ip
- at 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
- at exec [ -f %B/l4ip.conf ] || cp %B/%f %B/l4ip.conf
+ at sample etc/l4ip.conf.sample
%%EXAMPLESDIR%%/apache1.conf
%%EXAMPLESDIR%%/apache2.conf
%%EXAMPLESDIR%%/dns1.conf
More information about the svn-ports-all
mailing list