Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2016 17:59:25 +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: r421858 - head/net/dhcprelya
Message-ID:  <201609111759.u8BHxPFV000107@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sun Sep 11 17:59:25 2016
New Revision: 421858
URL: https://svnweb.freebsd.org/changeset/ports/421858

Log:
  - Switch to options helpers

Modified:
  head/net/dhcprelya/Makefile

Modified: head/net/dhcprelya/Makefile
==============================================================================
--- head/net/dhcprelya/Makefile	Sun Sep 11 17:59:07 2016	(r421857)
+++ head/net/dhcprelya/Makefile	Sun Sep 11 17:59:25 2016	(r421858)
@@ -21,27 +21,19 @@ PORTDOCS=	README
 PLIST_FILES=	sbin/${PORTNAME} lib/${PORTNAME}_log_plugin.so \
 		lib/${PORTNAME}_option82_plugin.so
 
+OPTIONS_DEFINE=	DOCS
 # The modules use a new system libradius that is not committed yet
 #OPTIONS_DEFINE=	RADIUS_PLUGIN
-RADIUS_PLUGIN_PLUGIN_DESC=	build radius plugin
-
-OPTIONS_DEFINE=	DOCS
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MRADIUS_PLUGIN}
-PLIST_FILES+=	lib/${PORTNAME}_radius_plugin.so
-MAKE_ARGS=	-DWITH_RADIUS_PLUGIN
-.endif
+RADIUS_PLUGIN_DESC=		Build radius plugin
+RADIUS_PLUGIN_PLIST_FILES=	lib/${PORTNAME}_radius_plugin.so
+RADIUS_PLUGIN_MAKE_ON=		-DWITH_RADIUS_PLUGIN
 
 post-patch:
-	@${REINPLACE_CMD} -e 's#/usr/local#${STAGEDIR}/${PREFIX}#' \
+	@${REINPLACE_CMD} -e 's#/usr/local#${STAGEDIR}${PREFIX}#' \
 		${WRKSRC}/Makefile
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${STAGEDIR}/${DOCSDIR}
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}/${DOCSDIR}
-.endif
 
 .include <bsd.port.mk>



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