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> |