ports/sysutils/cdrtools/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

45 lines
1.1 KiB
Makefile

PORTNAME= cdrtools
CATEGORIES= sysutils audio
COMMENT= Tools for ripping from and recording to CDs and DVDs
LAME_RUN_DEPENDS= lame:audio/lame
VORBIS_RUN_DEPENDS= oggenc:audio/vorbis-tools
USES= cpe
CPE_VENDOR= cdrtools_project
OPTIONS_DEFINE= DOCS LAME VORBIS SETUID
OPTIONS_DEFAULT=DOCS LAME VORBIS
OPTIONS_SUB= yes
LAME_DESC= Install cdda2mp3 (requires audio/lame)
VORBIS_DESC= Install cdda2ogg (requires audio/vorbis-tools)
SETUID_DESC= Install cdrecord, cdda2wav, and readcd as setuid root
SETUID_PLIST_SUB= SUID="@(root,,4711) "
SETUID_PLIST_SUB_OFF= SUID="@(,,755) "
CONFLICTS_INSTALL= cdrkit
MASTERDIR= ${.CURDIR}/../../devel/schilybase
COMPONENTS= cdda2wav \
cdrecord \
mkisofs \
mkisofs/diag \
readcd \
scgcheck \
scgskeleton
post-install:
${RM} ${STAGEDIR}${PREFIX}/share/doc/cdrecord/README.rscsi
post-install-LAME-off:
${RM} ${STAGEDIR}${PREFIX}/bin/cdda2mp3 ${STAGEDIR}${PREFIX}share/man/man1/cdda2mp3.1
post-install-VORBIS-off:
${RM} ${STAGEDIR}${PREFIX}/bin/cdda2ogg ${STAGEDIR}${PREFIX}share/man/man1/cdda2ogg.1
post-install-DOCS-off:
${RM} ${STAGEDIR}share/doc
.include "${MASTERDIR}/Makefile.master"