freebsd-ports/sysutils/sanoid-devel/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.4 KiB
Makefile

PORTNAME= sanoid
PORTVERSION= 1.0.0.20191105
PORTREVISION= 0
CATEGORIES= sysutils
PKGNAMESUFFIX= -devel
MAINTAINER= hartzell@alerce.com
COMMENT= Policy-driven snapshot management and replication tools
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= lzop:archivers/lzop \
mbuffer:misc/mbuffer \
pv:sysutils/pv \
p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \
p5-Config-IniFiles>=0:devel/p5-Config-IniFiles
USES= shebangfix perl5
USE_GITHUB= yes
GH_ACCOUNT= jimsalterjrs
GH_TAGNAME= 45d0898
USE_PERL5= run
SHEBANG_FILES= findoid sanoid sleepymutex syncoid
CONFLICTS_INSTALL= sanoid # bin/findoid
NO_BUILD= yes
NO_ARCH= yes
# line 19: my %args = ("configdir" => "/etc/sanoid");
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/etc/sanoid|${PREFIX}/etc/sanoid|' \
${WRKSRC}/sanoid
@${REINPLACE_CMD} -i '' \
-e 's|:/bin:/usr/bin:/sbin|:${PREFIX}/bin:/bin:/usr/bin:/sbin|' \
${WRKSRC}/syncoid
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/findoid ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/sanoid ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/sleepymutex ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/syncoid ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}/${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/sanoid.defaults.conf \
${STAGEDIR}${ETCDIR}/sanoid.defaults.conf
${INSTALL_DATA} ${WRKSRC}/sanoid.conf \
${STAGEDIR}${ETCDIR}/sanoid.conf.sample
.include <bsd.port.mk>