freebsd-ports/sysutils/LPRng/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

64 lines
1.5 KiB
Makefile

# Created by: desmo@bandwidth.org
PORTNAME= LPRng
PORTVERSION= 3.8.C
PORTREVISION= 5
PORTEPOCH= 1
CATEGORIES= sysutils print
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}
DISTNAME= ${PORTNAME:tl}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Enhanced Printer Spooler
LICENSE= ART10 GPLv2
LICENSE_COMB= dual
BROKEN_aarch64= Fails to link: missing sbrk
BROKEN_riscv64= Fails to link: missing sbrk
LIB_DEPENDS= libgdbm.so:databases/gdbm
USES= gmake ssl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-config_subdir="" \
--with-filterdir=${PREFIX}/libexec/filters \
--with-filter_path="${PREFIX}/bin:/bin:/usr/bin:${PREFIX}/sbin:/sbin:/usr/sbin" \
--with-printcap_path=/etc/printcap \
--with-ld_library_path="${PREFIX}/lib:/lib:/usr/lib:/${LOCALBASE}/lib"
MAKE_ARGS= INSTALLCONFIGEXAMPLES=""
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME:tl}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
# Upstream dead, don't expect a proper fix.
CFLAGS+= -fcommon
SUB_FILES= pkg-message
CONFLICTS= cups
OPTIONS_DEFINE= LIBWRAP NLS
OPTIONS_DEFAULT= LIBWRAP
OPTIONS_SUB= yes
LIBWRAP_CONFIGURE_ENABLE= tcpwrappers
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_ENV= gt_cv_func_gnugettext1_libc=yes \
ac_cv_func_ngettext=yes
NLS_LDFLAGS= -lintl
post-install:
.for i in lpd.perms printcap
(cd ${WRKSRC}/conf && $ ${INSTALL_DATA} ${i} \
${STAGEDIR}/${PREFIX}/etc/${i}.sample)
.endfor
.for i in lpd.conf
(cd ${WRKSRC}/src && $ ${INSTALL_DATA} ${i} \
${STAGEDIR}/${PREFIX}/etc/${i}.sample)
.endfor
.include <bsd.port.mk>