Skip site navigation (1)Skip section navigation (2)
Date:      16 Oct 2003 00:33:50 -0700
From:      Matt Peterson <matt@peterson.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Matt Peterson <matt@peterson.org>
Subject:   ports/58109: net/net-snmp add in WITHOUT_PERL support
Message-ID:  <20031016073350.26386.qmail@mail.forko.com>
Resent-Message-ID: <200310160740.h9G7eCN1092106@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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@no.where
+CONFIGURE_ARGS+= --with-defaults 
 .else
 IS_INTERACTIVE= yes
 .endif
>Release-Note:
>Audit-Trail:
>Unformatted:



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