From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 29 07:30:12 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E1F016A41C for ; Wed, 29 Jun 2005 07:30:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38FD543D58 for ; Wed, 29 Jun 2005 07:30:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5T7UCBH087898 for ; Wed, 29 Jun 2005 07:30:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5T7UCCB087897; Wed, 29 Jun 2005 07:30:12 GMT (envelope-from gnats) Resent-Date: Wed, 29 Jun 2005 07:30:12 GMT Resent-Message-Id: <200506290730.j5T7UCCB087897@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Benjamin Constant Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C40216A41C for ; Wed, 29 Jun 2005 07:24:58 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28BA943D4C for ; Wed, 29 Jun 2005 07:24:58 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j5T7OtH9053625 for ; Wed, 29 Jun 2005 07:24:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j5T7Oti8053624; Wed, 29 Jun 2005 07:24:55 GMT (envelope-from nobody) Message-Id: <200506290724.j5T7Oti8053624@www.freebsd.org> Date: Wed, 29 Jun 2005 07:24:55 GMT From: Benjamin Constant To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/82765: Snmp support missing X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2005 07:30:12 -0000 >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@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 *************** *** 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: