- Add (GUI) Option for vnstati support
- Remove MD5 checksum
This commit is contained in:
parent
21526892f3
commit
e62db21cb4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267324
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user