mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -4,28 +4,28 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CUPS_VERSION = 2.2.11
|
||||
CUPS_VERSION = 2.3.3
|
||||
CUPS_SOURCE = cups-$(CUPS_VERSION)-source.tar.gz
|
||||
CUPS_SITE = https://github.com/apple/cups/releases/download/v$(CUPS_VERSION)
|
||||
CUPS_LICENSE = GPL-2.0, LGPL-2.0
|
||||
CUPS_LICENSE_FILES = LICENSE.txt
|
||||
CUPS_LICENSE = Apache-2.0 with GPL-2.0/LGPL-2.0 exception
|
||||
CUPS_LICENSE_FILES = LICENSE NOTICE
|
||||
CUPS_INSTALL_STAGING = YES
|
||||
CUPS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) DSTROOT=$(STAGING_DIR) install
|
||||
CUPS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) DSTROOT=$(TARGET_DIR) install
|
||||
|
||||
# Using autoconf, not autoheader, so we cannot use AUTORECONF = YES.
|
||||
define CUPS_RUN_AUTOCONF
|
||||
cd $(@D); $(HOST_DIR)/bin/autoconf -f
|
||||
cd $(@D); $(AUTOCONF) -f
|
||||
endef
|
||||
CUPS_PRE_CONFIGURE_HOOKS += CUPS_RUN_AUTOCONF
|
||||
|
||||
CUPS_CONF_OPTS = \
|
||||
--without-perl \
|
||||
--without-java \
|
||||
--without-php \
|
||||
--with-docdir=/usr/share/cups/doc-root \
|
||||
--disable-gssapi \
|
||||
--disable-pam \
|
||||
--libdir=/usr/lib
|
||||
--libdir=/usr/lib \
|
||||
--with-cups-user=lp \
|
||||
--with-cups-group=lp \
|
||||
--with-system-groups="lpadmin sys root" \
|
||||
--without-rcdir
|
||||
CUPS_CONFIG_SCRIPTS = cups-config
|
||||
CUPS_DEPENDENCIES = \
|
||||
host-autoconf \
|
||||
@@ -54,13 +54,6 @@ else
|
||||
CUPS_CONF_OPTS += --disable-gnutls
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
CUPS_CONF_OPTS += --with-python
|
||||
CUPS_DEPENDENCIES += python
|
||||
else
|
||||
CUPS_CONF_OPTS += --without-python
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
||||
CUPS_CONF_OPTS += --enable-libusb
|
||||
CUPS_DEPENDENCIES += libusb
|
||||
@@ -82,4 +75,25 @@ else
|
||||
CUPS_CONF_OPTS += --disable-avahi
|
||||
endif
|
||||
|
||||
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
|
||||
|
||||
define CUPS_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/cups/S81cupsd \
|
||||
$(TARGET_DIR)/etc/init.d/S81cupsd
|
||||
endef
|
||||
|
||||
# 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
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user