pkgsrc/print/cups/Makefile

156 lines
4.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.147 2010/04/18 12:02:58 obache Exp $
#
# The CUPS author is very good about taking back changes into the main
# CUPS distribution. The correct place to send patches or bug-fixes is:
# cups-bugs@cups.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
DISTNAME= cups-${DIST_VERS}-source
PKGNAME= cups-${VERS}
BASE_VERS= 1.3.11
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
DIST_VERS= ${BASE_VERS}
DIST_SUBDIR= cups-${DIST_VERS} # temp fix for updated distfile
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
VERS= ${DIST_VERS:S/-/./g}
PKGREVISION= 3
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
2005-01-06 08:26:39 +01:00
MASTER_SITES= http://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
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
ftp://ftp.ntua.gr/pub/gnu/cups/${BASE_VERS}/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${BASE_VERS}/ \
ftp://ftp.fisek.com.tr/pub/cups/${BASE_VERS}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@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
2007-11-08 21:03:21 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
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
#PKG_INSTALLATION_TYPES= overwrite pkgviews
2004-01-06 08:05:24 +01:00
WRKSRC= ${WRKDIR}/cups-${BASE_VERS}
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
INSTALL_TARGET= installcups
2006-07-05 22:12:06 +02:00
# patch-a[jkl] were added for 2.60
AUTOCONF_REQD= 2.60
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --with-cachedir=${VARBASE:Q}/cache/cups
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-rcdir=${RCD_SCRIPTS_DIR:Q}
CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER:Q}
CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP:Q}
CONFIGURE_ARGS+= --with-manext=bsd
CONFIGURE_ARGS+= --without-perl
CONFIGURE_ARGS+= --without-icondir
CONFIGURE_ARGS+= --without-menudir
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+= --enable-gnutls=no
CONFIGURE_ARGS+= --enable-openssl
CONFIGURE_ARGS+= --without-php
CONFIGURE_ARGS+= --without-python
CONFIGURE_ARGS+= --without-java
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"
# CUPS_USER username of the CUPS administrator
# CUPS_GROUP group of the CUPS administrator
#
CUPS_USER?= lp
CUPS_GROUP?= sys
FILES_SUBST+= CUPS_USER=${CUPS_USER:Q}
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP:Q}
PKG_GROUPS_VARS+= CUPS_GROUP
PKG_USERS_VARS+= CUPS_USER
2007-10-08 13:39:47 +02:00
BUILD_DEFS+= VARBASE
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
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
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}
SPECIAL_PERMS= ${PREFIX}/bin/lppasswd ${CUPS_USER} ${CUPS_GROUP} 4555
CONF_FILES= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf
CONF_FILES+= ${EGDIR}/mime.convs ${CUPS_CONFDIR}/mime.convs
CONF_FILES+= ${EGDIR}/mime.types ${CUPS_CONFDIR}/mime.types
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_PERMS= ${CUPS_CONFDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711
OWN_DIRS_PERMS+= ${CUPS_CONFDIR}/ssl ${CUPS_USER} ${CUPS_GROUP} 0700
OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${CUPS_USER} ${CUPS_GROUP} 0710
OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${CUPS_USER} ${CUPS_GROUP} 1770
OWN_DIRS_PERMS+= ${VARBASE}/cache/cups ${CUPS_USER} ${CUPS_GROUP} 0775
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
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}${LOCALBASE}/lib|g'
SUBST_STAGE.rpathfix= post-patch
2007-11-08 21:03:21 +01:00
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
INSTALL_ENV+= DSTROOT=${DESTDIR:Q}
pre-configure:
cd ${WRKSRC} && aclocal && autoconf
2006-01-06 01:19:44 +01:00
post-extract:
${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
post-install:
2007-11-08 21:03:21 +01:00
for file in LICENSE.txt README.txt; do \
${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
cd ${WRKSRC}/conf; for file in *.conf mime.convs mime.types; do \
case $${file} in \
pam.conf) \
;; \
*) \
2007-11-08 21:03:21 +01:00
${INSTALL_DATA} $${file} \
${DESTDIR}${EGDIR}/$${file}; \
;; \
esac; \
done
.if !empty(PKG_OPTIONS:Mpam)
2007-11-08 21:03:21 +01:00
${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
.endif
.include "../../mk/bsd.pkg.mk"