[Midnightbsd-cvs] mports [21408] trunk/print/cups: cups 2.1.3

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun May 22 17:13:07 EDT 2016


Revision: 21408
          http://svnweb.midnightbsd.org/mports/?rev=21408
Author:   laffer1
Date:     2016-05-22 17:13:07 -0400 (Sun, 22 May 2016)
Log Message:
-----------
cups 2.1.3

Modified Paths:
--------------
    trunk/print/cups/Makefile
    trunk/print/cups/pkg-descr

Modified: trunk/print/cups/Makefile
===================================================================
--- trunk/print/cups/Makefile	2016-05-22 21:09:45 UTC (rev 21407)
+++ trunk/print/cups/Makefile	2016-05-22 21:13:07 UTC (rev 21408)
@@ -1,24 +1,124 @@
 # $MidnightBSD$
-# $FreeBSD: ports/print/cups/Makefile,v 1.54 2011/10/05 06:02:12 dinoex Exp $
 
 PORTNAME=	cups
-PORTVERSION=	2.0.3
+PORTVERSION=	2.1.3
+DISTVERSIONSUFFIX=-source
+PORTREVISION=	0
 CATEGORIES=	print
-MASTER_SITES=	# empty
-DISTFILES=	# empty
+MASTER_SITES=	http://www.cups.org/software/${PORTVERSION}/
 
 MAINTAINER=	ports at MidnightBSD.org
-COMMENT=	Common UNIX Printing System: Metaport to install complete system
+COMMENT=	Common UNIX Printing System
 
-LICENSE=	gpl2
+LICENSE=	gpl2 lgpl
+LICENSE_COMB=	multi
+LICENSE_FILE_GPLv2=	${WRKSRC}/LICENSE.txt
+LICENSE_FILE_LGPL20=	${WRKSRC}/LICENSE.txt
 
-RUN_DEPENDS=	espgs:${PORTSDIR}/${PKGCATEGORY}/cups-pstoraster \
-		cupsd:${PORTSDIR}/${PKGCATEGORY}/cups-base \
-		ttfread:${PORTSDIR}/${PKGCATEGORY}/cups-filters
+LIB_DEPENDS=	libgnutls.so:${PORTSDIR}/security/gnutls
 
-NO_BUILD=	yes
-NO_INSTALL=	yes
+CONFLICTS=	LPRng-[0-9]*
 
