1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Remove support for ucd-snmp4 in ports, that also support net-snmp5.

(ucd-snmp4 port is past expiration date)
This commit is contained in:
Pav Lucistnik 2009-12-08 08:59:28 +00:00
parent 2395e2f49c
commit 680174eb06
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=245389
10 changed files with 20 additions and 91 deletions

View File

@ -293,10 +293,9 @@ CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} \
--with-openssl-dir=${OPENSSLBASE} \
--enable-ucd-snmp-hack
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
OPTIONS= SNMP4 "Use old UCD SNMP instead of the new NET SNMP" off
.endif
.if ${PHP_MODNAME} == "sockets"
@ -466,14 +465,6 @@ post-patch:
@${REINPLACE_CMD} "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/pfpro.c
.endif
.if ${PHP_MODNAME} == "snmp"
. if defined(WITH_SNMP4) || exists(${LOCALBASE}/lib/libsnmp.so.4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
. else
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
. endif
.endif
.if ${PHP_MODNAME} == "zlib"
post-extract:
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4

View File

@ -378,10 +378,9 @@ CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} \
--with-openssl-dir=${OPENSSLBASE} \
--enable-ucd-snmp-hack
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
OPTIONS= SNMP4 "Use old UCD SNMP instead of the new NET SNMP" off
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
.endif
.if ${PHP_MODNAME} == "soap"
@ -601,14 +600,6 @@ LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds
.endif
.endif
.if ${PHP_MODNAME} == "snmp"
. if defined(WITH_SNMP4) || exists(${LOCALBASE}/lib/libsnmp.so.4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
. else
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
. endif
.endif
.if ${PHP_MODNAME} == "sqlite"
. if defined(WITH_UTF8)
CONFIGURE_ARGS+=--enable-sqlite-utf8

View File

@ -378,10 +378,9 @@ CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} \
--with-openssl-dir=${OPENSSLBASE} \
--enable-ucd-snmp-hack
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
OPTIONS= SNMP4 "Use old UCD SNMP instead of the new NET SNMP" off
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
.endif
.if ${PHP_MODNAME} == "soap"
@ -601,14 +600,6 @@ LIB_DEPENDS+= ct.4:${PORTSDIR}/databases/freetds
.endif
.endif
.if ${PHP_MODNAME} == "snmp"
. if defined(WITH_SNMP4) || exists(${LOCALBASE}/lib/libsnmp.so.4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
. else
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
. endif
.endif
.if ${PHP_MODNAME} == "sqlite"
. if defined(WITH_UTF8)
CONFIGURE_ARGS+=--enable-sqlite-utf8

View File

@ -48,8 +48,7 @@ OPTIONS= DRAC "Enable DRAC support" off \
MURDER "Enable IMAP Murder support" off \
NETSCAPEHACK "Enable X-NETSCAPE extensions" off \
NNTP "Enable NNTP support" off \
SNMP_4 "Enable SNMP support using net-snmp v4" off \
SNMP_5 "Enable SNMP support using net-snmp v5" off \
SNMP_5 "Enable SNMP support" off \
PASS8BITHACK "Add pass8bit option (not recommended)" off
.include <bsd.port.pre.mk>
@ -105,15 +104,8 @@ CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
.if defined(WITH_SNMP_4) && defined(WITH_SNMP_5)
BROKEN= Multiple net-snmp versions selected. Run 'make config' again!
.endif
.if defined(WITH_SNMP_4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.elif defined(WITH_SNMP_5)
.if defined(WITH_SNMP_5)
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
.endif
.if defined(WITH_SNMP_4) || defined(WITH_SNMP_5)
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no

View File

@ -50,8 +50,7 @@ OPTIONS= BDB "Use Berkeley DB" on \
PGSQL "Use PostgreSQL (experimental)" off \
REPLICATION "Enable replication" off \
SQLITE "Use SQLite (experimental)" off \
SNMP_4 "Enable SNMP support using net-snmp v4" off \
SNMP_5 "Enable SNMP support using net-snmp v5" off
SNMP_5 "Enable SNMP support" off
.include <bsd.port.pre.mk>
@ -126,15 +125,8 @@ CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
.if defined(WITH_SNMP_4) && defined(WITH_SNMP_5)
BROKEN= Multiple net-snmp versions selected. Run 'make config' again!
.endif
.if defined(WITH_SNMP_4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.elif defined(WITH_SNMP_5)
.if defined(WITH_SNMP_5)
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
.endif
.if defined(WITH_SNMP_4) || defined(WITH_SNMP_5)
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no

View File

@ -50,8 +50,7 @@ OPTIONS= BDB "Use Berkeley DB" on \
PGSQL "Use PostgreSQL (experimental)" off \
REPLICATION "Enable replication" off \
SQLITE "Use SQLite (experimental)" off \
SNMP_4 "Enable SNMP support using net-snmp v4" off \
SNMP_5 "Enable SNMP support using net-snmp v5" off
SNMP_5 "Enable SNMP support" off
.include <bsd.port.pre.mk>
@ -126,15 +125,8 @@ CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
.if defined(WITH_SNMP_4) && defined(WITH_SNMP_5)
BROKEN= Multiple net-snmp versions selected. Run 'make config' again!
.endif
.if defined(WITH_SNMP_4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.elif defined(WITH_SNMP_5)
.if defined(WITH_SNMP_5)
LIB_DEPENDS+= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
.endif
.if defined(WITH_SNMP_4) || defined(WITH_SNMP_5)
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no

View File

@ -14,23 +14,13 @@ MASTER_SITES= http://www.kill-9.org/mbrowse/
MAINTAINER= ports@FreeBSD.org
COMMENT= An SNMP MIB Browser for X
.if defined(WITH_NET_SNMP4)
LIB_DEPENDS= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.else
LIB_DEPENDS= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
.endif
GNU_CONFIGURE= yes
PLIST_FILES= bin/mbrowse
USE_GNOME= gtk12 gnometarget
CONFIGURE_ARGS+= --with-snmp-prefix=${PREFIX}
.if defined(WITH_NET_SNMP4)
CONFIGURE_ARGS+= --with-snmp-type=ucd
.else
CONFIGURE_ENV+= LDFLAGS="`net-snmp-config --libs`" \
CPPFLAGS="`net-snmp-config --cflags`"
CONFIGURE_ARGS+= --with-snmp-type=net
.endif
CONFIGURE_ARGS= --with-snmp-prefix=${PREFIX} --with-snmp-type=net
CONFIGURE_ENV= LDFLAGS="`net-snmp-config --libs`" \
CPPFLAGS="`net-snmp-config --cflags`"
.include <bsd.port.mk>

View File

@ -15,15 +15,9 @@ PKGNAMEPREFIX= p5-
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl modules to perform SNMP set,get,walk,next,walk_hash etc
#
# Define WITH_NETSNMP4 to use net-mgmt/net-snmp4 instead of net-mgmt/net-snmp.
#
.if !defined(WITH_NETSNMP4)
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/net-snmp
EXTRA_PATCHES+= ${PATCHDIR}/extra-net-snmp-patch-Makefile.PL
.else
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/SNMP.pm:${PORTSDIR}/net-mgmt/p5-SNMP
.endif
EXTRA_PATCHES= ${PATCHDIR}/extra-net-snmp-patch-Makefile.PL
PERL_CONFIGURE= yes

View File

@ -1,3 +1,3 @@
This Perl library is a set of utilities for configuring and monitoring
SNMP based devices. This library requires the UCD port of SNMP and the
SNMP.pm module written by Joe Marzot.
SNMP based devices. This library requires the Net-SNMP implementation of SNMP
and the SNMP.pm module written by Joe Marzot.

View File

@ -22,11 +22,7 @@ PORTDOCS= INSTALL README
.include <bsd.port.pre.mk>
.if defined(WITH_SNMP)
.if exists(${LOCALBASE}/lib/libsnmp.so.4) || defined(WITH_SNMP4)
LIB_DEPENDS+= snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.else
LIB_DEPENDS+= netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp
.endif
PLIST_SUB+= SNMP=""
.else
INSTALL_TARGET= installbase