Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2018 20:48:29 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485624 - head/net/vnstat
Message-ID:  <201811222048.wAMKmTXA014370@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Thu Nov 22 20:48:28 2018
New Revision: 485624
URL: https://svnweb.freebsd.org/changeset/ports/485624

Log:
  Convert to options target helper
  
  Approved by:	portmgr (blanket)

Modified:
  head/net/vnstat/Makefile

Modified: head/net/vnstat/Makefile
==============================================================================
--- head/net/vnstat/Makefile	Thu Nov 22 20:48:20 2018	(r485623)
+++ head/net/vnstat/Makefile	Thu Nov 22 20:48:28 2018	(r485624)
@@ -37,8 +37,6 @@ GUI_DESC=	Build with graphics/gd dependency
 
 GUI_LIB_DEPENDS+=	libgd.so:graphics/gd
 
-.include <bsd.port.options.mk>
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/vnstat ${STAGEDIR}/${PREFIX}/bin/vnstat
 	${INSTALL_PROGRAM} ${WRKSRC}/vnstatd ${STAGEDIR}/${PREFIX}/sbin/vnstatd
@@ -46,10 +44,10 @@ do-install:
 	${INSTALL_MAN} ${WRKSRC}/man/vnstat.1 ${STAGEDIR}/${MANPREFIX}/man/man1/vnstat.1
 	${INSTALL_MAN} ${WRKSRC}/man/vnstatd.1 ${STAGEDIR}/${MANPREFIX}/man/man1/vnstatd.1
 	${INSTALL_MAN} ${WRKSRC}/man/vnstat.conf.5 ${STAGEDIR}/${MANPREFIX}/man/man5/vnstat.conf.5
-.if ${PORT_OPTIONS:MGUI}
+
+do-install-GUI-on:
 	${INSTALL_PROGRAM} ${WRKSRC}/vnstati ${STAGEDIR}/${PREFIX}/bin/vnstati
 	${INSTALL_MAN} ${WRKSRC}/man/vnstati.1 ${STAGEDIR}/${MANPREFIX}/man/man1/vnstati.1
-.endif
 
 post-install-DOCS-on:
 	@${ECHO_MSG} "installing additional documentation to ${DOCSDIR}"



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