ports/68890: Update port: net/ifstat (snmp knob)
Kimura Fuyuki
fuyuki at hadaly.org
Sat Jul 10 11:00:38 UTC 2004
>Number: 68890
>Category: ports
>Synopsis: Update port: net/ifstat (snmp knob)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 10 11:00:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Kimura Fuyuki
>Release: FreeBSD 5.2.1-RELEASE-p9 i386
>Organization:
>Environment:
FreeBSD ns.nigredo.org 5.2.1-RELEASE-p9 i386
>Description:
Add a knob for net-snmp support. It is rarely required by those who is
living in a simple network.
>How-To-Repeat:
>Fix:
cvs diff: Diffing .
Index: Makefile
===================================================================
RCS file: /cvs/FreeBSD/ports/net/ifstat/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 1 Apr 2004 09:39:46 -0000 1.7
+++ Makefile 10 Jul 2004 10:40:20 -0000
@@ -14,12 +14,20 @@
MAINTAINER= krion at 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>
+OPTIONS= SNMP "With Net-SNMP support" on
+
+.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>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list