Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Mar 2019 21:43:00 +0000 (UTC)
From:      Luca Pizzamiglio <pizzamig@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496389 - in head/devel: . libsysctlmibinfo
Message-ID:  <201903202143.x2KLh0Ux058977@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pizzamig
Date: Wed Mar 20 21:42:59 2019
New Revision: 496389
URL: https://svnweb.freebsd.org/changeset/ports/496389

Log:
  devel/libsysctlmibinfo: new port
  
  A library to easily access the sysctl/mib tree.
  
  PR:		236538
  Submitted by:	maintainer

Added:
  head/devel/libsysctlmibinfo/
  head/devel/libsysctlmibinfo/Makefile   (contents, props changed)
  head/devel/libsysctlmibinfo/distinfo   (contents, props changed)
  head/devel/libsysctlmibinfo/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Mar 20 21:40:03 2019	(r496388)
+++ head/devel/Makefile	Wed Mar 20 21:42:59 2019	(r496389)
@@ -1588,6 +1588,7 @@
     SUBDIR += libstatgrab0
     SUBDIR += libstrfunc
     SUBDIR += libstroke
+    SUBDIR += libsysctlmibinfo
     SUBDIR += libsysinfo
     SUBDIR += libtai
     SUBDIR += libtap

Added: head/devel/libsysctlmibinfo/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsysctlmibinfo/Makefile	Wed Mar 20 21:42:59 2019	(r496389)
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME=	libsysctlmibinfo
+DISTVERSION=	1.0
+CATEGORIES=	devel
+
+MAINTAINER=	alfix86@gmail.com
+COMMENT=	API to get sysctl MIB info
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_LDCONFIG=	yes
+
+USE_GITLAB=	yes
+
+GL_ACCOUNT=	alfix
+GL_PROJECT=	sysctlmibinfo
+GL_COMMIT=	c2cee0cea2fff405e6dc0ab1aed484abab5dc7c7
+
+PLIST_FILES=	include/sysctlmibinfo.h \
+		lib/libsysctlmibinfo.a \
+		lib/libsysctlmibinfo.so \
+		lib/libsysctlmibinfo.so.1 \
+		man/man3/sysctlmibinfo.3.gz
+
+do-install:
+	${INSTALL_DATA} ${WRKSRC}/sysctlmibinfo.h ${STAGEDIR}${PREFIX}/include
+	${INSTALL_DATA} ${WRKSRC}/libsysctlmibinfo.a ${STAGEDIR}${PREFIX}/lib
+	${INSTALL_LIB} ${WRKSRC}/libsysctlmibinfo.so.1 ${STAGEDIR}${PREFIX}/lib
+	${RLN} ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo.so.1 ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo.so
+	${INSTALL_MAN} ${WRKSRC}/sysctlmibinfo.3.gz ${STAGEDIR}${MAN3PREFIX}/man/man3
+
+.include <bsd.port.mk>

Added: head/devel/libsysctlmibinfo/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsysctlmibinfo/distinfo	Wed Mar 20 21:42:59 2019	(r496389)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1552612768
+SHA256 (alfix-sysctlmibinfo-c2cee0cea2fff405e6dc0ab1aed484abab5dc7c7_GL0.tar.gz) = 0422c5e0452a5d6b3321d4e475432c044d885963f3f97f4a85b877314c386cdd
+SIZE (alfix-sysctlmibinfo-c2cee0cea2fff405e6dc0ab1aed484abab5dc7c7_GL0.tar.gz) = 9351

Added: head/devel/libsysctlmibinfo/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libsysctlmibinfo/pkg-descr	Wed Mar 20 21:42:59 2019	(r496389)
@@ -0,0 +1,13 @@
+sysctlmibinfo is an open source library for FreeBSD:
+
+ * provides a C API to wrap kern_sysctl.c undocumented interface
+ * defines and builds a handy mib-object
+ * builds object-list and object-tree in userspace
+
+The advantages to use sysctlmibinfo are:
+
+ * an easy userspace API to the kernel sysctl mib-tree
+ * building quickly a custom sysctl(8) tool
+ * changes to kern_sysctl.c interface won't upset userspace tools
+
+WWW: https://gitlab.com/alfix/sysctlmibinfo/



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