diff options
author | dhn <dhn@FreeBSD.org> | 2011-01-03 23:05:08 +0800 |
---|---|---|
committer | dhn <dhn@FreeBSD.org> | 2011-01-03 23:05:08 +0800 |
commit | 72765e5f60bc09a50a0d645e5823f68aefc82544 (patch) | |
tree | d7f00cac6c0e17b614588c3fc5b2b064aa3da549 /net | |
parent | 4a0ab3ad0bae8bd76c3d37398435a541a847574c (diff) | |
download | freebsd-ports-graphics-72765e5f60bc09a50a0d645e5823f68aefc82544.tar.gz freebsd-ports-graphics-72765e5f60bc09a50a0d645e5823f68aefc82544.tar.zst freebsd-ports-graphics-72765e5f60bc09a50a0d645e5823f68aefc82544.zip |
- Add (GUI) Option for vnstati support
- Remove MD5 checksum
Diffstat (limited to 'net')
-rw-r--r-- | net/vnstat/Makefile | 22 | ||||
-rw-r--r-- | net/vnstat/distinfo | 1 |
2 files changed, 17 insertions, 6 deletions
diff --git a/net/vnstat/Makefile b/net/vnstat/Makefile index 66f435c6361..23b904f4386 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 625554ccb25..f1b0e00c28d 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 |