Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2005 15:38:18 +0200
From:      "Constant, Benjamin" <bconstant@be.tiauto.com>
To:        "'freebsd-ports@freebsd.org'" <freebsd-ports@freebsd.org>
Subject:   Modification request for /usr/ports/sysutils/apcupsd/ (+snmp supp ort)
Message-ID:  <B6D948D84090A54ABCD88AA391DAAC8C018963E6@tiasbel00ex00.be.eu.tiauto.com>

next in thread | raw e-mail | index | archive | help
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C57BE6.A4E5D5B7
Content-Type: text/plain


Hello list,

What is the right way to follow to request port changes?

Now, this is my request:

I'm using multiple FreeBSD boxes connected to a *big* ups and I want to be
able to
perform a clean shutdown in case of power outage. This ups is equipped with
a WEB/SNMP
management card and the only way to get ups status for this ups is to use
snmp polling
because there is only one serial output on this ups. Apcupsd project is able
to manage
retrieve ups status trough snmp protocol but the current configuration of
the FreeBSD
port does not include snmp support. I performed some tests with snmp support
on a
FreeBSD 5.4 stable and I've included a patch ($FreeBSD:
ports/sysutils/apcupsd/Makefile
,v 1.36 2005/05/15 14:51:44 lkoeller Exp $) in attachement.

Regards,

Benjamin Constant
TI Automotive



The information contained in this transmission may contain privileged and
confidential information.  It is intended only for the use of the
person(s) named above. If you are not the intended recipient, you are
hereby notified that any review, dissemination, distribution or
duplication of this communication is strictly prohibited. If you are not
the intended recipient, please contact the sender by reply email and
destroy all copies of the original message. This communication is from TI
Automotive.
------_=_NextPart_000_01C57BE6.A4E5D5B7
Content-Type: application/octet-stream;
	name="Makefile.patch"
Content-Disposition: attachment;
	filename="Makefile.patch"

*** Makefile	Tue Jun 28 15:34:06 2005
--- Makefile.new	Tue Jun 28 15:34:31 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,62 ----
  CONFIGURE_ARGS+=--enable-master-slave
  .endif
  
+ .if defined(WITH_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 ****
--- 80,86 ----
  	@${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."

------_=_NextPart_000_01C57BE6.A4E5D5B7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B6D948D84090A54ABCD88AA391DAAC8C018963E6>