aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp4/Makefile
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-02-22 01:27:57 +0800
committerleeym <leeym@FreeBSD.org>2003-02-22 01:27:57 +0800
commit28908666b4b5c0649a7be226c9920d67e62e841f (patch)
tree16c21f869321a31268be05ade5b05a1b697cec7b /net-mgmt/net-snmp4/Makefile
parent2ab22c90bceda8e9cd87d9bea0acc5316de628f2 (diff)
downloadfreebsd-ports-gnome-28908666b4b5c0649a7be226c9920d67e62e841f.tar.gz
freebsd-ports-gnome-28908666b4b5c0649a7be226c9920d67e62e841f.tar.zst
freebsd-ports-gnome-28908666b4b5c0649a7be226c9920d67e62e841f.zip
- update to 4.2.6
- fix build on FreeBSD 5 systems PR: 48504 Submitted by: Oliver Lehmann <lehmann@ans-netz.de>
Diffstat (limited to 'net-mgmt/net-snmp4/Makefile')
-rw-r--r--net-mgmt/net-snmp4/Makefile30
1 files changed, 27 insertions, 3 deletions
diff --git a/net-mgmt/net-snmp4/Makefile b/net-mgmt/net-snmp4/Makefile
index 6e68dd8e091a..d2a1902bfd7e 100644
--- a/net-mgmt/net-snmp4/Makefile
+++ b/net-mgmt/net-snmp4/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= ucd-snmp
-PORTVERSION= 4.2.5
-PORTREVISION= 2
+PORTVERSION= 4.2.6
+PORTREVISION= 0
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://ucd-snmp.ucdavis.edu/ \
@@ -67,13 +67,37 @@ STARTUP_FILE= ${PREFIX}/etc/rc.d/snmpd.sh
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+= --enable-ipv6
.endif
+
+.if defined(WITHOUT_SSL)
+CONFIGURE_ARGS+= --without-openssl
+.else
+.if defined(WITH_PORTSSL) || ${OSVERSION} >= 500100
.if ${OSVERSION} >= 500100
-IGNORE= Broken with latest OpenSSL suite
+LIB_DEPENDS+= crypto.4:${PORTSDIR}/security/openssl
+.else
+LIB_DEPENDS+= crypto.3:${PORTSDIR}/security/openssl
+.endif
+CONFIGURE_ARGS+= --with-openssl=${LOCALBASE}
+CFLAGS+= -DOPENSSL_DES_LIBDES_COMPATIBILITY
+.else
+CONFIGURE_ARGS+= --with-openssl=/usr
+.endif
.endif
SHLIB_VERSION= 4
PLIST_SUB+= shlib=${SHLIB_VERSION}
+pre-everything::
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " WITH_PORTSSL=yes Use the OpenSSL Version delivered by the ports."
+ @${ECHO} " With FreeBSD 5, net-snmp4 requires automaticly"
+ @${ECHO} " the OpenSSL ports-version. In the 5 case, you"
+ @${ECHO} " don't need to define WITH_PORTSSL (default)."
+ @${ECHO} " WITHOUT_SSL=yes Disable the OpenSSL support."
+ @${ECHO} ""
+
post-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
${WRKSRC}/aclocal.m4