*** 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."