aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/p5-SNMP-Util
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-05-20 16:40:07 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-05-20 16:40:07 +0000
commit45ca7c68afa7165f43ca3fb7f8ced81aeb21f670 (patch)
tree1889422500dfadb0a3fa9ced2d6c8b8621ebd73c /net-mgmt/p5-SNMP-Util
parent0387618a5bd08ad267220968d921bc7fdb796821 (diff)
downloadports-45ca7c68afa7165f43ca3fb7f8ced81aeb21f670.tar.gz
ports-45ca7c68afa7165f43ca3fb7f8ced81aeb21f670.zip
Notes
Diffstat (limited to 'net-mgmt/p5-SNMP-Util')
-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