svn commit: r317300 - head/net/pbnc

Hiroki Sato hrs at FreeBSD.org
Sat May 4 11:26:17 UTC 2013


Author: hrs
Date: Sat May  4 08:49:36 2013
New Revision: 317300
URL: http://svnweb.freebsd.org/changeset/ports/317300

Log:
  - Trim old-style header.
  - Add LICENSE.
  - Use OPTIONS_DEFINE.

Modified:
  head/net/pbnc/Makefile

Modified: head/net/pbnc/Makefile
==============================================================================
--- head/net/pbnc/Makefile	Sat May  4 08:45:42 2013	(r317299)
+++ head/net/pbnc/Makefile	Sat May  4 08:49:36 2013	(r317300)
@@ -1,7 +1,3 @@
-# Ports collection makefile for:  pbnc
-# Date created:	  03 Apr 2004
-# Whom:		  hrs
-#
 # $FreeBSD$
 
 PORTNAME=	pbnc
@@ -14,6 +10,8 @@ DISTNAME=	pbnc
 MAINTAINER=	hrs at FreeBSD.org
 COMMENT=	Simple userspace TCP port bouncer
 
+LICENSE=	BSD
+
 RUN_DEPENDS=	p5-Net-Netmask>=0:${PORTSDIR}/net-mgmt/p5-Net-Netmask
 
 NO_BUILD=	yes
@@ -21,14 +19,18 @@ USE_PERL5_RUN=	yes
 PLIST_FILES=	etc/pbnc.cfg bin/pbnc.pl
 PORTDOCS= 	pbnc.readme
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 pre-install:
 	${REINPLACE_CMD} 's,^#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/pbnc.pl
 
 do-install:
 	${INSTALL_DATA} ${WRKSRC}/pbnc.cfg ${PREFIX}/etc/pbnc.cfg
 	${INSTALL_SCRIPT} ${WRKSRC}/pbnc.pl ${PREFIX}/bin/pbnc.pl
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
 .endif
 


More information about the svn-ports-all mailing list