aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-05-16 19:42:27 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-05-16 19:42:27 +0000
commit9cb79ba80fdcbe0ca66a58b3c2c20cf3d044a6c3 (patch)
treea77da8a18bd4898b2a400c25f187324989c6e039 /net-mgmt
parent9efaf0e19ddab3019d2235ca3c7c238ba2f53d82 (diff)
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/net-snmp/Makefile4
-rw-r--r--net-mgmt/net-snmp/pkg-plist2
2 files changed, 4 insertions, 2 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index e5635215e1c9..481d8b3ee594 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -40,7 +40,7 @@ CONFIGURE_ARGS+=--enable-shared --enable-internal-md5 \
--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="-lm -lkvm -ldevstat"
+ --with-gnu-ld --with-libwrap --with-ldflags="-lm -lkvm -ldevstat"
.if defined(BATCH)
CONFIGURE_ARGS+=--with-defaults
@@ -66,8 +66,10 @@ USE_PERL5= yes
CONFIGURE_ARGS+=--with-perl-modules
.if defined(WITHOUT_PERL_EMBEDDED)
CONFIGURE_ARGS+=--disable-embedded-perl
+PLIST_SUB+= WITH_PERL_EMBEDDED="@comment "
.else
CONFIGURE_ARGS+=--enable-embedded-perl
+PLIST_SUB+= WITH_PERL_EMBEDDED=""
.endif
PLIST_SUB+= WITH_PERL=""
.else
diff --git a/net-mgmt/net-snmp/pkg-plist b/net-mgmt/net-snmp/pkg-plist
index 0bfc8f4e6016..1c3179d6a6cf 100644
--- a/net-mgmt/net-snmp/pkg-plist
+++ b/net-mgmt/net-snmp/pkg-plist
@@ -398,7 +398,7 @@ sbin/snmptrapd
%%DATADIR%%/mibs/UCD-SNMP-MIB.txt
%%DATADIR%%/mibs/UDP-MIB.txt
@unexec rm -f %D/%%DATADIR%%/mibs/.index 2>/dev/null || true
-%%WITH_PERL%%%%DATADIR%%/snmp_perl.pl
+%%WITH_PERL_EMBEDDED%%%%DATADIR%%/snmp_perl.pl
%%DATADIR%%/snmpconf-data/snmp-data/authopts
%%DATADIR%%/snmpconf-data/snmp-data/debugging
%%DATADIR%%/snmpconf-data/snmp-data/mibs