aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-05-21 00:40:07 +0800
committerbms <bms@FreeBSD.org>2004-05-21 00:40:07 +0800
commitf0949f92d046517aedf401af33aff52d773c9a76 (patch)
treecb35ce7919ce6012a4aeda9cf6267723d6bc1edb /net-mgmt
parent375936a92e38d12d24c1b8da7d3b1e87f28a3759 (diff)
downloadfreebsd-ports-gnome-f0949f92d046517aedf401af33aff52d773c9a76.tar.gz
freebsd-ports-gnome-f0949f92d046517aedf401af33aff52d773c9a76.tar.zst
freebsd-ports-gnome-f0949f92d046517aedf401af33aff52d773c9a76.zip
Deprecate the dependency on net-snmp4 by folding it under a WITH_NETSNMP4
switch, and set to depend on net-snmp's builtin SNMP.pm implementation by default. Reviewed by: fenner
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/p5-SNMP-Util/Makefile8
-rw-r--r--net-mgmt/p5-SNMP-Util/files/extra-net-snmp-patch-Makefile.PL19
-rw-r--r--net-mgmt/p5-SNMP-Util/files/patch-Makefile.PL (renamed from net-mgmt/p5-SNMP-Util/files/patch-aa)0
3 files changed, 27 insertions, 0 deletions
diff --git a/net-mgmt/p5-SNMP-Util/Makefile b/net-mgmt/p5-SNMP-Util/Makefile
index 297fce90e68b..1ccd5a5b08d1 100644
--- a/net-mgmt/p5-SNMP-Util/Makefile
+++ b/net-mgmt/p5-SNMP-Util/Makefile
@@ -15,7 +15,15 @@ PKGNAMEPREFIX= p5-
MAINTAINER= fenner@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
PERL_CONFIGURE= yes
diff --git a/net-mgmt/p5-SNMP-Util/files/extra-net-snmp-patch-Makefile.PL b/net-mgmt/p5-SNMP-Util/files/extra-net-snmp-patch-Makefile.PL
new file mode 100644
index 000000000000..96c1354cd6af
--- /dev/null
+++ b/net-mgmt/p5-SNMP-Util/files/extra-net-snmp-patch-Makefile.PL
@@ -0,0 +1,19 @@
+--- Makefile.PL.orig Tue Jun 27 19:40:11 2000
++++ Makefile.PL Thu May 20 14:04:59 2004
+@@ -1,13 +1,13 @@
+ use ExtUtils::MakeMaker;
+ use FileHandle;
+
+-print "Checking for SNMP, V1.8 ";
++print "Checking for SNMP, V5.1 ";
+ $@ = '';
+-eval "use SNMP 1.8 ();";
++eval "use SNMP 5.1 ();";
+ if ($@) {
+ $ok = 0;
+- print("\nYou don't have installed the SNMP module, version 1.8 or",
++ print("\nYou don't have installed the SNMP module, version 5.1 or",
+ " later.\n");
+ } else {
+ print "ok\n";
+ }
diff --git a/net-mgmt/p5-SNMP-Util/files/patch-aa b/net-mgmt/p5-SNMP-Util/files/patch-Makefile.PL
index 1ada2f247c76..1ada2f247c76 100644
--- a/net-mgmt/p5-SNMP-Util/files/patch-aa
+++ b/net-mgmt/p5-SNMP-Util/files/patch-Makefile.PL