Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Dec 2019 11:09:29 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520108 - in head/devel: . libsysctlmibinfo2
Message-ID:  <201912141109.xBEB9TOZ022557@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <alfix86@gmail.com>

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 <bsd.port.mk>

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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912141109.xBEB9TOZ022557>