Index: head/sysutils/nsysctl/files/patch-src_opaque.c =================================================================== --- head/sysutils/nsysctl/files/patch-src_opaque.c (revision 567019) +++ head/sysutils/nsysctl/files/patch-src_opaque.c (nonexistent) @@ -1,10 +0,0 @@ ---- src/opaque.c.orig 2021-02-09 21:56:37 UTC -+++ src/opaque.c -@@ -32,6 +32,7 @@ - /* Original: https://svnweb.freebsd.org/base/head/sbin/sysctl/sysctl.c */ - - #include -+#include - #include - #include - #include Property changes on: head/sysutils/nsysctl/files/patch-src_opaque.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/nsysctl/files/patch-src_sysctlinfo__helper.c =================================================================== --- head/sysutils/nsysctl/files/patch-src_sysctlinfo__helper.c (revision 567019) +++ head/sysutils/nsysctl/files/patch-src_sysctlinfo__helper.c (nonexistent) @@ -1,13 +0,0 @@ ---- src/sysctlinfo_helper.c.orig 2021-02-09 21:52:37 UTC -+++ src/sysctlinfo_helper.c -@@ -25,6 +25,10 @@ - * SUCH DAMAGE. - */ - -+#include -+#include -+#include -+ - #include - #include - #include Property changes on: head/sysutils/nsysctl/files/patch-src_sysctlinfo__helper.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/nsysctl/files/patch-src_special__value.c =================================================================== --- head/sysutils/nsysctl/files/patch-src_special__value.c (revision 567019) +++ head/sysutils/nsysctl/files/patch-src_special__value.c (nonexistent) @@ -1,11 +0,0 @@ ---- src/special_value.c.orig 2021-02-09 21:57:57 UTC -+++ src/special_value.c -@@ -27,6 +27,8 @@ - - /* 'Special values' are strings parsed for xo-output */ - -+#include -+ - #include - #include - Property changes on: head/sysutils/nsysctl/files/patch-src_special__value.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/nsysctl/files/patch-src_nsysctl.c =================================================================== --- head/sysutils/nsysctl/files/patch-src_nsysctl.c (revision 567019) +++ head/sysutils/nsysctl/files/patch-src_nsysctl.c (nonexistent) @@ -1,12 +0,0 @@ ---- src/nsysctl.c.orig 2021-02-09 21:47:51 UTC -+++ src/nsysctl.c -@@ -25,7 +25,9 @@ - * SUCH DAMAGE. - */ - -+#include - #include -+#include - - #include - #include Property changes on: head/sysutils/nsysctl/files/patch-src_nsysctl.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/nsysctl/Makefile =================================================================== --- head/sysutils/nsysctl/Makefile (revision 567019) +++ head/sysutils/nsysctl/Makefile (revision 567020) @@ -1,51 +1,48 @@ # $FreeBSD$ PORTNAME= nsysctl -DISTVERSION= 1.2.1 -PORTREVISION= 4 +DISTVERSION= 2.0 CATEGORIES= sysutils MAINTAINER= alfix86@gmail.com -COMMENT= Utility to get or set the kernel state supporting libxo output +COMMENT= Utility to get and set kernel state at runtime LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${LOCALBASE}/include/sysctlinfo.h:sysutils/sysctlinfo-kmod -LIB_DEPENDS= libsysctlmibinfo.so:devel/libsysctlmibinfo -RUN_DEPENDS= ${KMODDIR}/sysctlinfo.ko:sysutils/sysctlinfo-kmod +LIB_DEPENDS= libsysctlmibinfo2.so:devel/libsysctlmibinfo2 USE_GITLAB= yes GL_ACCOUNT= alfix -GL_COMMIT= 61f2bacc1d374ba357e6f67e07372eee0d765cda +GL_COMMIT= 0e2408202e9c6da7d33f3a65a1e09bca0c6458a8 PLIST_FILES= man/man8/${PORTNAME}.8.gz \ sbin/${PORTNAME} PORTDOCS= CHANGELOG PORTEXAMPLES= file.conf OPTIONS_DEFINE= DOCS EXAMPLES .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019 IGNORE= needs oid_label member of struct sysctl_oid defined in sysctl.h which was first introduced in FreeBSD 12 .endif .if ${OPSYS} != FreeBSD IGNORE= not supported on anything but FreeBSD .endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR} .include Index: head/sysutils/nsysctl/distinfo =================================================================== --- head/sysutils/nsysctl/distinfo (revision 567019) +++ head/sysutils/nsysctl/distinfo (revision 567020) @@ -1,3 +1,3 @@ -TIMESTAMP = 1612906310 -SHA256 (alfix-nsysctl-61f2bacc1d374ba357e6f67e07372eee0d765cda_GL0.tar.gz) = 8e4bdbef243ad5e2f652609fa4aba0c7f5a13fe275ad1fd2005a66c53f929e56 -SIZE (alfix-nsysctl-61f2bacc1d374ba357e6f67e07372eee0d765cda_GL0.tar.gz) = 25724 +TIMESTAMP = 1614701213 +SHA256 (alfix-nsysctl-0e2408202e9c6da7d33f3a65a1e09bca0c6458a8_GL0.tar.gz) = fe3b0ed52f5441da307b03df849f1a70c01aff62232438a11b7ad1a5c2cd6392 +SIZE (alfix-nsysctl-0e2408202e9c6da7d33f3a65a1e09bca0c6458a8_GL0.tar.gz) = 18852 Index: head/sysutils/nsysctl/pkg-descr =================================================================== --- head/sysutils/nsysctl/pkg-descr (revision 567019) +++ head/sysutils/nsysctl/pkg-descr (revision 567020) @@ -1,10 +1,15 @@ -The nsysctl utility is a sysctl(8) clone to get or set the -kernel state supporting libxo and extra options, features: +Utility to get and set the kernel state at runtime, features: - * new options to show the properties of a state, - * output is explicitly indicated by the options, - * the options are not mutually exclusive, + * get or set the system state at runtime, + * handle an object up to CTL_MAXNAME levels, + * print the right object also with an empty level name, + * options to show the properties of a parameter, + * output explicitly indicated by the options, + * options not mutually exclusive, * output via libxo in human and machine readable formats, - * some value is parsed to show structured output. + * isolated code to manage opaque values, + * some string value is parsed to show structured output, + * avoid non-primitive data types hardcode via libnv, + * debug without recompiling the kernel with SYSCTL_DEBUG. WWW: https://gitlab.com/alfix/nsysctl/