diff options
author | Dennis Herrmann <dhn@FreeBSD.org> | 2011-01-03 15:05:08 +0000 |
---|---|---|
committer | Dennis Herrmann <dhn@FreeBSD.org> | 2011-01-03 15:05:08 +0000 |
commit | e62db21cb4d61409d50902c0959044e80c069560 (patch) | |
tree | 3049ac35247b879a630c710395d7a55eb14d69b3 /net/vnstat/Makefile | |
parent | 21526892f39daca6d022ea1a7c1229d60c0d68b7 (diff) |
Notes
Diffstat (limited to 'net/vnstat/Makefile')
-rw-r--r-- | net/vnstat/Makefile | 22 |
1 files changed, 17 insertions, 5 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 |