ports/58109: net/net-snmp add in WITHOUT_PERL support
Matt Peterson
matt at peterson.org
Thu Oct 16 07:40:14 UTC 2003
>Number: 58109
>Category: ports
>Synopsis: net/net-snmp add in WITHOUT_PERL support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 16 00:40:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Matt Peterson
>Release: FreeBSD 4.9-PRERELEASE i386
>Organization:
Bay Area Wireless Users Group
>Environment:
>Description:
This diff adds support for a WITHOUT_PERL make option, this grew out of a need
for SNMP on an embedded system w/o the Perl bloat. The port maintainer may
wish to re-work this for WITH_PERL, either direction works for me ;)
make WITHOUT_PERL=1 BATCH=1 NET_SNMP_SYS_LOCATION=foo at boo.org package
>How-To-Repeat:
>Fix:
--- net-snmp.old/Makefile Wed Oct 15 19:41:15 2003
+++ net-snmp/Makefile Thu Oct 16 00:29:22 2003
@@ -14,7 +14,6 @@
MAINTAINER= kuriyama at FreeBSD.org
COMMENT= An extendable SNMP implementation
-USE_PERL5= yes
USE_REINPLACE= yes
USE_AUTOCONF_VER=213
USE_LIBTOOL= yes
@@ -23,16 +22,24 @@
LIBTOOLFLAGS= --disable-ltlibs --release-ignore
NO_LATEST_LINK= yes
+.if !defined(WITHOUT_PERL)
+USE_PERL5= yes
+.endif
+
CONFIGURE_ARGS+= --enable-shared --with-mib-modules="host ucd-snmp/diskio" \
- --with-default-snmp-version="${DEFAULT_SNMP_VERSION}" \
- --with-sys-contact="${NET_SNMP_SYS_CONTACT}" \
- --with-sys-location="${NET_SNMP_SYS_LOCATION}" \
- --with-logfile="${NET_SNMP_LOGFILE}" \
- --with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
- --with-perl-modules \
- --with-gnu-ld --with-libwrap --with-libs="-lkvm -ldevstat"
+ --with-default-snmp-version="${DEFAULT_SNMP_VERSION}" \
+ --with-sys-contact="${NET_SNMP_SYS_CONTACT}" \
+ --with-sys-location="${NET_SNMP_SYS_LOCATION}" \
+ --with-logfile="${NET_SNMP_LOGFILE}" \
+ --with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
+ --with-gnu-ld --with-libwrap --with-libs="-lkvm -ldevstat"
+
+.if !defined(WITHOUT_PERL)
+CONFIGURE_ARGS+= --with-perl-modules
+.endif
+
.if defined(BATCH)
-CONFIGURE_ARGS+= --with-defaults --with-sys-contact=nobody at no.where
+CONFIGURE_ARGS+= --with-defaults
.else
IS_INTERACTIVE= yes
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list