freebsd-ports/sysutils/sysctlinfo-kmod/Makefile
Kai Knoblich 56a0f97f0a sysutils/sysctlinfo-kmod: Refine IGNORE description
Bring the info in sync with r512729 and r512731 which have already a better
variant of the IGNORE description.
2019-09-24 17:47:13 +00:00

56 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= sysctlinfo-kmod
DISTVERSION= 20190907
CATEGORIES= sysutils
MAINTAINER= alfix86@gmail.com
COMMENT= Interface to visit the sysctl MIB-tree and to get the nodes info
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= kmod
USE_GITLAB= yes
GL_ACCOUNT= alfix
GL_PROJECT= sysctlinfo
GL_COMMIT= 1f1b05e3432ccada8c38cfb5f1987dfceb75524b
PLIST_FILES= ${KMODDIR}/sysctlinfo.ko \
include/sysctlinfo.h \
man/man3/sysctlinfo.3.gz \
man/man4/sysctlinfo.4.gz
PORTEXAMPLES= Makefile \
allinfo.c \
allinfobyname.c \
capability.c \
singleinfo.c
OPTIONS_DEFINE= EXAMPLES
OPTIONS_DEFAULT= EXAMPLES
.include <bsd.port.pre.mk>
# Once the sysctlinfo interface (review D21700) lands into the base tree the
# following statement needs to be expanded
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200019
IGNORE= needs oid_label constant in sysctl.h which was first introduced in FreeBSD 12
.endif
.if ${OPSYS} != FreeBSD
IGNORE= not supported on anything but FreeBSD
.endif
do-install:
${INSTALL_KLD} ${WRKSRC}/sysctlinfo.ko ${STAGEDIR}${KMODDIR}
${INSTALL_DATA} ${WRKSRC}/sysctlinfo.h ${STAGEDIR}${PREFIX}/include
${INSTALL_MAN} ${WRKSRC}/sysctlinfo.3 ${STAGEDIR}${MAN3PREFIX}/man/man3
${INSTALL_MAN} ${WRKSRC}/sysctlinfo.4 ${STAGEDIR}${MAN4PREFIX}/man/man4
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for e in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/examples/${e} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.post.mk>