pkgsrc/print/cups/Makefile

181 lines
5.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.230 2016/06/18 20:36:38 leot Exp $
DISTNAME= cups-2.1.4-source
PKGNAME= ${DISTNAME:S/-source//}
Changes 1.1.22: - The lpstat man page incorrectly listed the "-s" option as using the equivalent of the "-p" option to list the printers; it uses the "-v" option to list the printers (STR #986) - Now allow 0-length reads in the CUPS file API (STR #985) - cupsDoFileRequest() now sets cupsLastError() to IPP_ERROR on network errors (STR #953) - The pdftops filter didn't scale small pages up to the output page size when the fitplot option was used (STR #984) - Fixed the ipptest program usage message (STR #959) - Added Spanish man pages (STR #963) - Fixed the order of comparisons in the client.conf reading code (STR #971) - cupsLangGet() incorrectly set the current locale (STR #970) Changes 1.1.22rc2: - The pdftops filter didn't check the range of all integer attributes (STR #972) - Documentation corrections (STR #944, STR #946) - Also sanitize device URI in argv[0] (STR #933) - cupsRasterReadHeader() didn't swap bytes for the numeric fields properly (STR #930) Changes 1.1.22rc1: - Now sanitize the device URI that is reported in the error_log file (STR #920) - Fixed some memory and file descriptor leaks in the job dispatch code (STR #921) - Deleting a printer could cause a crash with browsing enabled (STR #865, STR #881, STR #928) - Browsing would turn off if the scheduler got an EAGAIN error (STR #924) - The mime.types file didn't recognize PostScript as a PJL language name (STR #925) Changes 1.1.21: - The scheduler did not separate Digest authentication parameters with commas (STR #882) - Fixed some problems with image printing to custom page sizes (STR #891) - Removed the remaining scheduler code that did not use the "close-on-exec" file descriptor flag to speed up program invocations (STR #890) - The "lpr -r" command removed the print file even if it was not printed. It now only removes the file if the job is successfully created (STR #886) - Revamped the custom page size orientation fix (STR #127) - The lp, lpq, lpr, and lpstat commands now report when an environment variable is pointing to a non-existent printer instead of just saying "no default destination" (STR #879) - Queue names with 2 periods (e.g. "printer..2") were not supported (STR #866)
2004-11-08 17:30:59 +01:00
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_GITHUB:=apple/}
GITHUB_RELEASE= release-${PKGVERSION_NOREV}
MAINTAINER= sbd@NetBSD.org
Changes 1.1.22: - The lpstat man page incorrectly listed the "-s" option as using the equivalent of the "-p" option to list the printers; it uses the "-v" option to list the printers (STR #986) - Now allow 0-length reads in the CUPS file API (STR #985) - cupsDoFileRequest() now sets cupsLastError() to IPP_ERROR on network errors (STR #953) - The pdftops filter didn't scale small pages up to the output page size when the fitplot option was used (STR #984) - Fixed the ipptest program usage message (STR #959) - Added Spanish man pages (STR #963) - Fixed the order of comparisons in the client.conf reading code (STR #971) - cupsLangGet() incorrectly set the current locale (STR #970) Changes 1.1.22rc2: - The pdftops filter didn't check the range of all integer attributes (STR #972) - Documentation corrections (STR #944, STR #946) - Also sanitize device URI in argv[0] (STR #933) - cupsRasterReadHeader() didn't swap bytes for the numeric fields properly (STR #930) Changes 1.1.22rc1: - Now sanitize the device URI that is reported in the error_log file (STR #920) - Fixed some memory and file descriptor leaks in the job dispatch code (STR #921) - Deleting a printer could cause a crash with browsing enabled (STR #865, STR #881, STR #928) - Browsing would turn off if the scheduler got an EAGAIN error (STR #924) - The mime.types file didn't recognize PostScript as a PJL language name (STR #925) Changes 1.1.21: - The scheduler did not separate Digest authentication parameters with commas (STR #882) - Fixed some problems with image printing to custom page sizes (STR #891) - Removed the remaining scheduler code that did not use the "close-on-exec" file descriptor flag to speed up program invocations (STR #890) - The "lpr -r" command removed the print file even if it was not printed. It now only removes the file if the job is successfully created (STR #886) - Revamped the custom page size orientation fix (STR #127) - The lp, lpq, lpr, and lpstat commands now report when an environment variable is pointing to a non-existent printer instead of just saying "no default destination" (STR #879) - Queue names with 2 periods (e.g. "printer..2") were not supported (STR #866)
2004-11-08 17:30:59 +01:00
HOMEPAGE= http://www.cups.org/
COMMENT= Common UNIX Printing System
2010-05-20 10:05:29 +02:00
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
Changes 1.1.22: - The lpstat man page incorrectly listed the "-s" option as using the equivalent of the "-p" option to list the printers; it uses the "-v" option to list the printers (STR #986) - Now allow 0-length reads in the CUPS file API (STR #985) - cupsDoFileRequest() now sets cupsLastError() to IPP_ERROR on network errors (STR #953) - The pdftops filter didn't scale small pages up to the output page size when the fitplot option was used (STR #984) - Fixed the ipptest program usage message (STR #959) - Added Spanish man pages (STR #963) - Fixed the order of comparisons in the client.conf reading code (STR #971) - cupsLangGet() incorrectly set the current locale (STR #970) Changes 1.1.22rc2: - The pdftops filter didn't check the range of all integer attributes (STR #972) - Documentation corrections (STR #944, STR #946) - Also sanitize device URI in argv[0] (STR #933) - cupsRasterReadHeader() didn't swap bytes for the numeric fields properly (STR #930) Changes 1.1.22rc1: - Now sanitize the device URI that is reported in the error_log file (STR #920) - Fixed some memory and file descriptor leaks in the job dispatch code (STR #921) - Deleting a printer could cause a crash with browsing enabled (STR #865, STR #881, STR #928) - Browsing would turn off if the scheduler got an EAGAIN error (STR #924) - The mime.types file didn't recognize PostScript as a PJL language name (STR #925) Changes 1.1.21: - The scheduler did not separate Digest authentication parameters with commas (STR #882) - Fixed some problems with image printing to custom page sizes (STR #891) - Removed the remaining scheduler code that did not use the "close-on-exec" file descriptor flag to speed up program invocations (STR #890) - The "lpr -r" command removed the print file even if it was not printed. It now only removes the file if the job is successfully created (STR #886) - Revamped the custom page size orientation fix (STR #127) - The lp, lpq, lpr, and lpstat commands now report when an environment variable is pointing to a non-existent printer instead of just saying "no default destination" (STR #879) - Queue names with 2 periods (e.g. "printer..2") were not supported (STR #866)
2004-11-08 17:30:59 +01:00
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
2000-12-28 01:09:38 +01:00
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
UNLIMIT_RESOURCES= datasize memorysize
2004-02-13 16:42:04 +01:00
USE_LANGUAGES= c c++ # pdftops is a C++ application
USE_PKGLOCALEDIR= yes
USE_TOOLS+= aclocal autoconf automake gmake
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-cachedir=${CUPS_CACHE:Q}
2005-01-06 08:26:39 +01:00
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER}
CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP}
CONFIGURE_ARGS+= --with-system-groups=${CUPS_SYSTEM_GROUPS:Q}
CONFIGURE_ARGS+= --enable-libpaper
CONFIGURE_ARGS+= --enable-libtool
Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of bug and security fixes, improvements to the efficiency of the server and utilities, improvements to the documentation, plus the following: * Security updates - new default configuration does not broadcast printer information and only allows access from the local system. * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library. * Updated PDF filter to Xpdf 0.91. * Added PPD files for 9-pin and 24-pin OKIDATA printers. * Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS... * Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS... * Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options. * Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs. * The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud. * The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI. * The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI) * Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job. * Added quota and allow/deny user support for printers and classes.
2000-12-21 15:59:37 +01:00
CONFIGURE_ARGS+= --enable-ssl
CONFIGURE_ARGS+= --with-manext=bsd
CONFIGURE_ARGS+= --without-icondir
CONFIGURE_ARGS+= --without-menudir
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --without-php
CONFIGURE_ARGS+= --without-python
CONFIGURE_ARGS+= --without-java
CONFIGURE_ARGS+= --disable-gssapi
CONFIGURE_ARGS+= --disable-gnutls
CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q}
Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of bug and security fixes, improvements to the efficiency of the server and utilities, improvements to the documentation, plus the following: * Security updates - new default configuration does not broadcast printer information and only allows access from the local system. * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library. * Updated PDF filter to Xpdf 0.91. * Added PPD files for 9-pin and 24-pin OKIDATA printers. * Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS... * Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS... * Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options. * Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs. * The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud. * The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI. * The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI) * Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job. * Added quota and allow/deny user support for printers and classes.
2000-12-21 15:59:37 +01:00
.include "../../mk/bsd.prefs.mk"
.include "options.mk"
2011-12-02 15:14:58 +01:00
.if ${OPSYS} == "SunOS"
LIBS_SSP= -lssp_nonshared -lssp
CONFIGURE_ENV+= LIBS_SSP=${LIBS_SSP:M*:Q}
# Explicitly disable epoll on illumos, it is provided for Linux compat only.
CONFIGURE_ENV+= ac_cv_func_epoll_create=no
2011-12-02 15:14:58 +01:00
.endif
2015-03-14 22:03:48 +01:00
LIBS+= ${BUILDLINK_LDADD.iconv}
2011-12-02 15:14:58 +01:00
PLIST_VARS+= notmac
.if ${OPSYS} != "Darwin"
PLIST.notmac= yes
.endif
2014-06-01 08:19:02 +02:00
# Avoid the following error when compiling with clang.
# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC'
# can not be used when making a shared object; recompile with -fPIC
2016-02-25 18:52:45 +01:00
BUILDLINK_TRANSFORM.FreeBSD+= rm:-Wl,-pie
2014-06-01 08:19:02 +02:00
# CUPS_USER user to run filter and CGI programs as
# CUPS_GROUP group to run filter and CGI programs as
# CUPS_SYSTEM_GROUPS group for system administration
#
CUPS_USER?= lp
CUPS_GROUP?= lp
CUPS_SYSTEM_GROUPS?= ${REAL_ROOT_GROUP}
FILES_SUBST+= CUPS_USER=${CUPS_USER}
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
2010-05-24 05:37:59 +02:00
FILES_SUBST+= CUPS_SYSTEM_GROUPS=${CUPS_SYSTEM_GROUPS:Q}
PKG_GROUPS_VARS+= CUPS_GROUP CUPS_SYSTEM_GROUPS
PKG_USERS_VARS+= CUPS_USER
BUILD_DEFS+= CUPS_USER CUPS_GROUP CUPS_SYSTEM_GROUPS VARBASE
2007-10-08 13:39:47 +02:00
Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of bug and security fixes, improvements to the efficiency of the server and utilities, improvements to the documentation, plus the following: * Security updates - new default configuration does not broadcast printer information and only allows access from the local system. * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library. * Updated PDF filter to Xpdf 0.91. * Added PPD files for 9-pin and 24-pin OKIDATA printers. * Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS... * Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS... * Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options. * Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs. * The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud. * The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI. * The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI) * Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job. * Added quota and allow/deny user support for printers and classes.
2000-12-21 15:59:37 +01:00
DOCDIR= ${PREFIX}/share/doc/cups
EGDIR= ${PREFIX}/share/examples/cups
MIMEDIR= ${PREFIX}/share/cups/mime
PKG_SYSCONFSUBDIR= cups
CUPS_CONFDIR= ${PKG_SYSCONFDIR}
2007-10-08 13:39:47 +02:00
CUPS_LOGDIR= ${VARBASE}/log/cups
CUPS_REQUESTS= ${VARBASE}/spool/cups
CUPS_CACHE= ${VARBASE}/cache/cups
CUPS_STATEDIR= ${VARBASE}/run/cups
Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of bug and security fixes, improvements to the efficiency of the server and utilities, improvements to the documentation, plus the following: * Security updates - new default configuration does not broadcast printer information and only allows access from the local system. * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library. * Updated PDF filter to Xpdf 0.91. * Added PPD files for 9-pin and 24-pin OKIDATA printers. * Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS... * Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS... * Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options. * Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs. * The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud. * The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI. * The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI) * Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job. * Added quota and allow/deny user support for printers and classes.
2000-12-21 15:59:37 +01:00
2001-12-15 00:18:15 +01:00
PKG_GROUPS= ${CUPS_GROUP}
PKG_USERS= ${CUPS_USER}:${CUPS_GROUP}
PKG_GECOS.${CUPS_USER}= Common UNIX Printing System user
PKG_SHELL.${CUPS_USER}= ${SH}
CONF_FILES+= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf
CONF_FILES+= ${EGDIR}/cups-files.conf ${CUPS_CONFDIR}/cups-files.conf
CONF_FILES+= ${EGDIR}/snmp.conf ${CUPS_CONFDIR}/snmp.conf
2001-12-15 00:18:15 +01:00
RCD_SCRIPTS= cupsd
2001-12-15 00:18:15 +01:00
OWN_DIRS= ${CUPS_CONFDIR}
OWN_DIRS+= ${CUPS_CONFDIR}/interfaces
OWN_DIRS+= ${CUPS_CONFDIR}/ppd
OWN_DIRS+= ${PREFIX}/libexec/cups/driver
2001-12-15 00:18:15 +01:00
OWN_DIRS+= ${CUPS_LOGDIR}
OWN_DIRS+= ${CUPS_STATEDIR}
OWN_DIRS_PERMS= ${CUPS_STATEDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711
2010-05-24 05:26:37 +02:00
OWN_DIRS_PERMS+= ${CUPS_CONFDIR}/ssl ${REAL_ROOT_USER} ${CUPS_GROUP} 0700
OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${REAL_ROOT_USER} ${CUPS_GROUP} 0710
OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${REAL_ROOT_USER} ${CUPS_GROUP} 1770
OWN_DIRS_PERMS+= ${CUPS_CACHE} ${REAL_ROOT_USER} ${CUPS_GROUP} 0775
OWN_DIRS_PERMS+= ${CUPS_CACHE}/rss ${REAL_ROOT_USER} ${CUPS_GROUP} 0775
2006-01-06 01:19:44 +01:00
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/cups.pam
SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g'
SUBST_STAGE.paths= post-patch
SUBST_CLASSES+= rpathfix
SUBST_FILES.rpathfix= cups-config.in
SUBST_MESSAGE.rpathfix= Adding rpath to cups-config.
SUBST_SED.rpathfix= -e 's|@EXPORT_LDFLAGS@|${COMPILER_RPATH_FLAG}${PREFIX}/lib|g'
SUBST_STAGE.rpathfix= post-patch
.if !empty(OPSYS:MNetBSD) && !empty(MACHINE_ARCH:Mpowerpc)
SUBST_CLASSES+= piefix
SUBST_FILES.piefix= Makedefs.in
SUBST_MESSAGE.piefix= Removing PIE flags
SUBST_SED.piefix= -e 's|@PIEFLAGS@||g'
SUBST_STAGE.piefix= post-patch
.endif
.if ${OPSYS} == "Darwin"
PLIST_SRC= PLIST.Darwin
.endif
Update to cups-1.5.0 -------------------- CHANGES IN CUPS V1.5.0 - Documentation updates. - Localization update (STR #3865) - Needed to limit TLS to v1.0 on some versions of Mac OS X. - The snmp backend did not work with some printers. CHANGES IN CUPS V1.5rc1 - Compile fixes (STR #3849, STR #3850) - The scheduler didn't check for empty values for several configuration directives (STR #3861) - ipptool didn't generate valid XML when a test was skipped. - Added additional error checking to the 1284 device ID code (STR #3858) - Fixed some compatibility issues migrating from the old usblp backend to the libusb backend (STR #3860) - Fixed the wake-from-sleep printing behavior on Mac OS X. - The scheduler incorrectly allowed jobs to be held from a terminating state. - The cups-driverd program could crash when a PPD was renamed. - The dnssd backend took too long to discover printers on large or busy networks with the new default timeout used by lpinfo and the web interface. This resulted in "lost" printers. CHANGES IN CUPS V1.5b2 - Documentation updates. - Localization updates (STR #3845) - Compiler warning cleanup. - Fixed PIE support for Linux (STR #3846) - Made httpSetTimeout API public and use it in the IPP backend to avoid timeout errors. - The scheduler incorrectly set the "authenticated" printer-type bit for remote queues using authentication. CHANGES IN CUPS V1.5b1 - The CUPS library now supports per-connection HTTP timeouts and callbacks. - The CUPS library now supports (limited) SSL/TLS X.509 certificate validation and revocation (STR #1616) - Updated the PostScript filter to support IncludeFeature in more circumstances (STR #3417) - The schedule did not correctly parse some IPv6 addresses and masks in the cupsd.conf file (STR #3533) - Fixed a case-insensitive string comparison issue for locales that do not treat "I" and "i" as equivalent (STR #3800) - The scheduler reported an incorrect job-printer-uri value when sharing was not enabled (STR #3639) - The scheduler now allows the ServerAlias directive to contain multiple hostnames separated by spaces or commas (STR #3813) - The scheduler now sets the process group for child processes and manages the group (STR #2829) - Fixed some minor issues discovered by a Coverity scan (STR #3838) - The scheduler now more carefully creates and removes configuration, cache, and state files (STR #3715) - The lpadmin command now allows default option values to be deleted (STR #2959) - The lpadmin command now allows the cupsIPPSupplies and cupsSNMPSupplies keywords to be set in a PPD file (STR #3825) - Moving a held job no longer releases it (STR #3839) - Restored support for GNU TLS and OpenSSL with threading enabled (STR #3605) - Fixed a confusing error message from cups-polld (STR #3806) - Increased the default RIPCache value to 128MB (STR #3535) - MIME errors are now routed to the error_log file (STR #2410) - Updated PDF filter to support new Ghostscript ps2write device (STR #3766) - Updated PDF filter to support new Poppler option to preserve page sizes in PDF files when the user has not selected a particular media size (STR #3689) - Added new PWG Raster filter for IPP Everywhere printer support. - Added job-uuid, printer-uuid, and subscription-uuid attributes. - Added support for the cupsSingleFile PPD keyword. - Dropped support for the printer-state-history attribute (STR #3654) - Added support for a new cupsIPPSupplies keyword in PPD files to allow drivers to disable IPP supply level reporting. - Added support for a new cupsFilter2 keyword in PPD files to allow for the propagation of the actual MIME media type produced by a filter. - The scheduler did not always get the correct Kerberos username when authenticating (STR #3670) - Added new cupsRasterOpenIO function and CUPS_RASTER_WRITE_PWG to the CUPS imaging library to support printing to IPP Everywhere raster printers. - The scheduler now provides default values for the pages-per-minute and pages-per-minute-color attributes for PPD files that lack a Throughput keyword. - Email notifications did not work on Mac OS X. - The cupstestppd program now shows an error for files missing a CloseGroup keyword (STR #3668) - Name resolution errors no longer cause queues to stop (STR #3719, STR #3753) - Added a new cups-exec helper program that applies security profiles to filters, port monitors, backends, CGI programs, and mini-daemons. - The web interface can now be disabled using the WebInterface directive in cupsd.conf (STR #2625) - The scheduler now provides privacy controls for jobs and subscriptions (STR #2969) - Added new cupsArrayNew3 API which offers memory management of array elements. - Added several new color spaces to the CUPS raster format (STR #3419) - The Validate-Job operation now uses the same policy as Print-Job by default. - CUPS now uses iconv to implement all of its character encoding support (STR #3097) - The scheduler now implements the Cancel-Jobs, Cancel-My-Jobs, and Close-Job operations along with the job-ids operation attribute from PWG 5100.11. - The main CUPS header (<cups/cups.h>) no longer includes the PPD header (<cups/ppd.h>). - The scheduler and CUPS API now support the print-quality job template attribute. - The scheduler no longer supports the old Mac OS X Server quota plugin. - The scheduler now allows writing to /Users/Shared from print filters on Mac OS X. - CUPS no longer supports the old ~/.cupsrc or ~/.lpoptions files from CUPS 1.1.x. The ~/.cups/client.conf and ~/.cups/lpoptions files that were introduced in CUPS 1.2 must now be used. - The ipptest tool is now a first-class user program and has several improvements along with new documentation (STR #3484) - The cupstestppd tool now warns about non-unique filenames and provides a way to ignore all filename warnings. - Dropped support for the recoverable: and recovered: message prefixes. - The scheduler now requires that filters and backends have group write permissions disabled. - The PPD compiler now checks for overlapping filenames when writing PPD files. - The HP-GL/2 filter is no longer included with CUPS (STR #3322) - The SCSI backend is no longer included with CUPS (STR #3500)
2011-11-13 22:49:17 +01:00
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR} ${CUPS_CONFDIR}
INSTALL_ENV+= DSTROOT=${DESTDIR}
2007-11-08 21:03:21 +01:00
pre-configure:
.if !empty(CUPS_SYSTEM_GROUPS:M${CUPS_GROUP})
${ERROR_MSG} "CUPS_SYSTEM_GROUPS may not contain the CUPS_GROUP"
exit 1
.endif
cd ${WRKSRC} && aclocal && autoconf
2006-01-06 01:19:44 +01:00
post-extract:
${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
post-install:
set -e; for file in LICENSE.txt README.txt; do \
2007-11-08 21:03:21 +01:00
${INSTALL_DATA} ${WRKSRC}/$${file} \
${DESTDIR}${DOCDIR}/$${file}; \
Update cups to 1.1.5. Relevant changes since version 1.1.4 include lots of bug and security fixes, improvements to the efficiency of the server and utilities, improvements to the documentation, plus the following: * Security updates - new default configuration does not broadcast printer information and only allows access from the local system. * EXPERIMENTAL encryption support - CUPS now optionally supports TLS/SSL encryption via the OpenSSL library. * Updated PDF filter to Xpdf 0.91. * Added PPD files for 9-pin and 24-pin OKIDATA printers. * Changed all sprintf's that use string formats to snprintf's, even if the destination buffer is larger than the source string(s); this protects against buffer overflows caused outside of CUPS... * Changed all strcpy's to strncpy's between local and global variables, even if the destination buffer is larger than the source string; this protects against buffer overflows caused outside of CUPS... * Added new mime.types rules to allow automatic raw printing of PCL and ESC/P files; PJL headers are parsed to differentiate between PostScript and PCL job files. This should eliminate a lot of the reports of SAMBA printing problems due to the missing "-oraw" or "-l" options. * Jobs are now assigned to printers in a class round-robin style. This should prevent the first server in the class from bearing the brunt of the jobs. * The serial backend didn't support the higher baud rates with the old termios interface. It now supports 57600 and 115200 baud. * The serial backend now supports different types of flow control; previously it ignored the flow=XYZ option in the device URI. * The serial backend now supports DTR/DSR flow control, which is popular on dot-matrix printers (access with "flow=dtrdsr" in the device URI) * Added new job-originating-host-name attribute for jobs. The new attribute provides the hostname or IP address of the machine that submitted the job. * Added quota and allow/deny user support for printers and classes.
2000-12-21 15:59:37 +01:00
done
${RUN} for file in cupsd.conf cups-files.conf snmp.conf ; do \
${INSTALL_DATA} ${WRKSRC}/conf/$${file} \
Update to cups-1.5.0 -------------------- CHANGES IN CUPS V1.5.0 - Documentation updates. - Localization update (STR #3865) - Needed to limit TLS to v1.0 on some versions of Mac OS X. - The snmp backend did not work with some printers. CHANGES IN CUPS V1.5rc1 - Compile fixes (STR #3849, STR #3850) - The scheduler didn't check for empty values for several configuration directives (STR #3861) - ipptool didn't generate valid XML when a test was skipped. - Added additional error checking to the 1284 device ID code (STR #3858) - Fixed some compatibility issues migrating from the old usblp backend to the libusb backend (STR #3860) - Fixed the wake-from-sleep printing behavior on Mac OS X. - The scheduler incorrectly allowed jobs to be held from a terminating state. - The cups-driverd program could crash when a PPD was renamed. - The dnssd backend took too long to discover printers on large or busy networks with the new default timeout used by lpinfo and the web interface. This resulted in "lost" printers. CHANGES IN CUPS V1.5b2 - Documentation updates. - Localization updates (STR #3845) - Compiler warning cleanup. - Fixed PIE support for Linux (STR #3846) - Made httpSetTimeout API public and use it in the IPP backend to avoid timeout errors. - The scheduler incorrectly set the "authenticated" printer-type bit for remote queues using authentication. CHANGES IN CUPS V1.5b1 - The CUPS library now supports per-connection HTTP timeouts and callbacks. - The CUPS library now supports (limited) SSL/TLS X.509 certificate validation and revocation (STR #1616) - Updated the PostScript filter to support IncludeFeature in more circumstances (STR #3417) - The schedule did not correctly parse some IPv6 addresses and masks in the cupsd.conf file (STR #3533) - Fixed a case-insensitive string comparison issue for locales that do not treat "I" and "i" as equivalent (STR #3800) - The scheduler reported an incorrect job-printer-uri value when sharing was not enabled (STR #3639) - The scheduler now allows the ServerAlias directive to contain multiple hostnames separated by spaces or commas (STR #3813) - The scheduler now sets the process group for child processes and manages the group (STR #2829) - Fixed some minor issues discovered by a Coverity scan (STR #3838) - The scheduler now more carefully creates and removes configuration, cache, and state files (STR #3715) - The lpadmin command now allows default option values to be deleted (STR #2959) - The lpadmin command now allows the cupsIPPSupplies and cupsSNMPSupplies keywords to be set in a PPD file (STR #3825) - Moving a held job no longer releases it (STR #3839) - Restored support for GNU TLS and OpenSSL with threading enabled (STR #3605) - Fixed a confusing error message from cups-polld (STR #3806) - Increased the default RIPCache value to 128MB (STR #3535) - MIME errors are now routed to the error_log file (STR #2410) - Updated PDF filter to support new Ghostscript ps2write device (STR #3766) - Updated PDF filter to support new Poppler option to preserve page sizes in PDF files when the user has not selected a particular media size (STR #3689) - Added new PWG Raster filter for IPP Everywhere printer support. - Added job-uuid, printer-uuid, and subscription-uuid attributes. - Added support for the cupsSingleFile PPD keyword. - Dropped support for the printer-state-history attribute (STR #3654) - Added support for a new cupsIPPSupplies keyword in PPD files to allow drivers to disable IPP supply level reporting. - Added support for a new cupsFilter2 keyword in PPD files to allow for the propagation of the actual MIME media type produced by a filter. - The scheduler did not always get the correct Kerberos username when authenticating (STR #3670) - Added new cupsRasterOpenIO function and CUPS_RASTER_WRITE_PWG to the CUPS imaging library to support printing to IPP Everywhere raster printers. - The scheduler now provides default values for the pages-per-minute and pages-per-minute-color attributes for PPD files that lack a Throughput keyword. - Email notifications did not work on Mac OS X. - The cupstestppd program now shows an error for files missing a CloseGroup keyword (STR #3668) - Name resolution errors no longer cause queues to stop (STR #3719, STR #3753) - Added a new cups-exec helper program that applies security profiles to filters, port monitors, backends, CGI programs, and mini-daemons. - The web interface can now be disabled using the WebInterface directive in cupsd.conf (STR #2625) - The scheduler now provides privacy controls for jobs and subscriptions (STR #2969) - Added new cupsArrayNew3 API which offers memory management of array elements. - Added several new color spaces to the CUPS raster format (STR #3419) - The Validate-Job operation now uses the same policy as Print-Job by default. - CUPS now uses iconv to implement all of its character encoding support (STR #3097) - The scheduler now implements the Cancel-Jobs, Cancel-My-Jobs, and Close-Job operations along with the job-ids operation attribute from PWG 5100.11. - The main CUPS header (<cups/cups.h>) no longer includes the PPD header (<cups/ppd.h>). - The scheduler and CUPS API now support the print-quality job template attribute. - The scheduler no longer supports the old Mac OS X Server quota plugin. - The scheduler now allows writing to /Users/Shared from print filters on Mac OS X. - CUPS no longer supports the old ~/.cupsrc or ~/.lpoptions files from CUPS 1.1.x. The ~/.cups/client.conf and ~/.cups/lpoptions files that were introduced in CUPS 1.2 must now be used. - The ipptest tool is now a first-class user program and has several improvements along with new documentation (STR #3484) - The cupstestppd tool now warns about non-unique filenames and provides a way to ignore all filename warnings. - Dropped support for the recoverable: and recovered: message prefixes. - The scheduler now requires that filters and backends have group write permissions disabled. - The PPD compiler now checks for overlapping filenames when writing PPD files. - The HP-GL/2 filter is no longer included with CUPS (STR #3322) - The SCSI backend is no longer included with CUPS (STR #3500)
2011-11-13 22:49:17 +01:00
${DESTDIR}${EGDIR}/$${file}; \
done
${CHMOD} g-w ${DESTDIR}${PREFIX}/libexec/cups/cgi-bin
.if !empty(PKG_OPTIONS:Mpam)
2007-11-08 21:03:21 +01:00
${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
.endif
Update to 1.5.4 (ok by wiz@): - Documentation updates (STR #4112, STR #4130, STR #4134) - Fixes for libusb-based USB backend (STR #4128) - The lpq command did not show the owner or title of jobs unless passed a username on the command-line (STR #4135) - Localized empty strings contained the message catalog metadata (STR #4119) - Fixed a crash in the libusb-based USB backend (STR #4099) - The cups-lpd mini-daemon no longer handled jobs with multiple copies (STR #4118) - Multiple libusb backend fixes (STR #4098, STR #4100) - The IPP backend no longer tries to get the job status for printers that do not implement the required operation (STR #4083) - Sending a document in an unsupported format to an IPP printer now automatically cancels the job (STR #4093) - Fix some error reporting issues when printing from /dev/null and other unusual situations (STR #4015) - The scheduler now sets the CUPS_MAX_MESSAGE environment variable for filters (STR #4074) - Fixed a build issue when using older versions of autoconf (STR #4084) - The IPP backend now treats the client-error-not-possible status code as a job history issue, allowing IPP printing to Windows to work (STR #4047) - The IPP backend incorrectly included the document-format and compression attributes in Create-Job requests (STR #4086) - The libusb-based USB backend did not work on non-Linux platforms (STR #4088) - httpReconnect() did not reset the read/write buffers (STR #4065) - Compiling without threading support failed (STR #4060) - Fixed compile problem with old versions of OpenSSL (STR #4036) - The network backends did not check SNMP supply levels regularly (STR #4040) - The online help always included the "help on help" text (STR #4042) - Fixed a SSL handshake issue on OS X (STR #4045) - The scheduler could crash if a PPD file contained an invalid paper size (STR #4049) - The CUPS polling daemon did not reinitialize its connection to the remote server on errors in all cases (STR #4031) - PostScript auto-configuration was slow and unreliable with some printers (STR #4028) - Missing localizations caused empty output (STR #4033) - The cups-driverd program could temporarily "forget" a PPD file if it was updated in place. - The dnssd backend now prefers IPPS over IPP. - The USB backend now uses and requires LIBUSB 1.0 or later (STR #3477) - The LIBUSB-based USB backend now supports the back-channel (STR #2890) - Changed how timeouts are implemented in the LPD backend (STR #4013) - Added more supported color names for SNMP supplies (STR #3981) - The default InputSlot setting was never used (STR #3957) - POSIX ACLs are now set properly on certificate files (STR #3970) - Supplies with commas in their names were not reported correctly (STR #4020) - The cupsGetPPD3() function created a temporary file when one was not needed (STR #4018) - The scheduler now ensures that job notifications contain a value for the notify-printer-uri attribute (STR #4014) - The lp and lpr commands did not cancel jobs queued from stdin on an error (STR #4015) - Fixed the IPP backend's handling of HTTP/1.0 compatibility (STR #3988) - The IPP backend did not always setup username/password authentication for printers (STR #3985) - The IPP backend no longer re-queues print jobs that are too large for the printer/server (STR #3977) - The RPM spec file did not work (STR #4021, STR #4057) - Encryption did not work when the server name ended with "." (STR #4011) - The multi-purpose tray is now mapped to the IPP "by-pass-tray" (STR #4009) - The correct media size was not always passed to IPP printers (STR #4001) - Finishing options were not passed to IPP printers (STR #3995) - Fixed iCloud-based Back to My Mac printing (STR #3996)
2012-09-18 09:17:28 +02:00
.if !empty(PKG_OPTIONS:Mdnssd)
${LN} -sf ${DESTDIR}${PREFIX}/libexec/cups/backend/dnssd ${DESTDIR}${PREFIX}/libexec/cups/backend/mdns
Update to 1.5.4 (ok by wiz@): - Documentation updates (STR #4112, STR #4130, STR #4134) - Fixes for libusb-based USB backend (STR #4128) - The lpq command did not show the owner or title of jobs unless passed a username on the command-line (STR #4135) - Localized empty strings contained the message catalog metadata (STR #4119) - Fixed a crash in the libusb-based USB backend (STR #4099) - The cups-lpd mini-daemon no longer handled jobs with multiple copies (STR #4118) - Multiple libusb backend fixes (STR #4098, STR #4100) - The IPP backend no longer tries to get the job status for printers that do not implement the required operation (STR #4083) - Sending a document in an unsupported format to an IPP printer now automatically cancels the job (STR #4093) - Fix some error reporting issues when printing from /dev/null and other unusual situations (STR #4015) - The scheduler now sets the CUPS_MAX_MESSAGE environment variable for filters (STR #4074) - Fixed a build issue when using older versions of autoconf (STR #4084) - The IPP backend now treats the client-error-not-possible status code as a job history issue, allowing IPP printing to Windows to work (STR #4047) - The IPP backend incorrectly included the document-format and compression attributes in Create-Job requests (STR #4086) - The libusb-based USB backend did not work on non-Linux platforms (STR #4088) - httpReconnect() did not reset the read/write buffers (STR #4065) - Compiling without threading support failed (STR #4060) - Fixed compile problem with old versions of OpenSSL (STR #4036) - The network backends did not check SNMP supply levels regularly (STR #4040) - The online help always included the "help on help" text (STR #4042) - Fixed a SSL handshake issue on OS X (STR #4045) - The scheduler could crash if a PPD file contained an invalid paper size (STR #4049) - The CUPS polling daemon did not reinitialize its connection to the remote server on errors in all cases (STR #4031) - PostScript auto-configuration was slow and unreliable with some printers (STR #4028) - Missing localizations caused empty output (STR #4033) - The cups-driverd program could temporarily "forget" a PPD file if it was updated in place. - The dnssd backend now prefers IPPS over IPP. - The USB backend now uses and requires LIBUSB 1.0 or later (STR #3477) - The LIBUSB-based USB backend now supports the back-channel (STR #2890) - Changed how timeouts are implemented in the LPD backend (STR #4013) - Added more supported color names for SNMP supplies (STR #3981) - The default InputSlot setting was never used (STR #3957) - POSIX ACLs are now set properly on certificate files (STR #3970) - Supplies with commas in their names were not reported correctly (STR #4020) - The cupsGetPPD3() function created a temporary file when one was not needed (STR #4018) - The scheduler now ensures that job notifications contain a value for the notify-printer-uri attribute (STR #4014) - The lp and lpr commands did not cancel jobs queued from stdin on an error (STR #4015) - Fixed the IPP backend's handling of HTTP/1.0 compatibility (STR #3988) - The IPP backend did not always setup username/password authentication for printers (STR #3985) - The IPP backend no longer re-queues print jobs that are too large for the printer/server (STR #3977) - The RPM spec file did not work (STR #4021, STR #4057) - Encryption did not work when the server name ended with "." (STR #4011) - The multi-purpose tray is now mapped to the IPP "by-pass-tray" (STR #4009) - The correct media size was not always passed to IPP printers (STR #4001) - Finishing options were not passed to IPP printers (STR #3995) - Fixed iCloud-based Back to My Mac printing (STR #3996)
2012-09-18 09:17:28 +02:00
.endif
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
Update to cups-1.5.0 -------------------- CHANGES IN CUPS V1.5.0 - Documentation updates. - Localization update (STR #3865) - Needed to limit TLS to v1.0 on some versions of Mac OS X. - The snmp backend did not work with some printers. CHANGES IN CUPS V1.5rc1 - Compile fixes (STR #3849, STR #3850) - The scheduler didn't check for empty values for several configuration directives (STR #3861) - ipptool didn't generate valid XML when a test was skipped. - Added additional error checking to the 1284 device ID code (STR #3858) - Fixed some compatibility issues migrating from the old usblp backend to the libusb backend (STR #3860) - Fixed the wake-from-sleep printing behavior on Mac OS X. - The scheduler incorrectly allowed jobs to be held from a terminating state. - The cups-driverd program could crash when a PPD was renamed. - The dnssd backend took too long to discover printers on large or busy networks with the new default timeout used by lpinfo and the web interface. This resulted in "lost" printers. CHANGES IN CUPS V1.5b2 - Documentation updates. - Localization updates (STR #3845) - Compiler warning cleanup. - Fixed PIE support for Linux (STR #3846) - Made httpSetTimeout API public and use it in the IPP backend to avoid timeout errors. - The scheduler incorrectly set the "authenticated" printer-type bit for remote queues using authentication. CHANGES IN CUPS V1.5b1 - The CUPS library now supports per-connection HTTP timeouts and callbacks. - The CUPS library now supports (limited) SSL/TLS X.509 certificate validation and revocation (STR #1616) - Updated the PostScript filter to support IncludeFeature in more circumstances (STR #3417) - The schedule did not correctly parse some IPv6 addresses and masks in the cupsd.conf file (STR #3533) - Fixed a case-insensitive string comparison issue for locales that do not treat "I" and "i" as equivalent (STR #3800) - The scheduler reported an incorrect job-printer-uri value when sharing was not enabled (STR #3639) - The scheduler now allows the ServerAlias directive to contain multiple hostnames separated by spaces or commas (STR #3813) - The scheduler now sets the process group for child processes and manages the group (STR #2829) - Fixed some minor issues discovered by a Coverity scan (STR #3838) - The scheduler now more carefully creates and removes configuration, cache, and state files (STR #3715) - The lpadmin command now allows default option values to be deleted (STR #2959) - The lpadmin command now allows the cupsIPPSupplies and cupsSNMPSupplies keywords to be set in a PPD file (STR #3825) - Moving a held job no longer releases it (STR #3839) - Restored support for GNU TLS and OpenSSL with threading enabled (STR #3605) - Fixed a confusing error message from cups-polld (STR #3806) - Increased the default RIPCache value to 128MB (STR #3535) - MIME errors are now routed to the error_log file (STR #2410) - Updated PDF filter to support new Ghostscript ps2write device (STR #3766) - Updated PDF filter to support new Poppler option to preserve page sizes in PDF files when the user has not selected a particular media size (STR #3689) - Added new PWG Raster filter for IPP Everywhere printer support. - Added job-uuid, printer-uuid, and subscription-uuid attributes. - Added support for the cupsSingleFile PPD keyword. - Dropped support for the printer-state-history attribute (STR #3654) - Added support for a new cupsIPPSupplies keyword in PPD files to allow drivers to disable IPP supply level reporting. - Added support for a new cupsFilter2 keyword in PPD files to allow for the propagation of the actual MIME media type produced by a filter. - The scheduler did not always get the correct Kerberos username when authenticating (STR #3670) - Added new cupsRasterOpenIO function and CUPS_RASTER_WRITE_PWG to the CUPS imaging library to support printing to IPP Everywhere raster printers. - The scheduler now provides default values for the pages-per-minute and pages-per-minute-color attributes for PPD files that lack a Throughput keyword. - Email notifications did not work on Mac OS X. - The cupstestppd program now shows an error for files missing a CloseGroup keyword (STR #3668) - Name resolution errors no longer cause queues to stop (STR #3719, STR #3753) - Added a new cups-exec helper program that applies security profiles to filters, port monitors, backends, CGI programs, and mini-daemons. - The web interface can now be disabled using the WebInterface directive in cupsd.conf (STR #2625) - The scheduler now provides privacy controls for jobs and subscriptions (STR #2969) - Added new cupsArrayNew3 API which offers memory management of array elements. - Added several new color spaces to the CUPS raster format (STR #3419) - The Validate-Job operation now uses the same policy as Print-Job by default. - CUPS now uses iconv to implement all of its character encoding support (STR #3097) - The scheduler now implements the Cancel-Jobs, Cancel-My-Jobs, and Close-Job operations along with the job-ids operation attribute from PWG 5100.11. - The main CUPS header (<cups/cups.h>) no longer includes the PPD header (<cups/ppd.h>). - The scheduler and CUPS API now support the print-quality job template attribute. - The scheduler no longer supports the old Mac OS X Server quota plugin. - The scheduler now allows writing to /Users/Shared from print filters on Mac OS X. - CUPS no longer supports the old ~/.cupsrc or ~/.lpoptions files from CUPS 1.1.x. The ~/.cups/client.conf and ~/.cups/lpoptions files that were introduced in CUPS 1.2 must now be used. - The ipptest tool is now a first-class user program and has several improvements along with new documentation (STR #3484) - The cupstestppd tool now warns about non-unique filenames and provides a way to ignore all filename warnings. - Dropped support for the recoverable: and recovered: message prefixes. - The scheduler now requires that filters and backends have group write permissions disabled. - The PPD compiler now checks for overlapping filenames when writing PPD files. - The HP-GL/2 filter is no longer included with CUPS (STR #3322) - The SCSI backend is no longer included with CUPS (STR #3500)
2011-11-13 22:49:17 +01:00
.include "../../mk/pthread.buildlink3.mk"
.include "../../print/libpaper/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"