Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2016 14:19:24 +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: r405553 - head/net/rude
Message-ID:  <201601081419.u08EJO1g059720@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Jan  8 14:19:24 2016
New Revision: 405553
URL: https://svnweb.freebsd.org/changeset/ports/405553

Log:
  - Clarify LICENSE
  - Switch to options helpers

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

Modified: head/net/rude/Makefile
==============================================================================
--- head/net/rude/Makefile	Fri Jan  8 14:18:49 2016	(r405552)
+++ head/net/rude/Makefile	Fri Jan  8 14:19:24 2016	(r405553)
@@ -10,7 +10,7 @@ MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Rude is a Real-time UDP Data Emitter and Collector (crude)
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2 # or later
 LICENSE_FILE=	${WRKSRC}/DOC/COPYING
 
 RUN_DEPENDS=	p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk
@@ -19,20 +19,27 @@ HAS_CONFIGURE=	yes
 CONFIGURE_ENV=	--with-debug-lvl=3
 USES=		perl5 shebangfix
 SHEBANG_FILES=	grude/grude
+
 WRKSRC=		${WRKDIR}/${PORTNAME}
-OPTIONS_DEFINE=	DOCS
 
-DOC_FILES=	README README.rude README.crude TODO example.cfg
-EXAMPLE_FILES=	crude_jitter.pl crude_parse.pl dump2trace.pl
+PORTDOCS=	README README.rude README.crude TODO example.cfg
+PORTEXAMPLES=	crude_jitter.pl crude_parse.pl dump2trace.pl
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/grude/grude ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for FILE in ${DOC_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/DOC/${FILE} ${STAGEDIR}${DOCSDIR}
+.for FILE in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/DOC/${FILE} ${STAGEDIR}${DOCSDIR}
 .endfor
-.for FILE in ${EXAMPLE_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/scripts/${FILE} ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+.for FILE in ${PORTEXAMPLES}
+	${INSTALL_DATA} ${WRKSRC}/scripts/${FILE} ${STAGEDIR}${EXAMPLESDIR}
 .endfor
 
 .include <bsd.port.mk>

Modified: head/net/rude/pkg-plist
==============================================================================
--- head/net/rude/pkg-plist	Fri Jan  8 14:18:49 2016	(r405552)
+++ head/net/rude/pkg-plist	Fri Jan  8 14:19:24 2016	(r405553)
@@ -3,11 +3,3 @@ bin/grude
 bin/rude
 man/man8/crude.8.gz
 man/man8/rude.8.gz
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README.crude
-%%PORTDOCS%%%%DOCSDIR%%/README.rude
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/example.cfg
-%%PORTDOCS%%%%DOCSDIR%%/crude_jitter.pl
-%%PORTDOCS%%%%DOCSDIR%%/crude_parse.pl
-%%PORTDOCS%%%%DOCSDIR%%/dump2trace.pl



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