svn commit: r424455 - head/net-mgmt/bandwidthd

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Oct 22 09:03:54 UTC 2016


Author: amdmi3
Date: Sat Oct 22 09:03:52 2016
New Revision: 424455
URL: https://svnweb.freebsd.org/changeset/ports/424455

Log:
  - Fix LICENSE
  - Switch to options helpers

Modified:
  head/net-mgmt/bandwidthd/Makefile
  head/net-mgmt/bandwidthd/distinfo

Modified: head/net-mgmt/bandwidthd/Makefile
==============================================================================
--- head/net-mgmt/bandwidthd/Makefile	Sat Oct 22 08:28:30 2016	(r424454)
+++ head/net-mgmt/bandwidthd/Makefile	Sat Oct 22 09:03:52 2016	(r424455)
@@ -10,29 +10,32 @@ MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Tracks bandwidth usage by IP address
 
-LICENSE=	GPLv2
+LICENSE=	GPLv3+ # "any version of the GPL that is current as of your download"
 
 LIB_DEPENDS=	libgd.so:graphics/gd
 
-SUB_FILES=	bandwidthd
-
-USE_CSTD=	gnu89
-
+USES=		gmake tar:tgz
 GNU_CONFIGURE=	YES
 CONFIGURE_ARGS=	ac_cv_lib_iconv_libiconv_open=no \
 		ac_cv_lib_m_pow=no \
 		ac_cv_lib_png_png_read_info=no \
 		ac_cv_lib_pq_PQconnectdb=no
-USES=		gmake tar:tgz
+USE_CSTD=	gnu89
+
+SUB_FILES=	bandwidthd
+
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
-	${REINPLACE_CMD} -e '/requires.*libpng/,/exit/d' \
+	@${REINPLACE_CMD} -e '/requires.*libpng/,/exit/d' \
 		${WRKSRC}/configure
 
 post-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/bandwidthd \
-	    ${STAGEDIR}${PREFIX}/etc/rc.d
-	${MKDIR} ${STAGEDIR}${DOCSDIR}
+		${STAGEDIR}${PREFIX}/etc/rc.d
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/net-mgmt/bandwidthd/distinfo
==============================================================================
--- head/net-mgmt/bandwidthd/distinfo	Sat Oct 22 08:28:30 2016	(r424454)
+++ head/net-mgmt/bandwidthd/distinfo	Sat Oct 22 09:03:52 2016	(r424455)
@@ -1,2 +1,3 @@
+TIMESTAMP = 1476707733
 SHA256 (bandwidthd-2.0.1.tgz) = 6ddbb80f7585658425fe31f6ccd293df9754052e012376af11814566ca878306
 SIZE (bandwidthd-2.0.1.tgz) = 140687


More information about the svn-ports-all mailing list