Index: sysutils/Makefile =================================================================== --- sysutils/Makefile +++ sysutils/Makefile @@ -750,6 +750,7 @@ SUBDIR += npadmin SUBDIR += nq SUBDIR += nrg2iso + SUBDIR += nsysctl SUBDIR += ntfy SUBDIR += nut SUBDIR += nvclock Index: sysutils/nsysctl/Makefile =================================================================== --- /dev/null +++ sysutils/nsysctl/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= nsysctl +DISTVERSION= 0.1 +CATEGORIES= sysutils + +MAINTAINER= alfix86@gmail.com +COMMENT= New sysctl utility with libxo and extra options + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USE_GITLAB= yes +GL_ACCOUNT= alfix +GL_COMMIT= 102780d056c2f03d1653f7c3f0bd9d8d5d4e91fd + +PLIST_FILES= bin/${PORTNAME} \ + man/man8/${PORTNAME}.8.gz + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/ + +.include Index: sysutils/nsysctl/distinfo =================================================================== --- /dev/null +++ sysutils/nsysctl/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1550625855 +SHA256 (alfix-nsysctl-102780d056c2f03d1653f7c3f0bd9d8d5d4e91fd_GL0.tar.gz) = fa4759161e57b47a1040fca525c238120fb9153ca305e4672cfcc4ed9064bf0a +SIZE (alfix-nsysctl-102780d056c2f03d1653f7c3f0bd9d8d5d4e91fd_GL0.tar.gz) = 16835 Index: sysutils/nsysctl/pkg-descr =================================================================== --- /dev/null +++ sysutils/nsysctl/pkg-descr @@ -0,0 +1,23 @@ +nsysctl (new sysctl) is a sysctl(8) utility clone to get or set kernel +state with libxo, sysctlmibinfo and extra options; improvements: + + * sysctlmibinfo(3) provides a simple API to the sysctl MIB, + * all code about "opaque values" is in opaque.c, + * output via libxo(3) in human and machine readable formats, + * output is explicitly indicated by the options, + * new option -D show all properties, + * update option -e specific sep as a separator, + * new option -F show flags, + * new option -I show internal nodes, + * new option -l show label, + * new option -r show tag-root with libxo, + * new option -m show format string, + * delete option -n simply do not use -N, + * updated option -N force to show name, + * new option -p show [property-name]: property-value, + * new option -S show magic nodes with -a, + * new option -V if "showable" display value, otherwise hide the state, + * new option -v force to show value, + * new option -y show id. + +WWW: https://gitlab.com/alfix/nsysctl/