From owner-svn-ports-head@freebsd.org Tue Sep 24 09:41:23 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CE2C5FF2AB; Tue, 24 Sep 2019 09:41:23 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46cx5v58V0z4G7p; Tue, 24 Sep 2019 09:41:23 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 94409255D2; Tue, 24 Sep 2019 09:41:23 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8O9fNrr034545; Tue, 24 Sep 2019 09:41:23 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8O9fMhe034272; Tue, 24 Sep 2019 09:41:22 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201909240941.x8O9fMhe034272@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Tue, 24 Sep 2019 09:41:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r512707 - in head/sysutils: . sysctlinfo-kmod X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/sysutils: . sysctlinfo-kmod X-SVN-Commit-Revision: 512707 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2019 09:41:23 -0000 Author: kai Date: Tue Sep 24 09:41:22 2019 New Revision: 512707 URL: https://svnweb.freebsd.org/changeset/ports/512707 Log: [NEW PORT]: sysutils/sysctlinfo-kmod Kernel module to implement the sysctlinfo interface, it explores the sysctl tree to pass the info of the nodes to the userland; a header file with constants and helper macros is provided, too. WWW: https://gitlab.com/alfix/sysctlinfo PR: 240390 Submitted by: Alfonso S. Siciliano Added: head/sysutils/sysctlinfo-kmod/ head/sysutils/sysctlinfo-kmod/Makefile (contents, props changed) head/sysutils/sysctlinfo-kmod/distinfo (contents, props changed) head/sysutils/sysctlinfo-kmod/pkg-descr (contents, props changed) head/sysutils/sysctlinfo-kmod/pkg-message (contents, props changed) Modified: head/sysutils/Makefile Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Sep 24 09:38:25 2019 (r512706) +++ head/sysutils/Makefile Tue Sep 24 09:41:22 2019 (r512707) @@ -1306,6 +1306,7 @@ SUBDIR += synergy-1 SUBDIR += sysadm SUBDIR += sysadm-client + SUBDIR += sysctlinfo-kmod SUBDIR += sysgather SUBDIR += sysinfo SUBDIR += syslinux Added: head/sysutils/sysctlinfo-kmod/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sysctlinfo-kmod/Makefile Tue Sep 24 09:41:22 2019 (r512707) @@ -0,0 +1,56 @@ +# $FreeBSD$ + +PORTNAME= sysctlinfo-kmod +DISTVERSION= 20190907 +CATEGORIES= sysutils + +MAINTAINER= alfix86@gmail.com +COMMENT= Interface to visit the sysctl MIB-tree and to get the nodes info + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= kmod +USE_GITLAB= yes +GL_ACCOUNT= alfix +GL_PROJECT= sysctlinfo +GL_COMMIT= 1f1b05e3432ccada8c38cfb5f1987dfceb75524b + +PLIST_FILES= ${KMODDIR}/sysctlinfo.ko \ + include/sysctlinfo.h \ + man/man3/sysctlinfo.3.gz \ + man/man4/sysctlinfo.4.gz + +PORTEXAMPLES= Makefile \ + allinfo.c \ + allinfobyname.c \ + capability.c \ + singleinfo.c + +OPTIONS_DEFINE= EXAMPLES +OPTIONS_DEFAULT= EXAMPLES + +.include + +# Once the sysctlinfo interface (review D21700) lands into the base tree the +# following statement needs to be expanded +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019 +IGNORE= oid_label was introduced in FreeBSD 1200019 +.endif +.if ${OPSYS} != FreeBSD +IGNORE= not supported on anything but FreeBSD +.endif + +do-install: + ${INSTALL_KLD} ${WRKSRC}/sysctlinfo.ko ${STAGEDIR}${KMODDIR} + ${INSTALL_DATA} ${WRKSRC}/sysctlinfo.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_MAN} ${WRKSRC}/sysctlinfo.3 ${STAGEDIR}${MAN3PREFIX}/man/man3 + ${INSTALL_MAN} ${WRKSRC}/sysctlinfo.4 ${STAGEDIR}${MAN4PREFIX}/man/man4 + +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for e in ${PORTEXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/examples/${e} ${STAGEDIR}${EXAMPLESDIR} +.endfor + +.include Added: head/sysutils/sysctlinfo-kmod/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sysctlinfo-kmod/distinfo Tue Sep 24 09:41:22 2019 (r512707) @@ -0,0 +1,3 @@ +TIMESTAMP = 1568559895 +SHA256 (alfix-sysctlinfo-1f1b05e3432ccada8c38cfb5f1987dfceb75524b_GL0.tar.gz) = a37e19e50da8132ed18669030e236bd551a547c0fce6b8a560f1d7b336081c3d +SIZE (alfix-sysctlinfo-1f1b05e3432ccada8c38cfb5f1987dfceb75524b_GL0.tar.gz) = 30767 Added: head/sysutils/sysctlinfo-kmod/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sysctlinfo-kmod/pkg-descr Tue Sep 24 09:41:22 2019 (r512707) @@ -0,0 +1,5 @@ +Kernel module to implement the sysctlinfo interface, it explores +the sysctl tree to pass the info of the nodes to the userland; +a header file with constants and helper macros is provided, too. + +WWW: https://gitlab.com/alfix/sysctlinfo Added: head/sysutils/sysctlinfo-kmod/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/sysctlinfo-kmod/pkg-message Tue Sep 24 09:41:22 2019 (r512707) @@ -0,0 +1,16 @@ +[ +{ type: install + message: <