Skip to content

Commit

Permalink
net-snmp: Enable SHA256 and SHA512
Browse files Browse the repository at this point in the history
macOS openssl may not support it, but we use MacPorts openssl which
should support it.
  • Loading branch information
ryandesign committed Jun 8, 2018
1 parent a97db56 commit 613c734
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 18 deletions.
7 changes: 4 additions & 3 deletions net/net-snmp/Portfile
Expand Up @@ -5,11 +5,11 @@ PortGroup perl5 1.0

name net-snmp
version 5.7.3
revision 7
revision 8
categories net
license BSD
platforms darwin
maintainers ryandesign openmaintainer
maintainers {ryandesign @ryandesign} openmaintainer
homepage http://net-snmp.sourceforge.net/
master_sites sourceforge:project/${name}/${name}/${version}

Expand All @@ -24,7 +24,8 @@ long_description This is net-snmp, a derivative of CMU's SNMP \
command using SNMP, a Tk/perl MIB browser.

checksums rmd160 c5cf54d5723ee417e07f1f9fa3936aef505104a2 \
sha256 12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0
sha256 12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0 \
size 6382428

perl5.branches 5.26

Expand Down
8 changes: 4 additions & 4 deletions net/net-snmp/files/patch-Makefile.in.diff
@@ -1,13 +1,13 @@
--- Makefile.in.orig 2014-12-08 14:23:22.000000000 -0600
+++ Makefile.in 2015-10-14 00:33:20.000000000 -0500
+++ Makefile.in 2018-06-08 10:08:07.000000000 -0500
@@ -18,7 +18,9 @@
INSTALLHEADERS=version.h net-snmp-features.h
INCLUDESUBDIR=system
INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
- darwin.h darwin7.h darwin8.h darwin9.h darwin10.h dragonfly.h dynix.h \
+ darwin.h darwin7.h darwin8.h darwin9.h darwin10.h darwin11.h \
+ darwin12.h darwin13.h darwin14.h darwin15.h darwin16.h darwin17.h darwin18.h \
+ dragonfly.h dynix.h \
+ darwin.h darwin7.h darwin8.h darwin9.h darwin10.h darwin11.h darwin12.h \
+ darwin13.h darwin14.h darwin15.h darwin16.h darwin17.h darwin18.h \
+ dragonfly.h dynix.h \
freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h \
freebsd7.h freebsd8.h freebsd9.h freebsd10.h freebsd11.h \
freebsd12.h freebsd.h \
11 changes: 10 additions & 1 deletion net/net-snmp/files/patch-include-net-snmp-system-darwin11.h.diff
@@ -1,9 +1,18 @@
--- include/net-snmp/system/darwin11.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin11.h 2015-10-14 00:23:08.000000000 -0500
+++ include/net-snmp/system/darwin11.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
+ * While Darwin 11 (aka, Mac OS X 10.7 Lion) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
11 changes: 10 additions & 1 deletion net/net-snmp/files/patch-include-net-snmp-system-darwin12.h.diff
@@ -1,9 +1,18 @@
--- include/net-snmp/system/darwin12.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin12.h 2015-10-14 00:22:57.000000000 -0500
+++ include/net-snmp/system/darwin12.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
+ * While Darwin 12 (aka, OS X 10.8 Mountain Lion) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
11 changes: 10 additions & 1 deletion net/net-snmp/files/patch-include-net-snmp-system-darwin13.h.diff
@@ -1,9 +1,18 @@
--- include/net-snmp/system/darwin13.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin13.h 2015-10-14 00:22:42.000000000 -0500
+++ include/net-snmp/system/darwin13.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
+ * While Darwin 13 (aka, OS X 10.9 Mavericks) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
11 changes: 10 additions & 1 deletion net/net-snmp/files/patch-include-net-snmp-system-darwin14.h.diff
@@ -1,5 +1,5 @@
--- include/net-snmp/system/darwin14.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin14.h 2015-10-14 00:28:27.000000000 -0500
+++ include/net-snmp/system/darwin14.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
Expand All @@ -20,3 +20,12 @@
#endif

/*
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
11 changes: 10 additions & 1 deletion net/net-snmp/files/patch-include-net-snmp-system-darwin15.h.diff
@@ -1,5 +1,5 @@
--- include/net-snmp/system/darwin15.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin15.h 2015-10-14 00:28:27.000000000 -0500
+++ include/net-snmp/system/darwin15.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
Expand All @@ -20,3 +20,12 @@
#endif

/*
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
13 changes: 11 additions & 2 deletions net/net-snmp/files/patch-include-net-snmp-system-darwin16.h.diff
@@ -1,9 +1,9 @@
--- include/net-snmp/system/darwin16.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin16.h 2015-10-14 00:28:27.000000000 -0500
+++ include/net-snmp/system/darwin16.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
+ * While Darwin 16 (aka, Future Release) is "BSD-like", it differs
+ * While Darwin 16 (aka, macOS 10.12 Sierra) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
Expand All @@ -20,3 +20,12 @@
#endif

/*
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
13 changes: 11 additions & 2 deletions net/net-snmp/files/patch-include-net-snmp-system-darwin17.h.diff
@@ -1,9 +1,9 @@
--- include/net-snmp/system/darwin17.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin17.h 2015-10-14 00:28:27.000000000 -0500
+++ include/net-snmp/system/darwin17.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
+ * While Darwin 17 (aka, Future Release) is "BSD-like", it differs
+ * While Darwin 17 (aka, macOS 10.13 High Sierra) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
Expand All @@ -20,3 +20,12 @@
#endif

/*
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1
13 changes: 11 additions & 2 deletions net/net-snmp/files/patch-include-net-snmp-system-darwin18.h.diff
@@ -1,9 +1,9 @@
--- include/net-snmp/system/darwin18.h.orig 2014-12-08 14:23:22.000000000 -0600
+++ include/net-snmp/system/darwin18.h 2015-10-14 00:28:27.000000000 -0500
+++ include/net-snmp/system/darwin18.h 2018-06-08 10:08:07.000000000 -0500
@@ -1,5 +1,5 @@
/*
- * While Darwin 10 (aka, Mac OS X 10.6 Snow Leopard) is "BSD-like", it differs
+ * While Darwin 18 (aka, Future Release) is "BSD-like", it differs
+ * While Darwin 18 (aka, macOS 10.14 Mojave) is "BSD-like", it differs
* substantially enough to not warrant pretending it is a BSD flavor.
* This first section are the vestigal BSD remnants.
*/
Expand All @@ -20,3 +20,12 @@
#endif

/*
@@ -136,8 +136,3 @@
#define UDP_ADDRESSES_IN_HOST_ORDER 1
#endif

-/*
- * as of 7/2010, openssl on darwin does not have sha256
- */
-#define OPENSSL_NO_SHA256 1
-#define OPENSSL_NO_SHA512 1

0 comments on commit 613c734

Please sign in to comment.