1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

- update to 4.2.6

- fix build on FreeBSD 5 systems

PR:		48504
Submitted by:	Oliver Lehmann <lehmann@ans-netz.de>
This commit is contained in:
Yen-Ming Lee 2003-02-21 17:27:57 +00:00
parent 581acb4611
commit 64f0549f9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=76058
4 changed files with 56 additions and 8 deletions

View File

@ -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

View File

@ -1 +1 @@
MD5 (ucd-snmp-4.2.5.tar.gz) = 615e0b1e760cbb8c63b5392fe2d04b14
MD5 (ucd-snmp-4.2.6.tar.gz) = cf3f24e6a69a4f52c14affe0064116b1

View File

@ -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

View File

@ -1 +1 @@
MD5 (ucd-snmp-4.2.5.tar.gz) = 615e0b1e760cbb8c63b5392fe2d04b14
MD5 (ucd-snmp-4.2.6.tar.gz) = cf3f24e6a69a4f52c14affe0064116b1