-SUB_FILES=	pkg-message
+DESTDIRNAME=	DSTROOT
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-dnssd						\
+		--disable-gssapi					\
+		--disable-launchd					\
+		--disable-systemd					\
+		--enable-gnutls						\
+		--with-cups-user=${USERS}				\
+		--with-cups-group=${GROUPS}				\
+		--with-system-groups=wheel				\
+		--with-dbusdir="${PREFIX}/etc/dbus-1"			\
+		--with-icondir="${PREFIX}/share/icons"			\
+		--with-menudir="${DESKTOPDIR}"				\
+		--with-printcap="${PREFIX}/etc/printcap"		\
+		--with-rcdir=no						\
+		--with-optim=" "					\
+		--with-pam-module="unix"				\
+		ac_cv_path_JAVA= ac_cv_path_PERL= ac_cv_path_PHPCGI=	\
+		ac_cv_path_PHP= ac_cv_path_PYTHON=
+LIBS+=		-L${LOCALBASE}/lib
+USES=		cpe gmake iconv pkgconfig tar:bzip2
+CPE_VENDOR=	apple
+USE_LDCONFIG=	yes
+USE_RC_SUBR=	cupsd
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-.include <bsd.port.mk>
+GROUPS=		cups
+USERS=		cups
+
+OPTIONS_DEFINE=		AVAHI DBUS DOCS IPPTOOL LIBPAPER NLS X11
+OPTIONS_DEFAULT=	AVAHI DBUS LIBPAPER
+OPTIONS_SUB=		yes
+
+AVAHI_LIB_DEPENDS=	libavahi-client.so:${PORTSDIR}/net/avahi-app
+AVAHI_CONFIGURE_ENABLE=	avahi
+AVAHI_SUB_LIST=		AVAHI_DAEMON=avahi_daemon
+AVAHI_SUB_LIST_OFF=	AVAHI_DAEMON=
+
+DBUS_LIB_DEPENDS=	libdbus-1.so:${PORTSDIR}/devel/dbus
+DBUS_CONFIGURE_ENABLE=	dbus
+DBUS_SUB_LIST=		DBUS_DAEMON=dbus
+DBUS_SUB_LIST_OFF=	DBUS_DAEMON=
+
+IPPTOOL_DESC=		Internet Printing Protocol testing tool
+
+LIBPAPER_LIB_DEPENDS=	libpaper.so:${PORTSDIR}/print/libpaper
+LIBPAPER_CONFIGURE_ENABLE=libpaper
+
+X11_DESC=		Install desktop menu item
+X11_BUILD_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils
+X11_RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils
+
+.if defined(CUPS_OVERWRITE_BASE)
+PLIST_SUB+=	OVERWRITE=""
+.else
+PLIST_SUB+=	OVERWRITE="@comment "
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if empty(ICONV_LIB)
+CONFIGURE_ARGS+=ac_cv_search_libiconv_open=no
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in
+	@${REINPLACE_CMD} 's/usblp/ulpt/g' ${WRKSRC}/backend/usb-libusb.c
+	@${REINPLACE_CMD} -e 's|/usr/local/etc/pam.d|${LOCALBASE}/etc/pam.d|' \
+		-e 's/-fstack-protector//' ${WRKSRC}/configure
+	@${REINPLACE_CMD} 's|http://www.cups.org|https://cups.org|' \
+		${WRKSRC}/doc/index.html.in \
+		${WRKSRC}/doc/??/index.html.in \
+		${WRKSRC}/templates/header.tmpl.in \
+		${WRKSRC}/templates/??/header.tmpl.in \
+		${WRKSRC}/templates/help-header.tmpl \
+		${WRKSRC}/templates/??/help-header.tmpl
+	@${REINPLACE_CMD} '/stripopt=/s/-x//' ${WRKSRC}/install-sh
+	@${REINPLACE_CMD} 's|/etc/cups|${LOCALBASE}/etc/cups|g' \
+		${WRKSRC}/man/*.man*
+	@${REINPLACE_CMD} -e 's|\.default|.sample|'\
+		${WRKSRC}/cgi-bin/admin.c\
+		${WRKSRC}/conf/Makefile
+
+post-patch-DOCS-off:
+# Link to online documentation.
+	@${REINPLACE_CMD} \
+		's|"/*help/|"https://cups.org/documentation.php/doc-${PORTVERSION:R}/|' \
+		${WRKSRC}/doc/index.html.in \
+		${WRKSRC}/doc/??/index.html.in \
+		${WRKSRC}/templates/choose-uri.tmpl \
+		${WRKSRC}/templates/??/choose-uri.tmpl \
+		${WRKSRC}/templates/header.tmpl.in \
+		${WRKSRC}/templates/??/header.tmpl.in \
+		${WRKSRC}/templates/samba-export.tmpl \
+		${WRKSRC}/templates/??/samba-export.tmpl
+
+post-install:
+	${LN} -sf lpr ${STAGEDIR}${PREFIX}/bin/lpr-cups
+	${INSTALL_DATA} ${FILESDIR}/cups.conf.sample \
+		${STAGEDIR}${PREFIX}/etc/devd
+	${INSTALL_DATA} ${FILESDIR}/cups ${STAGEDIR}${PREFIX}/etc/pam.d
+
+.include <bsd.port.post.mk>

Modified: trunk/print/cups/pkg-descr
===================================================================
--- trunk/print/cups/pkg-descr	2016-05-22 21:09:45 UTC (rev 21407)
+++ trunk/print/cups/pkg-descr	2016-05-22 21:13:07 UTC (rev 21408)
@@ -1,21 +1,4 @@
-CUPS provides a portable printing layer for UNIX-based operating
-systems. It has been developed by Easy Software Products to promote a
-standard printing solution for all UNIX vendors and users. 
+CUPS is a standards-based, open source printing system.  It uses the Internet
+Printing Protocol (IPP) to support printing to local and network printers.
 
-CUPS uses the Internet Printing Protocol ("IPP") as the basis for
-managing print jobs and queues. The Line Printer Daemon ("LPD") Server
-Message Block ("SMB"), and AppSocket (a.k.a. JetDirect) protocols are
-also supported with reduced functionality. CUPS adds network printer
-browsing and PostScript Printer Description ("PPD") based printing
-options to support real-world printing under UNIX.
-
-CUPS provides the System V and Berkeley command-line interfaces.
-
-CUPS also supports a customized version of GNU Ghostscript (currently based
-off GNU Ghostscript 5.50) and an image file RIP that are used to support
-non-PostScript printers. Sample drivers for HP and EPSON printers are included
-that use these filters. This software is available in the cups-pstoraster
-port.
-
-WWW: http://www.cups.org/
-[original text by greid at ukug.uk.freebsd.org]
+WWW: https://cups.org/



More information about the Midnightbsd-cvs mailing list