freebsd-ports/sysutils/freeipmi/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

63 lines
2.1 KiB
Makefile

PORTNAME= freeipmi
PORTVERSION= 1.6.10
CATEGORIES= sysutils
MASTER_SITES= GNU
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library and tools to support IPMI-capable hardware
WWW= https://savannah.gnu.org/projects/freeipmi/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= aarch64 amd64 armv7 i386 powerpc64 powerpc64le
BROKEN_aarch64= fails to link: libfreeipmi/.libs/libfreeipmi.so: undefined reference to inb (also outb)
BROKEN_armv7= fails to link: libfreeipmi/.libs/libfreeipmi.so: undefined reference to inb (also outb)
LIB_DEPENDS= libargp.so:devel/argp-standalone \
libgcrypt.so:security/libgcrypt
USES= gmake libtool localbase makeinfo shebangfix
CFLAGS+= -D_WANT_SEMUN
CONFIGURE_ARGS= --disable-init-scripts \
--sysconfdir=${ETCDIR} \
--with-ipmi-monitoring-sdr-cache-dir=${CACHE_DIR}/ipmimonitoringsdrcache \
--with-ipmiseld-cache-dir=${CACHE_DIR}/ipmiseld \
--with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
CONFIGURE_ENV= PTHREAD_LIBS=-lpthread ac_cv_path_CPP=${CPP}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INFO= freeipmi-faq
PLIST_SUB= CACHE_DIR=${CACHE_DIR}
PORTDOCS= *
CACHE_DIR?= /var/db/${PORTNAME}
SHEBANG_FILES= contrib/ganglia/ganglia_ipmi_sensors.pl \
contrib/nagios/nagios_ipmi_sensors.pl \
contrib/pet/check_rmcpping \
contrib/pet/petalert.pl
OPTIONS_DEFINE= DEBUG DOCS IOPERM IPV6
IOPERM_DESC= Use i386_set_ioperm
DEBUG_CONFIGURE_ON= --enable-debug --enable-trace
DEBUG_INSTALL_TARGET= install
DEBUG_INSTALL_TARGET_OFF= install-strip
IOPERM_CPPFLAGS= -DUSE_IOPERM
IPV6_CPPFLAGS= -DIPV6
post-patch:
@${FIND} ${WRKSRC} -name '*.man' -o -name '*.pre.in' | ${XARGS} -I % ${REINPLACE_CMD} -e '/^\.\\\"/ s|$$|"|' %
@${REINPLACE_CMD} \
-e '/^FREEIPMI_SYSCONFDIR/ s|/freeipmi/$$||' \
-e '/FREEIPMI_CONFIG_FILE_DEFAULT_TMP1=/ s|freeipmi.conf|&.sample|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|\($$(LN_S) -f \)$$(sbindir)/|\1|' ${WRKSRC}/*/Makefile.in
post-install:
${MKDIR} -m 0700 -p ${STAGEDIR}${CACHE_DIR}/ipmimonitoringsdrcache/ ${STAGEDIR}${CACHE_DIR}/ipmiseld/ ${STAGEDIR}/var/lib/freeipmi/ ${STAGEDIR}/var/run/freeipmi/
.include <bsd.port.mk>