2006-07-05 22:12:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.113 2006/07/05 20:12:06 wiz Exp $
|
2002-10-21 01:33:42 +02:00
|
|
|
#
|
|
|
|
# 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.
|
1999-11-29 03:18:53 +01:00
|
|
|
|
2004-11-08 17:30:59 +01:00
|
|
|
DISTNAME= cups-${DIST_VERS}-source
|
|
|
|
PKGNAME= cups-${VERS}
|
2006-04-19 19:01:34 +02:00
|
|
|
PKGREVISION= 10
|
2005-01-06 08:26:39 +01:00
|
|
|
BASE_VERS= 1.1.23
|
2004-11-08 17:30:59 +01:00
|
|
|
DIST_VERS= ${BASE_VERS}
|
|
|
|
VERS= ${DIST_VERS:S/-/./g}
|
|
|
|
CATEGORIES= print
|
2005-01-06 08:26:39 +01:00
|
|
|
MASTER_SITES= http://ftp.easysw.com/pub/cups/${BASE_VERS}/ \
|
2004-11-08 17:30:59 +01:00
|
|
|
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
|
1999-11-29 03:18:53 +01:00
|
|
|
|
2005-12-17 06:20:21 +01:00
|
|
|
MAINTAINER= jlam@pkgsrc.org
|
2004-11-08 17:30:59 +01:00
|
|
|
HOMEPAGE= http://www.cups.org/
|
|
|
|
COMMENT= Common UNIX Printing System
|
1999-11-29 03:18:53 +01:00
|
|
|
|
2004-11-08 17:30:59 +01:00
|
|
|
CONFLICTS+= LPRng-[0-9]* LPRng-core-[0-9]*
|
2000-12-28 01:09:38 +01:00
|
|
|
|
2004-06-23 13:04:37 +02:00
|
|
|
#PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2004-01-06 08:05:24 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/cups-${BASE_VERS}
|
2003-05-28 04:33:59 +02:00
|
|
|
UNLIMIT_RESOURCES= datasize memorysize
|
2004-02-13 16:42:04 +01:00
|
|
|
USE_LANGUAGES= c c++ # pdftops is a C++ application
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGLOCALEDIR= yes
|
2005-06-01 22:07:59 +02:00
|
|
|
USE_TOOLS+= autoconf gmake
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_LIBTOOL= yes
|
2004-05-17 12:40:45 +02:00
|
|
|
INSTALL_TARGET= installcups
|
2006-07-05 22:12:06 +02:00
|
|
|
# patch-a[jkl] were added for 2.60
|
|
|
|
AUTOCONF_REQD= 2.60
|
2003-05-28 04:33:59 +02:00
|
|
|
|
2003-01-28 23:03:00 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
2005-01-06 08:26:39 +01:00
|
|
|
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/cups
|
2002-12-19 23:24:51 +01:00
|
|
|
CONFIGURE_ARGS+= --with-serverbindir=${PREFIX}/libexec/cups
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-rcdir=${RCD_SCRIPTS_DIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-cups-user=${CUPS_USER:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-cups-group=${CUPS_GROUP:Q}
|
2003-06-04 08:08:43 +02:00
|
|
|
CONFIGURE_ARGS+= --with-manext=bsd
|
2004-05-17 12:40:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libtool
|
2000-12-21 15:59:37 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= DSOFLAGS=${LDFLAGS:M*:Q}
|
2000-12-21 15:59:37 +01:00
|
|
|
|
2000-12-07 21:33:05 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
Update cups to 1.1.7. Changes from version 1.1.6nb3 include bugfixes,
documentation updates, better support of Apache options in configuration
files, and:
- Added support for "double" HostNameLookups.
- Added new "RunAsUser" directive to support non-root configurations on the
standard (privileged) ports.
- Added support for non-root invocation of the lpd backend (does no reserve a
priviledged port, which might not work with some LPD servers...)
- Added new PrintcapFormat directive to control the output format of the
printcap file (BSD or Solaris formats are supported at present.)
- httpConnect() now looks up "localhost" by name and by address (127.0.0.1)
for users that go to the trouble of removing the required localhost entry
in /etc/hosts or on their DNS server...
- The EPSON drivers now send the "end packet mode" command when printing to
USB devices.
- The LPD backend now supports a new "order" option:
"lpd://server/queue?order=control,data" (default) and
"lpd://server/queue?order=data,control".
- New "Classification" directive to force labeling of the current
classification on each page.
- New "page-label" attribute to add per-page labels ("For Official Use Only",
"Draft", etc.)
- Dropped the "file" backend from the device list that is reported, since it
is only available for *testing* and should never be used in a production
environment. The file: device can still be used, but it won't show up in
the list of devices from lpinfo or the web interface.
- Added META variables to the CGI header template to prevent caching of the
results.
- Added two new directives - MaxJobsPerPrinter and MaxJobsPerUser - to allow
an administrator to set the maximum number of pending jobs in a queue or
submitted by a user.
- Added support for the Enable-Printer and Disable-Printer extension
operations (same as CUPS-Accept-Jobs and CUPS-Reject-Jobs.)
- Added support for the DeskJet 900 series duplexer and CRET color modes in
the HP driver.
- Added support for PPD-defined margins in the HP driver.
- Added new cupsGetJobs() and cupsFreeJobs() functions to manage print jobs.
- cupsEncodeOptions() would encode names of 0 length and cupsAddOption() and
cupsParseOptions() would add names of 0 length.
2001-05-15 19:43:20 +02:00
|
|
|
|
2004-07-30 23:05:41 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.cups
|
2006-05-03 17:34:36 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= pam slp
|
|
|
|
PKG_SUGGESTED_OPTIONS= slp
|
2004-07-30 23:05:41 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2005-05-31 13:24:32 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
2005-01-14 06:15:39 +01:00
|
|
|
. include "../../mk/pam.buildlink3.mk"
|
2000-12-12 17:03:13 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-pam
|
2001-11-19 17:23:08 +01:00
|
|
|
MESSAGE_SRC= ${PKGDIR}/MESSAGE
|
|
|
|
MESSAGE_SRC+= ${PKGDIR}/MESSAGE.pam
|
2004-07-30 23:05:41 +02:00
|
|
|
PLIST_SUBST+= PAM=
|
2000-12-12 17:03:13 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pam
|
2001-11-19 17:23:08 +01:00
|
|
|
MESSAGE_SRC= ${.CURDIR}/MESSAGE
|
2004-07-30 23:05:41 +02:00
|
|
|
PLIST_SUBST+= PAM="@comment "
|
2000-12-12 17:03:13 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-03 17:34:36 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mslp)
|
|
|
|
.include "../../net/openslp/buildlink3.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-slp
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-slp
|
|
|
|
.endif
|
|
|
|
|
2000-12-11 09:53:07 +01:00
|
|
|
# CUPS_USER username of the CUPS administrator
|
|
|
|
# CUPS_GROUP group of the CUPS administrator
|
2000-12-07 21:33:05 +01:00
|
|
|
#
|
|
|
|
CUPS_USER?= lp
|
|
|
|
CUPS_GROUP?= sys
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= CUPS_USER=${CUPS_USER:Q}
|
|
|
|
FILES_SUBST+= CUPS_GROUP=${CUPS_GROUP:Q}
|
2000-12-07 21:33:05 +01:00
|
|
|
|
2000-12-09 06:53:39 +01:00
|
|
|
BUILD_DEFS+= CUPS_USER CUPS_GROUP
|
2000-12-09 06:53:06 +01:00
|
|
|
|
2000-12-21 15:59:37 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/cups
|
|
|
|
EGDIR= ${PREFIX}/share/examples/cups
|
2002-01-06 20:41:28 +01:00
|
|
|
PKG_SYSCONFSUBDIR= cups
|
|
|
|
CUPS_CONFDIR= ${PKG_SYSCONFDIR}
|
2001-12-15 00:18:15 +01:00
|
|
|
CUPS_LOGDIR= /var/log/cups
|
|
|
|
CUPS_REQUESTS= /var/spool/cups
|
2000-12-21 15:59:37 +01:00
|
|
|
|
2001-12-15 00:18:15 +01:00
|
|
|
PKG_GROUPS= ${CUPS_GROUP}
|
2006-04-23 02:12:35 +02:00
|
|
|
PKG_USERS= ${CUPS_USER}:${CUPS_GROUP}
|
|
|
|
PKG_GECOS.${CUPS_USER}= Common UNIX Printing System user
|
|
|
|
PKG_SHELL.${CUPS_USER}= ${SH}
|
2001-11-19 17:23:08 +01:00
|
|
|
|
2002-10-20 20:57:37 +02:00
|
|
|
SPECIAL_PERMS= ${PREFIX}/bin/lppasswd ${CUPS_USER} ${CUPS_GROUP} 4755
|
2001-12-15 00:18:15 +01:00
|
|
|
CONF_FILES= ${EGDIR}/client.conf ${CUPS_CONFDIR}/client.conf
|
|
|
|
CONF_FILES+= ${EGDIR}/cupsd.conf ${CUPS_CONFDIR}/cupsd.conf
|
2005-08-19 20:12:36 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/classes.conf ${CUPS_CONFDIR}/classes.conf
|
|
|
|
CONF_FILES+= ${EGDIR}/mime.convs ${CUPS_CONFDIR}/mime.convs
|
|
|
|
CONF_FILES+= ${EGDIR}/mime.types ${CUPS_CONFDIR}/mime.types
|
|
|
|
CONF_FILES+= ${EGDIR}/printers.conf ${CUPS_CONFDIR}/printers.conf
|
2001-12-15 00:18:15 +01:00
|
|
|
RCD_SCRIPTS= cupsd
|
2001-11-19 17:23:08 +01:00
|
|
|
|
2001-12-15 00:18:15 +01:00
|
|
|
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
|
2003-05-28 04:33:59 +02:00
|
|
|
OWN_DIRS_PERMS+= ${CUPS_REQUESTS} ${CUPS_USER} ${CUPS_GROUP} 0710
|
|
|
|
OWN_DIRS_PERMS+= ${CUPS_REQUESTS}/tmp ${CUPS_USER} ${CUPS_GROUP} 1770
|
2001-06-19 10:39:33 +02:00
|
|
|
|
2004-11-30 18:41:52 +01:00
|
|
|
.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
|
|
|
|
|
2002-12-19 23:24:51 +01:00
|
|
|
pre-configure:
|
2005-06-01 22:07:59 +02:00
|
|
|
cd ${WRKSRC} && autoconf
|
2002-12-19 23:24:51 +01:00
|
|
|
|
2006-01-06 01:19:44 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/cups.pam ${WRKDIR}/cups.pam
|
2000-12-07 21:33:05 +01:00
|
|
|
|
1999-11-29 03:18:53 +01:00
|
|
|
post-install:
|
2000-12-21 15:59:37 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
2003-05-28 04:33:59 +02:00
|
|
|
for file in CGI.txt ENCRYPTION.txt LICENSE.txt README.txt; do \
|
2001-01-28 03:05:36 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/$${file} ${DOCDIR}/$${file}; \
|
2000-12-21 15:59:37 +01:00
|
|
|
done
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
2002-10-20 20:57:37 +02:00
|
|
|
cd ${WRKSRC}/conf; for file in *.conf mime.*; do \
|
|
|
|
case $${file} in \
|
|
|
|
pam.conf) \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
${INSTALL_DATA} $${file} ${EGDIR}/$${file}; \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done
|
2005-05-31 13:24:32 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mpam)
|
2000-12-21 15:59:37 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/cups.pam ${EGDIR}
|
2000-12-12 17:03:13 +01:00
|
|
|
.endif
|
1999-11-29 03:18:53 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|