diff --git a/sysutils/ipmitool/Makefile b/sysutils/ipmitool/Makefile index 633bd120e754..259401ffafee 100644 --- a/sysutils/ipmitool/Makefile +++ b/sysutils/ipmitool/Makefile @@ -1,68 +1,68 @@ PORTNAME= ipmitool PORTVERSION= 1.8.19 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= https://codeberg.org/IPMITool/${PORTNAME}/archive/:ipmi \ LOCAL/zi/:iana DISTFILES= IPMITOOL_${PORTVERSION:S/./_/g}${EXTRACT_SUFX}:ipmi \ enterprise-numbers-20240907.txt:iana EXTRACT_ONLY= IPMITOOL_${PORTVERSION:S/./_/g}${EXTRACT_SUFX} MAINTAINER= zi@FreeBSD.org COMMENT= CLI to manage IPMI systems WWW= https://codeberg.org/IPMITool/ipmitool LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING USES= autoreconf libtool cpe gmake readline ssl CPE_VENDOR= sun GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share PLIST_FILES= bin/ipmitool \ share/man/man1/ipmitool.1.gz \ share/man/man8/ipmievd.8.gz \ sbin/ipmievd \ share/ipmitool/oem_ibm_sel_map \ share/ipmitool/enterprise-numbers \ ${PERIODIC_DIR}/400.status-ipmi SUB_FILES= status-ipmi.sh PORTDOCS= AUTHORS COPYING ChangeLog README PERIODIC_DIR= etc/periodic/daily OPTIONS_DEFINE= FREEIPMI DOCS FREEIPMI_DESC= Enable support for freeipmi WRKSRC= ${WRKDIR}/${PORTNAME} CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} .if defined(WITH_DEBUG) CFLAGS+= -ggdb -Wall .endif .if exists(/usr/include/sys/ipmi.h) CONFIGURE_ARGS+= --enable-intf-open .else CONFIGURE_ARGS+= --disable-intf-open .endif CONFIGURE_ARGS+= IANADIR=${DATADIR} DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in FREEIPMI_LIB_DEPENDS= libfreeipmi.so:sysutils/freeipmi FREEIPMI_CPPFLAGS= -I${LOCALBASE}/include FREEIPMI_LDFLAGS= -L${LOCALBASE}/lib FREEIPMI_CONFIGURE_ENABLE= intf-free .include post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${PERIODIC_DIR} ${INSTALL_SCRIPT} ${WRKDIR}/status-ipmi.sh \ ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}/400.status-ipmi ${INSTALL_DATA} ${DISTDIR}/enterprise-numbers-20240907.txt \ ${STAGEDIR}${DATADIR}/enterprise-numbers .include diff --git a/sysutils/ipmitool/files/patch-lib_helper.c b/sysutils/ipmitool/files/patch-lib_helper.c new file mode 100644 index 000000000000..4accc69a3da1 --- /dev/null +++ b/sysutils/ipmitool/files/patch-lib_helper.c @@ -0,0 +1,11 @@ +--- lib/helper.c.orig 2022-09-01 18:42:31 UTC ++++ lib/helper.c +@@ -54,7 +54,7 @@ + #ifdef HAVE_PATHS_H + # include + #else +-# define _PATH_RUN "/run/" ++# define _PATH_RUN "/var/run/" + #endif + + #include diff --git a/sysutils/ipmitool/files/patch-src_ipmievd.c b/sysutils/ipmitool/files/patch-src_ipmievd.c new file mode 100644 index 000000000000..e59859fe2728 --- /dev/null +++ b/sysutils/ipmitool/files/patch-src_ipmievd.c @@ -0,0 +1,20 @@ +--- src/ipmievd.c.orig 2022-09-01 18:42:31 UTC ++++ src/ipmievd.c +@@ -55,7 +55,7 @@ + #endif + + #ifndef _PATH_RUN +-# define _PATH_RUN "/run/" ++# define _PATH_RUN "/var/run/" + #endif + + #ifdef IPMI_INTF_OPEN +@@ -730,7 +730,7 @@ ipmievd_main(struct ipmi_event_intf * eintf, int argc, + return (-1); + } + } +- else if (strcasecmp(argv[i], "pidfile=") == 0) { ++ else if (strncasecmp(argv[i], "pidfile=",8) == 0) { + memset(pidfile, 0, 64); + strncpy(pidfile, argv[i]+8, + __min(strlen((const char *)(argv[i]+8)), 63));