aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/vnstat/Makefile22
-rw-r--r--net/vnstat/distinfo1
2 files changed, 17 insertions, 6 deletions
diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile
index 66f435c6361b..23b904f43861 100644
--- a/net/vnstat/Makefile
+++ b/net/vnstat/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vnstat
PORTVERSION= 1.10
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= http://humdi.net/vnstat/ \
http://mirror.mcx2.org/
@@ -15,23 +15,35 @@ MASTER_SITES= http://humdi.net/vnstat/ \
MAINTAINER= dhn@FreeBSD.org
COMMENT= A console-based network traffic monitor
-LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
-
MAKE_ARGS= CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
INSTALL_TARGET= bsdinstall
-MAN1= vnstat.1 vnstatd.1 vnstati.1
+MAN1= vnstat.1 vnstatd.1
MAN5= vnstat.conf.5
MANCOMPRESSED= yes
PORTDOCS= README INSTALL_BSD UPGRADE vnstat-cron
SUB_FILES= pkg-message
+# will compile with image output
+OPTIONS= GUI "Build with graphics/gd dependency" on
+
+.include <bsd.port.options.mk>
+
PLIST_FILES= bin/vnstat \
sbin/vnstatd \
- bin/vnstati \
+ %%GUI%%bin/vnstati \
etc/vnstat.conf.sample
+.if !defined(WITHOUT_GUI)
+LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd
+PLIST_SUB+= GUI=""
+MAN1+= vnstati.1
+.else
+ALL_TARGET="vnstat"
+PLIST_SUB+= GUI="@comment "
+.endif
+
post-extract:
@cd ${WRKSRC} && ${CP} examples/vnstat.cron vnstat-cron
@cd ${WRKSRC} && ${CP} cfg/vnstat.conf cfg/vnstat.conf.sample
diff --git a/net/vnstat/distinfo b/net/vnstat/distinfo
index 625554ccb259..f1b0e00c28dc 100644
--- a/net/vnstat/distinfo
+++ b/net/vnstat/distinfo
@@ -1,3 +1,2 @@
-MD5 (vnstat-1.10.tar.gz) = 95421d968689130590348ceb80ff74a8
SHA256 (vnstat-1.10.tar.gz) = 150883f9a6f5fe2430707baa26bd148f3781423f09d27cb5285096ad943cbea2
SIZE (vnstat-1.10.tar.gz) = 77685