2008-03-06 19:06:01 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cups
|
|
|
|
#
|
|
|
|
################################################################################
|
2012-05-01 08:20:24 +02:00
|
|
|
|
2023-12-30 17:58:08 +01:00
|
|
|
CUPS_VERSION = 2.4.7
|
2016-07-03 12:17:03 +02:00
|
|
|
CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.gz
|
2021-04-21 13:54:42 +02:00
|
|
|
CUPS_SITE = https://github.com/OpenPrinting/cups/releases/download/v$(CUPS_VERSION)
|
2019-09-28 08:56:11 +02:00
|
|
|
CUPS_LICENSE = Apache-2.0 with GPL-2.0/LGPL-2.0 exception
|
|
|
|
CUPS_LICENSE_FILES = LICENSE NOTICE
|
2022-06-25 23:32:53 +02:00
|
|
|
CUPS_CPE_ID_VENDOR = openprinting
|
2021-07-25 17:43:28 +02:00
|
|
|
CUPS_SELINUX_MODULES = cups
|
2012-05-01 08:20:24 +02:00
|
|
|
CUPS_INSTALL_STAGING = YES
|
2016-01-20 23:17:43 +01:00
|
|
|
|
2016-05-29 19:38:23 +02:00
|
|
|
# Using autoconf, not autoheader, so we cannot use AUTORECONF = YES.
|
|
|
|
define CUPS_RUN_AUTOCONF
|
2019-10-25 20:22:43 +02:00
|
|
|
cd $(@D); $(AUTOCONF) -f
|
2016-05-29 19:38:23 +02:00
|
|
|
endef
|
|
|
|
CUPS_PRE_CONFIGURE_HOOKS += CUPS_RUN_AUTOCONF
|
|
|
|
|
2014-12-24 08:54:24 +01:00
|
|
|
CUPS_CONF_OPTS = \
|
2020-03-04 08:21:02 +01:00
|
|
|
--with-docdir=/usr/share/cups/doc-root \
|
2014-12-24 08:54:24 +01:00
|
|
|
--disable-gssapi \
|
2018-04-30 21:19:16 +02:00
|
|
|
--disable-pam \
|
2020-06-24 22:43:43 +02:00
|
|
|
--libdir=/usr/lib \
|
2020-06-24 22:43:45 +02:00
|
|
|
--with-cups-user=lp \
|
|
|
|
--with-cups-group=lp \
|
|
|
|
--with-system-groups="lpadmin sys root" \
|
2022-08-15 01:38:37 +02:00
|
|
|
--disable-libpaper \
|
2020-06-24 22:43:43 +02:00
|
|
|
--without-rcdir
|
2013-02-07 13:35:05 +01:00
|
|
|
CUPS_CONFIG_SCRIPTS = cups-config
|
2014-12-24 08:54:24 +01:00
|
|
|
CUPS_DEPENDENCIES = \
|
2016-05-29 19:38:23 +02:00
|
|
|
host-autoconf \
|
2017-02-14 21:47:59 +01:00
|
|
|
host-pkgconf \
|
2016-01-20 23:17:43 +01:00
|
|
|
$(if $(BR2_PACKAGE_ZLIB),zlib)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
|
|
CUPS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system \
|
package/cups: fix systemd handling
--{dis,en}able-systemd is unrecognized since bump to version 2.4.0 in
commit 07230bfcbc4b3c760a1d96a2595e3557c5e7278b and
https://github.com/OpenPrinting/cups/commit/796bd7cf235b1f738e54ccdcab150ee97827ec23:
configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-systemd, --disable-avahi
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-01-05 18:49:17 +01:00
|
|
|
--with-ondemand=systemd
|
2016-01-20 23:17:43 +01:00
|
|
|
CUPS_DEPENDENCIES += systemd
|
|
|
|
endif
|
2012-05-01 14:13:01 +02:00
|
|
|
|
2008-03-06 19:06:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --enable-dbus
|
|
|
|
CUPS_DEPENDENCIES += dbus
|
2008-03-06 19:06:01 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
CUPS_CONF_OPTS += --disable-dbus
|
2008-03-06 19:06:01 +01:00
|
|
|
endif
|
|
|
|
|
2016-01-20 23:17:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
2024-01-05 14:11:16 +01:00
|
|
|
CUPS_CONF_OPTS += --with-tls=gnutls
|
2016-01-20 23:17:43 +01:00
|
|
|
CUPS_DEPENDENCIES += gnutls
|
2024-01-05 14:11:16 +01:00
|
|
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
CUPS_CONF_OPTS += --with-tls=openssl
|
|
|
|
CUPS_DEPENDENCIES += openssl
|
2016-01-20 23:17:43 +01:00
|
|
|
else
|
2021-12-09 22:40:46 +01:00
|
|
|
CUPS_CONF_OPTS += --with-tls=no
|
2009-01-25 21:53:43 +01:00
|
|
|
endif
|
|
|
|
|
2016-01-20 23:17:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
|
|
CUPS_CONF_OPTS += --enable-libusb
|
|
|
|
CUPS_DEPENDENCIES += libusb
|
2009-05-14 17:03:23 +02:00
|
|
|
else
|
2016-01-20 23:17:43 +01:00
|
|
|
CUPS_CONF_OPTS += --disable-libusb
|
2009-05-14 17:03:23 +02:00
|
|
|
endif
|
|
|
|
|
package/cups: fix avahi handling
--{dis,en}able-avahi is unrecognized since bump to version 2.3.3op2 in
commit 8cf034ab0f686d0a3891b6fe5bb5a2d1bdf381d5 (which switched upstream
location from apple to openprinting):
configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-systemd, --disable-avahi
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-01-05 18:51:07 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_LIBAVAHI_CLIENT),y)
|
2016-01-20 23:17:43 +01:00
|
|
|
CUPS_DEPENDENCIES += avahi
|
package/cups: fix avahi handling
--{dis,en}able-avahi is unrecognized since bump to version 2.3.3op2 in
commit 8cf034ab0f686d0a3891b6fe5bb5a2d1bdf381d5 (which switched upstream
location from apple to openprinting):
configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-systemd, --disable-avahi
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-01-05 18:51:07 +01:00
|
|
|
CUPS_CONF_OPTS += --with-dnssd=avahi
|
2016-01-20 23:17:43 +01:00
|
|
|
else
|
package/cups: fix avahi handling
--{dis,en}able-avahi is unrecognized since bump to version 2.3.3op2 in
commit 8cf034ab0f686d0a3891b6fe5bb5a2d1bdf381d5 (which switched upstream
location from apple to openprinting):
configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-systemd, --disable-avahi
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-01-05 18:51:07 +01:00
|
|
|
CUPS_CONF_OPTS += --with-dnssd=no
|
2016-01-20 23:17:43 +01:00
|
|
|
endif
|
2012-05-01 08:20:24 +02:00
|
|
|
|
2020-06-24 22:43:46 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
define CUPS_INSTALL_UDEV_RULES
|
|
|
|
$(INSTALL) -D -m 0644 package/cups/70-usb-printers.rules \
|
|
|
|
$(TARGET_DIR)/lib/udev/rules.d/70-usb-printers.rules
|
|
|
|
endef
|
|
|
|
|
|
|
|
CUPS_POST_INSTALL_TARGET_HOOKS += CUPS_INSTALL_UDEV_RULES
|
|
|
|
endif
|
|
|
|
|
2020-06-24 22:43:43 +02:00
|
|
|
define CUPS_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/cups/S81cupsd \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S81cupsd
|
|
|
|
endef
|
|
|
|
|
2020-06-24 22:43:45 +02:00
|
|
|
# lp user is needed to run cups spooler
|
|
|
|
# lpadmin group membership grants administrative privileges
|
|
|
|
define CUPS_USERS
|
|
|
|
lp -1 lp -1 * /var/spool/lpd /bin/false - lp
|
|
|
|
- - lpadmin -1 * - - - Printers admin group.
|
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|