CHANGES IN CUPS V1.4.4 - Documentation updates (STR #3453, STR #3527, STR #3528, STR #3529) - Security: The texttops filter did not check the results of allocations (STR #3516) - Security: The fix for CVE-2009-3553 was incomplete (STR #3490) - Security: The web admin interface could disclose the contents of memory (STR #3577) - Security: CUPS could overwrite files as root in directories owned or writable by non-root users (STR #3510) - The cups-config utility did not return the correct linker options on AIX (STR #3587) - Fixed some IPP conformance issues with the scheduler's ippget-event-life, operations-supported, output-bin, and sides attributes (STR #3554) - The OpenSSL interfaces have been made thread-safe and the GNU TLS interface is explicitly forbidden when threading is enabled (STR #3461) - Fixed an IPP conformance issue with the scheduler's Send-Document implementation (STR #3514) - Added additional validation checks for the 1284 device ID (STR #3534) - Fixed a problem with the RPM spec file (STR #3544) - The lpstat command did not limit the job list to the specified printers (STR #3541) - The cupsfilter command did not set the RIP_MAX_CACHE environment variable (STR #3531) - Fixed support for media-col and page size variants (STR #3394) - The PostScript filter did not support all media selection options for the first page (STR #3525) - The scheduler did not always remove job control files (STR #3425) - The scheduler could crash on restart if classes were defined (STR #3524) - The scheduler no longer looks up network interface hostnames by default on Mac OS X (STR #3523) - ippWriteIO did not write collection (member) attributes properly in all cases (STR #3521) - The "cupsctl --remote-any" and corresponding web interface check box (allow printing from the Internet) did not work reliably (STR #3520) - The lpq and lpr commands would sometimes choose different default printers (STR #3503) - cupsDo*Request did not flush error text, leading to multiple issues (STR #3325, STR #3519) - cupsDoAuthentication did not cancel password authentication after 3 failures (STR #3518) - Fixed several LDAP browsing bugs (STR #3392) - The Dymo driver did not support copies (STR #3457) - The scheduler did not update the classes.conf file when deleting a printer belonging to a class (STR #3505) - The lppasswd command did not use localized password prompts (STR #3492) - The socket backend no longer waits for back-channel data on platforms other than Mac OS X (STR #3495) - The scheduler didn't send events when a printer started accepting or rejecting jobs (STR #3480) - The web interface now includes additional CSRF protection (STR #3498)
164 lines
5.3 KiB
Makefile
164 lines
5.3 KiB
Makefile
# $NetBSD: Makefile,v 1.171 2010/11/12 08:54:58 sbd 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.
|
|
|
|
DISTNAME= cups-${DIST_VERS}-source
|
|
PKGNAME= cups-${DIST_VERS:S/-/./g}
|
|
BASE_VERS= 1.4.4
|
|
DIST_VERS= ${BASE_VERS}
|
|
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
|
|
ftp://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
|
|
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${BASE_VERS}/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= sbd@NetBSD.org
|
|
HOMEPAGE= http://www.cups.org/
|
|
COMMENT= Common UNIX Printing System
|
|
LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
|
|
|
|
#PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
WRKSRC= ${WRKDIR}/cups-${BASE_VERS}
|
|
UNLIMIT_RESOURCES= datasize memorysize
|
|
USE_LANGUAGES= c c++ # pdftops is a C++ application
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= aclocal autoconf automake gmake
|
|
USE_LIBTOOL= yes
|
|
INSTALL_TARGET= installcups
|
|
# 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=${CUPS_CACHE:Q}
|
|
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
|
|
CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
|
|
CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER:Q}
|
|
CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP:Q}
|
|
CONFIGURE_ARGS+= --with-system-groups=${CUPS_SYSTEM_GROUPS:Q}
|
|
CONFIGURE_ARGS+= --enable-libpaper
|
|
CONFIGURE_ARGS+= --enable-libtool
|
|
CONFIGURE_ARGS+= --enable-jpeg
|
|
CONFIGURE_ARGS+= --enable-png
|
|
CONFIGURE_ARGS+= --enable-tiff
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
CONFIGURE_ARGS+= --enable-openssl
|
|
CONFIGURE_ARGS+= --enable-bannertops
|
|
CONFIGURE_ARGS+= --enable-texttops
|
|
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_ENV+= DSOFLAGS=${LDFLAGS:M*:Q}
|
|
|
|
.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?= lp
|
|
CUPS_SYSTEM_GROUPS?= ${REAL_ROOT_GROUP}
|
|
FILES_SUBST+= CUPS_USER=${CUPS_USER:Q}
|
|
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP:Q}
|
|
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
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/cups
|
|
EGDIR= ${PREFIX}/share/examples/cups
|
|
MIMEDIR= ${PREFIX}/share/cups/mime
|
|
PKG_SYSCONFSUBDIR= cups
|
|
CUPS_CONFDIR= ${PKG_SYSCONFDIR}
|
|
CUPS_LOGDIR= ${VARBASE}/log/cups
|
|
CUPS_REQUESTS= ${VARBASE}/spool/cups
|
|
CUPS_CACHE= ${VARBASE}/cache/cups
|
|
CUPS_STATEDIR= ${VARBASE}/run/cups
|
|
|
|
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}/snmp.conf ${CUPS_CONFDIR}/snmp.conf
|
|
RCD_SCRIPTS= cupsd
|
|
|
|
OWN_DIRS= ${CUPS_CONFDIR}
|
|
OWN_DIRS+= ${CUPS_CONFDIR}/interfaces
|
|
OWN_DIRS+= ${CUPS_CONFDIR}/ppd
|
|
OWN_DIRS+= ${PREFIX}/libexec/cups/driver
|
|
OWN_DIRS+= ${CUPS_LOGDIR}
|
|
OWN_DIRS+= ${CUPS_STATEDIR}
|
|
OWN_DIRS_PERMS= ${CUPS_STATEDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711
|
|
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
|
|
|
|
.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"
|
|
|
|
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
|
|
|
|
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} ${MIMEDIR}
|
|
INSTALL_ENV+= DSTROOT=${DESTDIR:Q}
|
|
|
|
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
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
|
|
|
|
post-install:
|
|
set -e; for file in LICENSE.txt README.txt; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$${file} \
|
|
${DESTDIR}${DOCDIR}/$${file}; \
|
|
done
|
|
set -e; cd ${WRKSRC}/conf; for file in cupsd.conf snmp.conf ; do \
|
|
${INSTALL_DATA} $${file} ${DESTDIR}${EGDIR}/$${file}; \
|
|
done
|
|
set -e; cd ${WRKSRC}/conf; for file in mime.convs mime.types; do \
|
|
${INSTALL_DATA} $${file} ${DESTDIR}${MIMEDIR}/$${file}; \
|
|
done
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
|
${INSTALL_DATA} ${WRKDIR}/cups.pam ${DESTDIR}${EGDIR}
|
|
.endif
|
|
|
|
.include "../../print/libpaper/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|