sysutils/sysctlbyname-improved-kmod: fix after r366465

- the new sysctl object {0.7} "sysctl.nextnoskip" overlaps this interface
- add files/patch-sysctlinfo.h to change sysctl OIDs of sysctlinfo
  and the OID of this kmod

PR:		250149
Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com> (maintainer)
This commit is contained in:
Kurt Jaeger 2020-10-31 16:34:27 +00:00
parent b3b913fc7f
commit 46848689da
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553781
2 changed files with 52 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= sysctlbyname-improved-kmod
DISTVERSION= 20191124
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= alfix86@gmail.com

View File

@ -0,0 +1,51 @@
--- sysctlinfo.h.orig 2020-10-05 19:37:03 UTC
+++ sysctlinfo.h
@@ -40,27 +40,27 @@
/*
* MIB level 2, sysctlinfo identifiers
*/
-#define ENTRYFAKENAME 7
-#define ENTRYNAME 8
-#define ENTRYDESC 9
-#define ENTRYLABEL 10
-#define ENTRYKIND 11
-#define ENTRYFMT 12
-#define ENTRYNEXTNODE 13
-#define ENTRYNEXTLEAF 14
-#define ENTRYALLINFO 15
-#define ENTRYALLINFO_WITHNEXTNODE 16
-#define ENTRYALLINFO_WITHNEXTLEAF 17
-#define ENTRYIDBYNAME 18
-#define ENTRYFAKEIDBYNAME 19
-#define ENTRYDESCBYNAME 20
-#define ENTRYLABELBYNAME 21
-#define ENTRYKINDBYNAME 22
-#define ENTRYFMTBYNAME 23
-#define ENTRYALLINFOBYNAME 24
-#define ENTRYALLINFOBYNAME_WITHNEXTNODE 25
-#define ENTRYALLINFOBYNAME_WITHNEXTLEAF 26
-#define ENTRYIDINPUTBYNAME 27
+#define ENTRYFAKENAME 8
+#define ENTRYNAME 9
+#define ENTRYDESC 10
+#define ENTRYLABEL 11
+#define ENTRYKIND 12
+#define ENTRYFMT 13
+#define ENTRYNEXTNODE 14
+#define ENTRYNEXTLEAF 15
+#define ENTRYALLINFO 16
+#define ENTRYALLINFO_WITHNEXTNODE 17
+#define ENTRYALLINFO_WITHNEXTLEAF 18
+#define ENTRYIDBYNAME 19
+#define ENTRYFAKEIDBYNAME 20
+#define ENTRYDESCBYNAME 21
+#define ENTRYLABELBYNAME 22
+#define ENTRYKINDBYNAME 23
+#define ENTRYFMTBYNAME 24
+#define ENTRYALLINFOBYNAME 25
+#define ENTRYALLINFOBYNAME_WITHNEXTNODE 26
+#define ENTRYALLINFOBYNAME_WITHNEXTLEAF 27
+#define ENTRYIDINPUTBYNAME 28
#define SYSCTLINFO_MAXFAKENAME 64