ports/devel/util-linux/Makefile
Stefan Eßer bcaf25a8c8 Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.

This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.

Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).

A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.

These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,

Approved by:	portmgr (implicit)
2022-01-10 16:15:39 +01:00

52 lines
1.2 KiB
Makefile

PORTNAME= util-linux
DISTVERSION= 2.36
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= KERNEL_ORG/linux/utils/util-linux/v${DISTVERSION}/
MAINTAINER= yuri@FreeBSD.org
COMMENT= Random collection of Linux utilities
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpcre2-8.so:devel/pcre2 \
libuuid.so:misc/e2fsprogs-libuuid
RUN_DEPENDS= bash:shells/bash
USES= autoreconf gettext-tools gmake libtool ncurses pkgconfig \
shebangfix tar:xz
USE_LDCONFIG= yes
SHEBANG_FILES= misc-utils/getopt-parse.bash
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-nls --disable-ipcrm --disable-ipcs \
--disable-makeinstall-chown --disable-makeinstall-setuid
INSTALL_TARGET= install-strip
CONFLICTS_INSTALL= heirloom-doctools
OPTIONS_DEFINE= CAL FLOCK GETOPT HARDLINK UUID
OPTIONS_SUB= yes
CAL_DESC= Install util-linux cal(1)
CAL_CONFIGURE_ENABLE= cal
FLOCK_DESC= Install util-linux flock(1)
FLOCK_CONFIGURE_ENABLE= flock
GETOPT_DESC= Install util-linux getopt(1)
GETOPT_CONFIGURE_ENABLE=getopt
HARDLINK_DESC= Install util-linux hardlink(1)
HARDLINK_CONFIGURE_ENABLE=hardlink
UUID_DESC= Install libuuid
UUID_CONFIGURE_ENABLE= libuuid
post-install: # https://github.com/karelzak/util-linux/issues/1149
${RM} -r ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>