pkgsrc/print/cups/Makefile
jlam 3dd399c2ae Update print/cups to 1.1.23. Changes from version 1.1.22 include:
- The scheduler's is_path_absolute() code could cause a DoS (STR #1042)
- The scheduler's device loading code used the wrong size limits for the
  make/model and info parameters (STR #1035)
- The PNG loading code did not use a "long unsigned integer" format
  specifier for the width and height (STR #1032)
- The web interface only showed the first 4 or 8 characters of
  "{variable-name}" for undefined template variables (STR #1031)
- The hpgltops filter did not handle a common PCL command to enter
  HP-GL/2 mode (STR #1037)
- The scheduler no longer sends the page-set option when printing banner
  pages (STR #995)
- The hpgltops filter contained two buffer overflows that could
  potentially allow remote access to the "lp" account (STR #1024)
- The lppasswd command did not protect against file descriptor or ulimit
  attacks (STR #1023)
- The "lpc status" command used the wrong resource path when querying
  the list of printers and jobs, causing unnecessary authentication
  requests (STR #1018)
- The httpWait() function did not handle signal interruptions (STR #1020)
- The USB backend used the wrong size status variable when checking the
  printer status (STR #1017)
- The scheduler did not delete classes from other classes or implicit
  classes, which could cause a crash (STR #1015)
- The IPP backend now logs the remote print job ID at log level NOTICE
  instead of INFO (so it shows up in the error_log file...)
2005-01-06 07:26:39 +00:00

146 lines
4.5 KiB
Makefile

# $NetBSD: Makefile,v 1.86 2005/01/06 07:26:39 jlam 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-${VERS}
BASE_VERS= 1.1.23
DIST_VERS= ${BASE_VERS}
VERS= ${DIST_VERS:S/-/./g}
CATEGORIES= print
MASTER_SITES= http://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
ftp://ftp2.easysw.com/pub/cups/${BASE_VERS}/ \
ftp://ftp3.easysw.com/pub/cups/${BASE_VERS}/ \
ftp://ftp.ntua.gr/pub/gnu/cups/${BASE_VERS}/ \
ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/${BASE_VERS}/ \
ftp://ftp.mpg.goe.ni.schule.de/pub/internet/printing/cups/${BASE_VERS}/ \
ftp://ftp.fisek.com.tr/pub/cups/${BASE_VERS}/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= jlam@NetBSD.org
HOMEPAGE= http://www.cups.org/
COMMENT= Common UNIX Printing System
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_BUILDLINK3= yes
USE_PKGINSTALL= yes
USE_PKGLOCALEDIR= yes
USE_GNU_TOOLS+= make
USE_LIBTOOL= yes
INSTALL_TARGET= installcups
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
CONFIGURE_ARGS+= --with-rcdir=${RCD_SCRIPTS_DIR}
CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER}
CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP}
CONFIGURE_ARGS+= --with-manext=bsd
CONFIGURE_ARGS+= --enable-libtool
CONFIGURE_ARGS+= --enable-slp
CONFIGURE_ARGS+= --enable-ssl
CONFIGURE_ENV+= DSOFLAGS="${LDFLAGS}"
.include "../../mk/bsd.prefs.mk"
.if defined(USE_PAM)
PKG_DEFAULT_OPTIONS+= PAM
.endif
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
PKG_SUPPORTED_OPTIONS= PAM
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:MPAM)
. include "../../security/PAM/buildlink3.mk"
CONFIGURE_ARGS+= --enable-pam
MESSAGE_SRC= ${PKGDIR}/MESSAGE
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
PLIST_SUBST+= PAM=
.else
CONFIGURE_ARGS+= --disable-pam
MESSAGE_SRC= ${.CURDIR}/MESSAGE
PLIST_SUBST+= PAM="@comment "
.endif
# 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}
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP}
BUILD_DEFS+= CUPS_USER CUPS_GROUP
DOCDIR= ${PREFIX}/share/doc/cups
EGDIR= ${PREFIX}/share/examples/cups
PKG_SYSCONFSUBDIR= cups
CUPS_CONFDIR= ${PKG_SYSCONFDIR}
CUPS_LOGDIR= /var/log/cups
CUPS_REQUESTS= /var/spool/cups
PKG_GROUPS= ${CUPS_GROUP}
PKG_USERS= ${CUPS_USER}:${CUPS_GROUP}::Common\\ UNIX\\ Printing\\ System\\ user::${SH}
SPECIAL_PERMS= ${PREFIX}/bin/lppasswd ${CUPS_USER} ${CUPS_GROUP} 4755
CONF_FILES= ${EGDIR}/client.conf ${CUPS_CONFDIR}/client.conf
CONF_FILES+= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf
SUPPORT_FILES= ${EGDIR}/classes.conf ${CUPS_CONFDIR}/classes.conf
SUPPORT_FILES+= ${EGDIR}/mime.convs ${CUPS_CONFDIR}/mime.convs
SUPPORT_FILES+= ${EGDIR}/mime.types ${CUPS_CONFDIR}/mime.types
SUPPORT_FILES+= ${EGDIR}/printers.conf ${CUPS_CONFDIR}/printers.conf
RCD_SCRIPTS= cupsd
OWN_DIRS= ${CUPS_CONFDIR}
OWN_DIRS+= ${CUPS_CONFDIR}/interfaces
OWN_DIRS+= ${CUPS_CONFDIR}/ppd
OWN_DIRS+= ${CUPS_LOGDIR}
OWN_DIRS_PERMS= ${CUPS_CONFDIR}/certs ${CUPS_USER} ${CUPS_GROUP} 0711
OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${CUPS_USER} ${CUPS_GROUP} 0710
OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${CUPS_USER} ${CUPS_GROUP} 1770
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../net/openslp/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/autoconf.mk"
pre-configure:
cd ${WRKSRC} && ${AUTOCONF}
post-build:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/cups.pam > ${WRKDIR}/cups.pam
post-install:
${INSTALL_DATA_DIR} ${DOCDIR}
for file in CGI.txt ENCRYPTION.txt LICENSE.txt README.txt; do \
${INSTALL_DATA} ${WRKSRC}/$${file} ${DOCDIR}/$${file}; \
done
${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC}/conf; for file in *.conf mime.*; do \
case $${file} in \
pam.conf) \
;; \
*) \
${INSTALL_DATA} $${file} ${EGDIR}/$${file}; \
;; \
esac; \
done
.if !empty(PKG_OPTIONS:MPAM)
${INSTALL_DATA} ${WRKDIR}/cups.pam ${EGDIR}
.endif
.include "../../mk/bsd.pkg.mk"