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

(-)Makefile (-6 / +6 lines)
Lines 1-11 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	libsysctlmibinfo
3
PORTNAME=	libsysctlmibinfo
4
DISTVERSION=	1.0
4
DISTVERSION=	1.0.1
5
CATEGORIES=	devel
5
CATEGORIES=	devel
6
6
7
MAINTAINER=	alfix86@gmail.com
7
MAINTAINER=	alfix86@gmail.com
8
COMMENT=	API to get sysctl MIB info
8
COMMENT=	Sysctl MIB-Tree API
9
9
10
LICENSE=	BSD2CLAUSE
10
LICENSE=	BSD2CLAUSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE
Lines 16-34 Link Here
16
16
17
GL_ACCOUNT=	alfix
17
GL_ACCOUNT=	alfix
18
GL_PROJECT=	sysctlmibinfo
18
GL_PROJECT=	sysctlmibinfo
19
GL_COMMIT=	c2cee0cea2fff405e6dc0ab1aed484abab5dc7c7
19
GL_COMMIT=	941706f663a1fe17f2c1f5cfbf3c7211c8f41e53
20
20
21
PLIST_FILES=	include/sysctlmibinfo.h \
21
PLIST_FILES=	include/sysctlmibinfo.h \
22
		lib/libsysctlmibinfo.a \
22
		lib/libsysctlmibinfo.a \
23
		lib/libsysctlmibinfo.so \
23
		lib/libsysctlmibinfo.so \
24
		lib/libsysctlmibinfo.so.1 \
24
		lib/libsysctlmibinfo.so.1.0.1 \
25
		man/man3/sysctlmibinfo.3.gz
25
		man/man3/sysctlmibinfo.3.gz
26
26
27
do-install:
27
do-install:
28
	${INSTALL_DATA} ${WRKSRC}/sysctlmibinfo.h ${STAGEDIR}${PREFIX}/include
28
	${INSTALL_DATA} ${WRKSRC}/sysctlmibinfo.h ${STAGEDIR}${PREFIX}/include
29
	${INSTALL_DATA} ${WRKSRC}/libsysctlmibinfo.a ${STAGEDIR}${PREFIX}/lib
29
	${INSTALL_DATA} ${WRKSRC}/libsysctlmibinfo.a ${STAGEDIR}${PREFIX}/lib
30
	${INSTALL_LIB} ${WRKSRC}/libsysctlmibinfo.so.1 ${STAGEDIR}${PREFIX}/lib
30
	${INSTALL_LIB} ${WRKSRC}/libsysctlmibinfo.so.1.0.1 ${STAGEDIR}${PREFIX}/lib
31
	${RLN} ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo.so.1 ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo.so
31
	${RLN} ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo.so.1.0.1 ${STAGEDIR}${PREFIX}/lib/libsysctlmibinfo.so
32
	${INSTALL_MAN} ${WRKSRC}/sysctlmibinfo.3.gz ${STAGEDIR}${MAN3PREFIX}/man/man3
32
	${INSTALL_MAN} ${WRKSRC}/sysctlmibinfo.3.gz ${STAGEDIR}${MAN3PREFIX}/man/man3
33
33
34
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1552612768
1
TIMESTAMP = 1612365342
2
SHA256 (alfix-sysctlmibinfo-c2cee0cea2fff405e6dc0ab1aed484abab5dc7c7_GL0.tar.gz) = 0422c5e0452a5d6b3321d4e475432c044d885963f3f97f4a85b877314c386cdd
2
SHA256 (alfix-sysctlmibinfo-941706f663a1fe17f2c1f5cfbf3c7211c8f41e53_GL0.tar.gz) = 76db992660bcd0938a341a65f00865a0aa1022f3c8dbdeaa19558601b77051aa
3
SIZE (alfix-sysctlmibinfo-c2cee0cea2fff405e6dc0ab1aed484abab5dc7c7_GL0.tar.gz) = 9351
3
SIZE (alfix-sysctlmibinfo-941706f663a1fe17f2c1f5cfbf3c7211c8f41e53_GL0.tar.gz) = 11228
(-)pkg-descr (-10 / +8 lines)
Lines 1-13 Link Here
1
sysctlmibinfo is an open source library for FreeBSD:
1
The sysctlmibinfo library provides an API to explore the sysctl
2
MIB-Tree and to get the properties of an object, therefore it is
3
useful to handle an object correctly and to build a sysctl-like
4
utility.
2
5
3
 * provides a C API to wrap kern_sysctl.c undocumented interface
6
It implements wrappers around an undocumented kernel interface
4
 * defines and builds a handy mib-object
7
to provide a more easy interface, moreover it defines a
5
 * builds object-list and object-tree in userspace
8
'struct sysctlmif_object' and provides a convenient API to build
9
data structures of sysctlmif_object.
6
10
7
The advantages to use sysctlmibinfo are:
8
9
 * an easy userspace API to the kernel sysctl mib-tree
10
 * building quickly a custom sysctl(8) tool
11
 * changes to kern_sysctl.c interface won't upset userspace tools
12
13
WWW: https://gitlab.com/alfix/sysctlmibinfo/
11
WWW: https://gitlab.com/alfix/sysctlmibinfo/

Return to bug 253213