aboutsummaryrefslogtreecommitdiff
path: root/net/ifstat
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-07-10 11:32:57 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-07-10 11:32:57 +0000
commit46ba2524983b12a7223d8564ce24e60f3400ed9b (patch)
tree66bb94ad19a39873b5b3f1dcd71dddd6d5a39012 /net/ifstat
parentda3e4a3751e86a0c158ef1f5d7ffb1d95c159511 (diff)
downloadports-46ba2524983b12a7223d8564ce24e60f3400ed9b.tar.gz
ports-46ba2524983b12a7223d8564ce24e60f3400ed9b.zip
Notes
Diffstat (limited to 'net/ifstat')
-rw-r--r--net/ifstat/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/net/ifstat/Makefile b/net/ifstat/Makefile
index 4e23607eed5e..9ec56d516e8a 100644
--- a/net/ifstat/Makefile
+++ b/net/ifstat/Makefile
@@ -14,12 +14,18 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= krion@FreeBSD.org
COMMENT= Network interface statistics monitoring tool
-LIB_DEPENDS= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
-
GNU_CONFIGURE= yes
USE_OPENSSL= yes
MAN1= ifstat.1
PLIST_FILES= bin/ifstat
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SNMP)
+LIB_DEPENDS+= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
+.else
+CONFIGURE_ARGS+= --without-snmp
+.endif
+
+.include <bsd.port.post.mk>