Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 11:15:27 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r438144 - head/net/l4ip
Message-ID:  <201704101115.v3ABFRY6089906@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Apr 10 11:15:27 2017
New Revision: 438144
URL: https://svnweb.freebsd.org/changeset/ports/438144

Log:
  - Add LICENSE
  - Switch to options helpers
  - Cosmetic fixes

Modified:
  head/net/l4ip/Makefile

Modified: head/net/l4ip/Makefile
==============================================================================
--- head/net/l4ip/Makefile	Mon Apr 10 11:15:25 2017	(r438143)
+++ head/net/l4ip/Makefile	Mon Apr 10 11:15:27 2017	(r438144)
@@ -11,19 +11,25 @@ DISTNAME=	${PORTNAME}-${PORTVERSION:C/([
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	L4 health check daemon for IPFILTER
 
+LICENSE=	NONE
+
 USES=		gmake ssl tar:tgz
 WRKSRC=		${WRKDIR}/${PORTNAME}/src
 
+OPTIONS_DEFINE=	EXAMPLES
+
 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}
-	${REINPLACE_CMD} -e "s|/usr/local/ssl|${OPENSSLBASE}|g" ${WRKSRC}/Makefile
+	@${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}
+	@${REINPLACE_CMD} -e "s|/usr/local/ssl|${OPENSSLBASE}|g" ${WRKSRC}/Makefile
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/l4ip ${STAGEDIR}${PREFIX}/sbin
 	${INSTALL_DATA} ${WRKSRC}/l4ip.conf ${STAGEDIR}${PREFIX}/etc/l4ip.conf.sample
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+
+do-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL} ${WRKSRC}/../samples/*.conf ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704101115.v3ABFRY6089906>