View | Details | Raw Unified | Return to bug 240390 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/sysctlinfo-kmod/Makefile (+57 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	sysctlinfo-kmod
4
DISTVERSION=	20190907
5
CATEGORIES=	sysutils
6
7
MAINTAINER=	alfix86@gmail.com
8
COMMENT=	Interface to visit the sysctl MIB-tree and to get the nodes info
9
10
LICENSE=	BSD2CLAUSE
11
12
USES=	kmod
13
14
USE_GITLAB=	yes
15
GL_ACCOUNT=	alfix
16
GL_PROJECT=	sysctlinfo
17
GL_COMMIT=	1f1b05e3432ccada8c38cfb5f1987dfceb75524b
18
19
PLIST_FILES=	${KMODDIR}/sysctlinfo.ko \
20
		include/sysctlinfo.h \
21
		man/man3/sysctlinfo.3.gz \
22
		man/man4/sysctlinfo.4.gz
23
24
PORTEXAMPLES=	Makefile \
25
		allinfo.c \
26
		allinfobyname.c \
27
		capability.c \
28
		singleinfo.c
29
30
OPTIONS_DEFINE=	EXAMPLES
31
32
OPTIONS_DEFAULT=	EXAMPLES
33
34
.include <bsd.port.options.mk>
35
36
# Once review D21700 lands into the base tree the following statement needs to
37
# be expanded
38
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019
39
IGNORE=		oid_label was introduced in FreeBSD 1200019
40
.endif
41
.if ${OPSYS} != FreeBSD
42
IGNORE=		not supported on anything but FreeBSD
43
.endif
44
45
do-install:
46
	${INSTALL_KLD} ${WRKSRC}/sysctlinfo.ko ${STAGEDIR}${KMODDIR}
47
	${INSTALL_DATA} ${WRKSRC}/sysctlinfo.h ${STAGEDIR}${PREFIX}/include
48
	${INSTALL_MAN} ${WRKSRC}/sysctlinfo.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
49
	${INSTALL_MAN} ${WRKSRC}/sysctlinfo.4 ${STAGEDIR}${MAN4PREFIX}/man/man4
50
51
do-install-EXAMPLES-on:
52
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
53
.for e in ${PORTEXAMPLES}
54
	${INSTALL_DATA} ${WRKSRC}/examples/${e} ${STAGEDIR}${EXAMPLESDIR}
55
.endfor
56
57
.include <bsd.port.mk>
(-)sysutils/sysctlinfo-kmod/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1568559895
2
SHA256 (alfix-sysctlinfo-1f1b05e3432ccada8c38cfb5f1987dfceb75524b_GL0.tar.gz) = a37e19e50da8132ed18669030e236bd551a547c0fce6b8a560f1d7b336081c3d
3
SIZE (alfix-sysctlinfo-1f1b05e3432ccada8c38cfb5f1987dfceb75524b_GL0.tar.gz) = 30767
(-)sysutils/sysctlinfo-kmod/pkg-descr (+5 lines)
Line 0 Link Here
1
Kernel module to implement the sysctlinfo interface, it explores
2
the sysctl tree to pass the info of the nodes to the userland;
3
a header file with costants and helper macros is provided, too.
4
5
WWW: https://gitlab.com/alfix/sysctlinfo
(-)sysutils/sysctlinfo-kmod/pkg-message (+16 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
To use this interface, make sure that you have loaded the sysctlinfo kernel
5
module, by doing
6
7
	# kldload sysctlinfo
8
9
or adding
10
11
	sysctlinfo_load="YES"
12
13
to your /boot/loader.conf.
14
EOM
15
}
16
]

Return to bug 240390