1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

sysutils/nsysctl: Update to 1.2

* The sysctlinfo interface (sysutils/sysctlinfo-kmod) is now required as
  build/run dependency which relies on the "oid_label" constant that was
  introduced in FreeBSD 1200019.

  Thus set the port to IGNORE if the above doesn't apply while I'm here. [1]

Changelog:

* Add sysctlinfo kmod support [1]

PR:		240575
Submitted by:	Alfonso S. Siciliano <alfix86@gmail.com> (maintainer)
This commit is contained in:
Kai Knoblich 2019-09-24 17:37:27 +00:00
parent a90717bdc9
commit 3b9807d844
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=512731
2 changed files with 17 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= nsysctl
DISTVERSION= 1.1
DISTVERSION= 1.2
CATEGORIES= sysutils
MAINTAINER= alfix86@gmail.com
@ -10,12 +10,14 @@ COMMENT= Utility to get or set the kernel state supporting libxo output
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/sysctlinfo.h:sysutils/sysctlinfo-kmod
LIB_DEPENDS= libsysctlmibinfo.so:devel/libsysctlmibinfo
RUN_DEPENDS= ${KMODDIR}/sysctlinfo.ko:sysutils/sysctlinfo-kmod
USE_GITLAB= yes
GL_ACCOUNT= alfix
GL_COMMIT= e251dcf345c37e83d39f6fe93f0af2adf62da282
GL_COMMIT= 5d7875fbeca8d5ae31dffac6ec1f12346e380e5a
PLIST_FILES= man/man8/${PORTNAME}.8.gz \
sbin/${PORTNAME}
@ -24,6 +26,15 @@ PORTEXAMPLES= file.conf
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.pre.mk>
.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_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8/
@ -36,4 +47,4 @@ do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1561988369
SHA256 (alfix-nsysctl-e251dcf345c37e83d39f6fe93f0af2adf62da282_GL0.tar.gz) = 9b940d57dcd953278d2de47dacd32ebe5c218e2f6c904e7cc5e9773697ad0b9f
SIZE (alfix-nsysctl-e251dcf345c37e83d39f6fe93f0af2adf62da282_GL0.tar.gz) = 23996
TIMESTAMP = 1568424785
SHA256 (alfix-nsysctl-5d7875fbeca8d5ae31dffac6ec1f12346e380e5a_GL0.tar.gz) = 1874cdaf4dec81091712d3d02d1059772941261b2a35850586d56922d06d23c5
SIZE (alfix-nsysctl-5d7875fbeca8d5ae31dffac6ec1f12346e380e5a_GL0.tar.gz) = 25647