svn commit: r342045 - head/net/wol

Antoine Brodin antoine at FreeBSD.org
Fri Jan 31 17:13:03 UTC 2014


Author: antoine
Date: Fri Jan 31 17:13:02 2014
New Revision: 342045
URL: http://svnweb.freebsd.org/changeset/ports/342045
QAT: https://qat.redports.org/buildarchive/r342045/

Log:
  - Stage support
  - Use OPTIONS helpers

Modified:
  head/net/wol/Makefile
  head/net/wol/pkg-plist

Modified: head/net/wol/Makefile
==============================================================================
--- head/net/wol/Makefile	Fri Jan 31 17:11:32 2014	(r342044)
+++ head/net/wol/Makefile	Fri Jan 31 17:13:02 2014	(r342045)
@@ -11,29 +11,22 @@ MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Tool to wake up Wake-On-LAN compliant computers
 
 USES=		perl5
-GNU_CONFIGURE=		yes
+GNU_CONFIGURE=	yes
 USE_PERL5=	build
-CPPFLAGS+=		-I${LOCALBASE}/include
-LDFLAGS+=		-L${LOCALBASE}/lib
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
 
-MAN1=		wol.1
 INFO=		wol
 DOCS=		AUTHORS NEWS README TODO
 
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext iconv
-PLIST_SUB=	NLS=""
-.else
-CONFIGURE_ARGS=	--disable-nls
-PLIST_SUB=	NLS="@comment "
-.endif
+OPTIONS_DEFINE=	DOCS NLS
+
+OPTIONS_SUB=	yes
+NLS_USES=	gettext iconv
+NLS_CONFIGURE_OFF=	--disable-nls
 
-.if ${PORT_OPTIONS:MDOCS}
 post-install:
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/net/wol/pkg-plist
==============================================================================
--- head/net/wol/pkg-plist	Fri Jan 31 17:11:32 2014	(r342044)
+++ head/net/wol/pkg-plist	Fri Jan 31 17:13:02 2014	(r342045)
@@ -1,6 +1,7 @@
 bin/wol
 bin/wol-bootptab
 bin/wol-dhcpdconf
+man/man1/wol.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/NEWS
 %%PORTDOCS%%%%DOCSDIR%%/README


More information about the svn-ports-all mailing list