From owner-svn-ports-head@freebsd.org Sat Dec 14 11:09:29 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 F18C91C9CF9; Sat, 14 Dec 2019 11:09:29 +0000 (UTC) (envelope-from tcberner@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 47ZlD966xTz4GSd; Sat, 14 Dec 2019 11:09:29 +0000 (UTC) (envelope-from tcberner@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 C941123B6A; Sat, 14 Dec 2019 11:09:29 +0000 (UTC) (envelope-from tcberner@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBEB9T1s022564; Sat, 14 Dec 2019 11:09:29 GMT (envelope-from tcberner@FreeBSD.org) Received: (from tcberner@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBEB9TOZ022557; Sat, 14 Dec 2019 11:09:29 GMT (envelope-from tcberner@FreeBSD.org) Message-Id: <201912141109.xBEB9TOZ022557@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tcberner set sender to tcberner@FreeBSD.org using -f From: "Tobias C. Berner" Date: Sat, 14 Dec 2019 11:09:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520108 - in head/devel: . libsysctlmibinfo2 X-SVN-Group: ports-head X-SVN-Commit-Author: tcberner X-SVN-Commit-Paths: in head/devel: . libsysctlmibinfo2 X-SVN-Commit-Revision: 520108 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: Sat, 14 Dec 2019 11:09:30 -0000 Author: tcberner Date: Sat Dec 14 11:09:28 2019 New Revision: 520108 URL: https://svnweb.freebsd.org/changeset/ports/520108 Log: [NEW PORT] devel/libsysctlmibinfo2: sysctl MIB info API version 2 The sysctlmibinfo2 library provides an API to explore the sysctl MIB and to get the info of an object, it is useful to build a sysctl(8)-like tool. WWW: https://gitlab.com/alfix/sysctlmibinfo2/ PR: 242237 Submitted by: Alfonso S. Siciliano Added: head/devel/libsysctlmibinfo2/ head/devel/libsysctlmibinfo2/Makefile (contents, props changed) head/devel/libsysctlmibinfo2/distinfo (contents, props changed) head/devel/libsysctlmibinfo2/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Dec 14 11:06:43 2019 (r520107) +++ head/devel/Makefile Sat Dec 14 11:09:28 2019 (r520108) @@ -1366,6 +1366,7 @@ SUBDIR += libstrfunc SUBDIR += libstroke SUBDIR += libsysctlmibinfo + SUBDIR += libsysctlmibinfo2 SUBDIR += libsysinfo SUBDIR += libtai SUBDIR += libtap Added: head/devel/libsysctlmibinfo2/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libsysctlmibinfo2/Makefile Sat Dec 14 11:09:28 2019 (r520108) @@ -0,0 +1,48 @@ +# $FreeBSD$ + +PORTNAME= libsysctlmibinfo2 +DISTVERSION= 2.0.0 +CATEGORIES= devel + +MAINTAINER= alfix86@gmail.com +COMMENT= API to get sysctl MIB info version 2 + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/sysctlinfo.h:sysutils/sysctlinfo-kmod +RUN_DEPENDS= ${KMODDIR}/sysctlinfo.ko:sysutils/sysctlinfo-kmod +RUN_DEPENDS= ${KMODDIR}/sysctlbyname_improved.ko:sysutils/sysctlbyname-improved-kmod + +USE_LDCONFIG= yes +USE_GITLAB= yes + +GL_ACCOUNT= alfix +GL_PROJECT= sysctlmibinfo2 +GL_COMMIT= d72ac5edefc222969faa57109c5c169c2ad69306 + +PLIST_FILES= include/sysctlmibinfo2.h \ + lib/libsysctlmibinfo2.a \ + lib/libsysctlmibinfo2.so \ + lib/libsysctlmibinfo2.so.2.0.0 \ + man/man3/sysctlmibinfo2.3.gz + +PORTEXAMPLES= * + +OPTIONS_DEFINE= EXAMPLES +OPTIONS_DEFAULT= EXAMPLES + +do-install: + ${INSTALL_DATA} ${WRKSRC}/sysctlmibinfo2.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/libsysctlmibinfo2.a ${STAGEDIR}${PREFIX}/lib + ${INSTALL_LIB} ${WRKSRC}/libsysctlmibinfo2.so.2.0.0 ${STAGEDIR}${PREFIX}/lib + ${RLN} ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo2.so.2.0.0 ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo2.so + ${INSTALL_MAN} ${WRKSRC}/sysctlmibinfo2.3.gz ${STAGEDIR}${MAN3PREFIX}/man/man3 + +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for e in ${PORTEXAMPLES} + ${INSTALL_DATA} ${WRKSRC}/examples/${e} ${STAGEDIR}${EXAMPLESDIR} +.endfor + +.include Added: head/devel/libsysctlmibinfo2/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libsysctlmibinfo2/distinfo Sat Dec 14 11:09:28 2019 (r520108) @@ -0,0 +1,3 @@ +TIMESTAMP = 1574724977 +SHA256 (alfix-sysctlmibinfo2-d72ac5edefc222969faa57109c5c169c2ad69306_GL0.tar.gz) = 6eb80840a90bb6fb0dbc2239eb5d35ac468699a297955a9f45c4880bf6b5a70c +SIZE (alfix-sysctlmibinfo2-d72ac5edefc222969faa57109c5c169c2ad69306_GL0.tar.gz) = 8574 Added: head/devel/libsysctlmibinfo2/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libsysctlmibinfo2/pkg-descr Sat Dec 14 11:09:28 2019 (r520108) @@ -0,0 +1,17 @@ +The sysctlmibinfo2 library provides an API to explore the sysctl MIB and +to get the info of an object, it depends on the sysctlinfo interface and +sysctlbyname-improved. + +This library provides: + + * an API to wrap the internal sysctl nodes of sysctlinfo and + sysctlbyname-improved, + * defines a handy userland MIB object representation + * functions to build object-list and object-tree + +The advantages to use sysctlmibinfo2 are: + + * an easy userspace API to the kernel sysctl MIB-Tree + * building quickly a custom sysctl(8) tool + +WWW: https://gitlab.com/alfix/sysctlmibinfo2/