aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2014-06-24 23:56:11 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2014-06-24 23:56:11 +0000
commit82d63454523e39b1d098b6d9db483aa2d7bbe9ac (patch)
treece38193890795806b12f88f9bd520593f28db06b /net-mgmt/net-snmp
parentc60ec37afd0ce5f49799df53de29ec80f8e19fed (diff)
downloadports-82d63454523e39b1d098b6d9db483aa2d7bbe9ac.tar.gz
ports-82d63454523e39b1d098b6d9db483aa2d7bbe9ac.zip
Notes
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index 0d8911b5ac7d..223824ccb50c 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= snmp
PORTVERSION= 5.7.2
-PORTREVISION= 11
+PORTREVISION= 12
CATEGORIES= net-mgmt ipv6
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= net-
@@ -54,7 +54,7 @@ CONFIGURE_ARGS+=--enable-shared --enable-internal-md5 \
--with-logfile="${NET_SNMP_LOGFILE}" \
--with-persistent-directory="${NET_SNMP_PERSISTENTDIR}" \
--with-gnu-ld --with-libwrap \
- --with-ldflags="-lm -lkvm -ldevstat -lpkg -L${LOCALBASE}/lib"
+ --with-ldflags="-lm -lkvm -ldevstat -lpkg ${LDFLAGS}"
SUB_FILES= pkg-message
.if defined(BATCH)
@@ -203,6 +203,12 @@ DOC_FILES= AGENT.txt COPYING FAQ NEWS README \
CONFLICTS= ucd-snmp-4.* net-snmp-5.3.*
+.include <bsd.port.pre.mk>
+
+.if defined(OPENSSL_PORT)
+LDFLAGS+= -lcrypto
+.endif
+
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "You may use the following build options:"
@@ -292,4 +298,4 @@ display-message:
# Don't forget to bump library version in these ports.
# french/plgrenouille,graphics/hpoj,lang/php4,lang/php5,mail/cyrus-imapd22,mail/cyrus-imapd23,misc/kdeutils3,net-mgmt/braa,net-mgmt/docsis,net-mgmt/mbrowse,net-mgmt/nagios-snmp-plugins,net-mgmt/p5-SNMP-Info,net-mgmt/py-yapsnmp,net-mgmt/sdig,net-mgmt/zabbix,net/cactid,net/wireshark,net/ifstat,net/quagga,net/rtg,print/hplip,security/libfwbuilder,sysutils/apcupsd,sysutils/jailadmin,sysutils/nut
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>