svn commit: r480906 - head/net/tcpreen

Alex Kozlov ak at FreeBSD.org
Sat Sep 29 12:01:26 UTC 2018


Author: ak
Date: Sat Sep 29 12:01:25 2018
New Revision: 480906
URL: https://svnweb.freebsd.org/changeset/ports/480906

Log:
  - Add LICENSE
  - Use options helpers
  - Update WWW [1]
  
  PR:	231258 [1]
  Submitted by:	Kurt Jaeger <pi at FreeBSD.org> [1]
  Approved by:	Janos Mohacsi <jmohacsi at bsd.hu> (maintainer)

Modified:
  head/net/tcpreen/Makefile
  head/net/tcpreen/pkg-descr
  head/net/tcpreen/pkg-plist

Modified: head/net/tcpreen/Makefile
==============================================================================
--- head/net/tcpreen/Makefile	Sat Sep 29 10:12:45 2018	(r480905)
+++ head/net/tcpreen/Makefile	Sat Sep 29 12:01:25 2018	(r480906)
@@ -10,29 +10,22 @@ MASTER_SITES=	http://www.remlab.net/files/tcpreen/
 MAINTAINER=	jmohacsi at bsd.hu
 COMMENT=	Simple TCP session re-engineering tool
 
+LICENSE=	GPLv2+
+
 USES=		tar:bzip2
 GNU_CONFIGURE=	yes
 
-DOC_FILES=	AUTHORS NEWS README THANKS TODO
+OPTIONS_SUB=	yes
 
+PORTDOCS=	AUTHORS NEWS README THANKS TODO
+
 OPTIONS_DEFINE=	DOCS NLS
 
-.include <bsd.port.options.mk>
+NLS_USES=	gettext
+NLS_CONFIGURE_OFF=	--disable-nls
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-PLIST_SUB+=	NLS=""
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+=	NLS="@comment "
-.endif
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for file in ${DOC_FILES}
-	@${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
-.endfor
-.endif
+	@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/net/tcpreen/pkg-descr
==============================================================================
--- head/net/tcpreen/pkg-descr	Sat Sep 29 10:12:45 2018	(r480905)
+++ head/net/tcpreen/pkg-descr	Sat Sep 29 12:01:25 2018	(r480906)
@@ -3,6 +3,4 @@ a client and a server via a TCP connection. This tool 
 stream (software/socket layer), not on the lower level transmission
 protocol as packet sniffers do.
 
-WWW: http://www.simphalempin.com/dev/tcpreen/
-
-Janos Mohacsi <janos.mohacsi at bsd.hu>
+WWW: https://www.remlab.net/tcpreen/

Modified: head/net/tcpreen/pkg-plist
==============================================================================
--- head/net/tcpreen/pkg-plist	Sat Sep 29 10:12:45 2018	(r480905)
+++ head/net/tcpreen/pkg-plist	Sat Sep 29 12:01:25 2018	(r480906)
@@ -2,8 +2,3 @@ bin/tcpreen
 man/man1/tcpreen.1.gz
 %%NLS%%share/locale/fr/LC_MESSAGES/tcpreen.mo
 %%NLS%%share/locale/pt_BR/LC_MESSAGES/tcpreen.mo
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/THANKS
-%%PORTDOCS%%%%DOCSDIR%%/TODO


More information about the svn-ports-head mailing list