Bug 235870

Summary: New port: sysutils/nsysctl get or set kernel state with libxo and extra options
Product: Ports & Packages Reporter: Alfonso S. Siciliano <asiciliano>
Component: Individual Port(s)Assignee: Mateusz Piotrowski <0mp>
Status: Closed FIXED    
Severity: Affects Only Me CC: 0mp
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
nsysctl new port .shar none

Description Alfonso S. Siciliano freebsd_committer freebsd_triage 2019-02-20 01:41:31 UTC
Created attachment 202172 [details]
nsysctl new port .shar

nsysctl version 0.1

nsysctl is a /sbin/sysctl utility clone to get or set kernel 
state with libxo, sysctlmibinfo and extra options; improvements:

 * new options --libxo, -D, -F, -I, -l, -r, -m, -p, -S, -V, -v and -y.
 * updated options -e and -N.
 * deleted option -n, simply do not use -N.

WWW: https://gitlab.com/alfix/nsysctl/

This port depends only on base-system: kernel, sysctl(3), SLIST macros, libc and libxo.

Testing:
 * portlint -A
 * port test
 * poudriere testport -j 112Ramd64 -p default -i -o sysutils/nsysctl



Please commit it
Alfonso
Comment 1 Mateusz Piotrowski freebsd_committer freebsd_triage 2019-03-04 22:28:21 UTC
I'll take it
Comment 2 Mateusz Piotrowski freebsd_committer freebsd_triage 2019-03-05 20:17:54 UTC
https://reviews.freebsd.org/D19469
Comment 3 commit-hook freebsd_committer freebsd_triage 2019-03-15 09:29:32 UTC
A commit references this bug:

Author: 0mp
Date: Fri Mar 15 09:28:57 UTC 2019
New revision: 495780
URL: https://svnweb.freebsd.org/changeset/ports/495780

Log:
  New port: sysutils/nsysctl: New sysctl utility with libxo and extra options

  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/

  PR:	        235870
  Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com>
  Reviewed by:	mat
  Approved by:	mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D19469

Changes:
  head/sysutils/Makefile
  head/sysutils/nsysctl/
  head/sysutils/nsysctl/Makefile
  head/sysutils/nsysctl/distinfo
  head/sysutils/nsysctl/pkg-descr
Comment 4 Mateusz Piotrowski freebsd_committer freebsd_triage 2019-03-15 09:30:01 UTC
Committed! Thanks!