mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
4b20f10627
- Build with GNUTLS isntead of OpenSSL by default to fix FireFox issues - Fixed man languages - Change maintainer e-mail - Pass maintainership of print/cups to submitter PR: ports/76337 Submitted by: Sergey Akifyev <asa(at)agava.com> (maintainer of cups-base and cups-lpr)
59 lines
1.7 KiB
Makefile
59 lines
1.7 KiB
Makefile
# ex:ts=8 -*-mode: makefile-*-
|
|
#
|
|
# New ports collection makefile for: cups
|
|
# Date created: 2003-01-22
|
|
# Whom: Alan Eldridge <alane@geeksrus.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cups-base
|
|
PORTVERSION= ${CUPS_PORTVER}
|
|
PORTREVISION= 2
|
|
PORTEPOCH= ${CUPS_PORTEPOCH}
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${CUPS_MASTER_SITES}
|
|
|
|
MAINTAINER= asa@agava.com
|
|
COMMENT= The Common UNIX Printing System: headers, libs, & daemons
|
|
|
|
USE_REINPLACE= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MANLANG= "" es fr
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/SILENT/d' \
|
|
${WRKSRC}/Makedefs.in
|
|
@${REINPLACE_CMD} -e '/LN/d' -e '/cat/d' \
|
|
${WRKSRC}/man/Makefile ${WRKSRC}/man/es/Makefile
|
|
@${REINPLACE_CMD} -e '/LN/d' -e '/cat/d' \
|
|
${WRKSRC}/man/Makefile ${WRKSRC}/man/fr/Makefile
|
|
@${REINPLACE_CMD} -e 's|/etc/cups|/usr/local/etc/cups|g' \
|
|
${WRKSRC}/man/*.man
|
|
@${REINPLACE_CMD} -e 's|CXX="$$CC"||g' \
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
pre-install:
|
|
@${ECHO_MSG} "===>" Stopping cupsd ...
|
|
-killall cupsd || ${TRUE}
|
|
${RM} -fr ${PREFIX}/etc/cups/certs/* || ${TRUE}
|
|
|
|
post-install:
|
|
${MKDIR} ${CUPS_ETCDIR}
|
|
.for f in classes.conf client.conf cupsd.conf printers.conf mime.convs mime.types
|
|
${INSTALL_DATA} ${WRKSRC}/conf/${f} ${CUPS_ETCDIR}/${f}.N
|
|
cd ${CUPS_ETCDIR}; if test ! -f ${f}; then ${CP} -p ${f}.N ${f}; fi
|
|
.endfor # classes.conf client.conf cupsd.conf printers.conf
|
|
cd ${CUPS_RCDIR}; ${MV} cups cups.sh.sample
|
|
${FIND} ${PREFIX}/man/cat* -type l -name '*.0' -delete
|
|
${MKDIR} ${CUPS_SPOOLDIR} ${CUPS_SPOOLDIR}/tmp
|
|
${CHOWN} -R ${CUPSOWN}:${CUPSGRP} ${CUPS_SPOOLDIR}
|
|
${CHMOD} -R g+w ${CUPS_SPOOLDIR}
|
|
@${SED} -e 's#PREFIX#${PREFIX}#' ${PKGMESSAGE}
|
|
|
|
.include "${.CURDIR}/../../print/cups/Makefile.common"
|
|
.include <bsd.port.pre.mk>
|
|
.include "${FILESDIR}/manpages.mk"
|
|
.include <bsd.port.post.mk>
|