[Buildroot] [PATCH v2 4/7] package/cups: Add lp user as default cups user

Angelo Compagnucci angelo at amarulasolutions.com
Fri Jun 19 14:57:16 UTC 2020


This patch is a backport from the rockchip tree.

Author: Jeffy Chen <jeffy.chen at rock-chips.com>
Date:   Tue Nov 13 18:25:34 2018 +0800

    package: cups: Add lp user as default cups user

    Change-Id: Ic7434fe0a7b41b86b5b8b097fa29dd9718e29aa5
    Signed-off-by: Jeffy Chen <jeffy.chen at rock-chips.com>

but fixes the CUPS_USERS table.

Signed-off-by: Angelo Compagnucci <angelo at amarulasolutions.com>
---
 package/cups/cups.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/cups/cups.mk b/package/cups/cups.mk
index 461e0d9143..40fe210c94 100644
--- a/package/cups/cups.mk
+++ b/package/cups/cups.mk
@@ -22,6 +22,9 @@ CUPS_CONF_OPTS = \
 	--disable-gssapi \
 	--disable-pam \
 	--libdir=/usr/lib \
+	--with-cups-user=lp \
+	--with-cups-group=lp \
+	--with-system-groups="lpadmin sys root" \
 	--with-rcdir=no
 CUPS_CONFIG_SCRIPTS = cups-config
 CUPS_DEPENDENCIES = \
@@ -78,4 +81,9 @@ define CUPS_INSTALL_INIT_SYSV
 		$(TARGET_DIR)/etc/init.d/S81cupsd
 endef
 
+define CUPS_USERS
+	lp -1 lp -1 * /var/spool/lpd /bin/false - lp
+	- - lpadmin -1 * - - - Printers admin group.
+endef
+
 $(eval $(autotools-package))
-- 
2.25.1



More information about the buildroot mailing list