View | Details | Raw Unified | Return to bug 253883
Collapse All | Expand All

(-)Makefile (-7 / +6 lines)
Lines 1-12 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	libsysctlmibinfo2
3
PORTNAME=	libsysctlmibinfo2
4
DISTVERSION=	2.0.0
4
DISTVERSION=	2.0.1
5
PORTREVISION=	3
6
CATEGORIES=	devel
5
CATEGORIES=	devel
7
6
8
MAINTAINER=	alfix86@gmail.com
7
MAINTAINER=	alfix86@gmail.com
9
COMMENT=	API to get sysctl MIB info version 2
8
COMMENT=	Sysctl MIB-Tree API (improved version)
10
9
11
LICENSE=	BSD2CLAUSE
10
LICENSE=	BSD2CLAUSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
Lines 20-31 Link Here
20
19
21
GL_ACCOUNT=	alfix
20
GL_ACCOUNT=	alfix
22
GL_PROJECT=	sysctlmibinfo2
21
GL_PROJECT=	sysctlmibinfo2
23
GL_COMMIT=	d72ac5edefc222969faa57109c5c169c2ad69306
22
GL_COMMIT=	de427a99fc515c22a057998a29c92221e2581592\
24
23
25
PLIST_FILES=	include/sysctlmibinfo2.h \
24
PLIST_FILES=	include/sysctlmibinfo2.h \
26
		lib/libsysctlmibinfo2.a \
25
		lib/libsysctlmibinfo2.a \
27
		lib/libsysctlmibinfo2.so \
26
		lib/libsysctlmibinfo2.so \
28
		lib/libsysctlmibinfo2.so.2.0.0 \
27
		lib/libsysctlmibinfo2.so.2.0.1 \
29
		man/man3/sysctlmibinfo2.3.gz
28
		man/man3/sysctlmibinfo2.3.gz
30
29
31
PORTEXAMPLES=	*
30
PORTEXAMPLES=	*
Lines 36-43 Link Here
36
do-install:
35
do-install:
37
	${INSTALL_DATA} ${WRKSRC}/sysctlmibinfo2.h ${STAGEDIR}${PREFIX}/include
36
	${INSTALL_DATA} ${WRKSRC}/sysctlmibinfo2.h ${STAGEDIR}${PREFIX}/include
38
	${INSTALL_DATA} ${WRKSRC}/libsysctlmibinfo2.a ${STAGEDIR}${PREFIX}/lib
37
	${INSTALL_DATA} ${WRKSRC}/libsysctlmibinfo2.a ${STAGEDIR}${PREFIX}/lib
39
	${INSTALL_LIB} ${WRKSRC}/libsysctlmibinfo2.so.2.0.0 ${STAGEDIR}${PREFIX}/lib
38
	${INSTALL_LIB} ${WRKSRC}/libsysctlmibinfo2.so.2.0.1 ${STAGEDIR}${PREFIX}/lib
40
	${RLN} ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo2.so.2.0.0 ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo2.so
39
	${RLN} ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo2.so.2.0.1 ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo2.so
41
	${INSTALL_MAN} ${WRKSRC}/sysctlmibinfo2.3.gz ${STAGEDIR}${MAN3PREFIX}/man/man3
40
	${INSTALL_MAN} ${WRKSRC}/sysctlmibinfo2.3.gz ${STAGEDIR}${MAN3PREFIX}/man/man3
42
41
43
do-install-EXAMPLES-on:
42
do-install-EXAMPLES-on:
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1574724977
1
TIMESTAMP = 1614386189
2
SHA256 (alfix-sysctlmibinfo2-d72ac5edefc222969faa57109c5c169c2ad69306_GL0.tar.gz) = 6eb80840a90bb6fb0dbc2239eb5d35ac468699a297955a9f45c4880bf6b5a70c
2
SHA256 (alfix-sysctlmibinfo2-de427a99fc515c22a057998a29c92221e2581592_GL0.tar.gz) = b51c87306798dbee7255c08d7ac7fe6c8e535b98e2eaff147c7f1c1f376e4307
3
SIZE (alfix-sysctlmibinfo2-d72ac5edefc222969faa57109c5c169c2ad69306_GL0.tar.gz) = 8574
3
SIZE (alfix-sysctlmibinfo2-de427a99fc515c22a057998a29c92221e2581592_GL0.tar.gz) = 11327
(-)files/patch-sysctlmibinfo2.c (-11 lines)
Lines 1-11 Link Here
1
--- sysctlmibinfo2.c.orig	2021-02-23 00:46:40 UTC
2
+++ sysctlmibinfo2.c
3
@@ -38,7 +38,7 @@
4
 
5
 /* to add in sys/sysctlinfo.h after https://reviews.freebsd.org/D21700 */
6
 #ifndef ENTRYIDINPUTBYNAME
7
-#define ENTRYIDINPUTBYNAME 27
8
+#define ENTRYIDINPUTBYNAME 10
9
 #endif
10
 
11
 /* Internal use */
(-)pkg-descr (-14 / +8 lines)
Lines 1-17 Link Here
1
The sysctlmibinfo2 library provides an API to explore the sysctl MIB and
1
The sysctlmibinfo2 library provides an API to explore the sysctl
2
to get the info of an object, it depends on the sysctlinfo interface and
2
MIB-Tree and to get the properties of an object, therefore it is
3
sysctlbyname-improved.
3
useful to handle an object correctly and to build a sysctl-like
4
utility.
4
5
5
This library provides:
6
It implements wrappers around the sysctlinfo(4) interface and
7
sysctlbyname_improved to provide a more easy interface, moreover
8
it defines a 'struct sysctlmif_object' and provides a convenient
9
API to build data structures of sysctlmif_object.
6
10
7
 * an API to wrap the internal sysctl nodes of sysctlinfo and
8
   sysctlbyname-improved
9
 * a handy userland MIB object representation
10
 * functions to build object-list and object-tree
11
12
The advantages to use sysctlmibinfo2 are:
13
14
 * an easy userspace API to the kernel sysctl MIB-Tree
15
 * building quickly a custom sysctl(8) tool
16
17
WWW: https://gitlab.com/alfix/sysctlmibinfo2/
11
WWW: https://gitlab.com/alfix/sysctlmibinfo2/

Return to bug 253883