ports/82765: Snmp support missing
Benjamin Constant
bconstant at be.tiauto.com
Wed Jun 29 07:30:12 UTC 2005
>Number: 82765
>Category: ports
>Synopsis: Snmp support missing
>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: Wed Jun 29 07:30:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Benjamin Constant
>Release: 5.4 stable
>Organization:
TI Automotive
>Environment:
FreeBSD liemaster01.resource.tiauto.com 5.4-STABLE FreeBSD 5.4-STABLE #10: Thu Jun 16 13:59:24 CEST 2005 root at liemaster01.resource.tiauto.com:/usr/obj/usr/src/sys/ASUS_AP1600RS5 i386
>Description:
Apcupsd project is able to get ups status trough snmp protocol but the current configuration of the FreeBSD port does not include snmp support.
It is useful when you have multiple boxes connected to one main ups and when you don't want ups monitoring dependencies between the boxes.
>How-To-Repeat:
>Fix:
*** Makefile Wed Jun 29 08:59:44 2005
--- Makefile.new Wed Jun 29 08:59:32 2005
***************
*** 31,36 ****
--- 31,37 ----
OPTIONS= CLIENT_ONLY "Build apcupsd client only (no network server)" off
OPTIONS+= CGI "Compile with CGI programms to show status" off
OPTIONS+= USB "Compile with USB Support (READ MANUAL!!!)" off
+ OPTIONS+= SNMP "Compile with SNMP Support (READ MANUAL!!!)" off
.include <bsd.port.pre.mk>
***************
*** 52,57 ****
--- 53,63 ----
CONFIGURE_ARGS+=--enable-master-slave
.endif
+ .if defined(WITH_SNMP)
+ LIB_DEPENDS+= netsnmp.7:${PORTSDIR}/net-mgmt/net-snmp
+ CONFIGURE_ARGS+=--enable-snmp --enable-net
+ .endif
+
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" \
LDFLAGS="-L${LOCALBASE}/lib"
***************
*** 75,80 ****
--- 81,87 ----
@${ECHO_MSG} " WITH_CGI=yes if you want to build CGI support."
@${ECHO_MSG} " WITH_CLIENT_ONLY=yes if you only want a network client."
@${ECHO_MSG} " WITH_USB=yes to compile with USB support (READ MANUAL!!!)"
+ @${ECHO_MSG} " WITH_SNMP=yes to compile with SNMP support (READ MANUAL!!!)"
@${ECHO_MSG} ""
.if defined(WITH_CGI)
@${ECHO_MSG} "===> Building with CGI support."
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list