Fix group issues

This commit is contained in:
2025-12-13 19:44:52 +02:00
parent e00a00dd7d
commit 28bb73792d
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: cups name: cups
description: An open-source printing system description: An open-source printing system
version: 2.4.16 version: 2.4.16
revision: 1 revision: 2
url: https://openprinting.github.io/cups/ url: https://openprinting.github.io/cups/
license: Apache2 with LLVM-exception and BSD-3-Clause and Zlib and BSD-2-Clause license: Apache2 with LLVM-exception and BSD-3-Clause and Zlib and BSD-2-Clause
architecture: any architecture: any
+1
View File
@@ -1 +1,2 @@
u cups 209 "Cups helper user" /var/spool/cups /bin/false u cups 209 "Cups helper user" /var/spool/cups /bin/false
m cups lpadmin
+3 -1
View File
@@ -41,8 +41,10 @@ package_cups() {
# Create default cups client config # Create default cups client config
echo "ServerName /run/cups/cups.sock" | install -Dm644 -g 209 /dev/stdin "$BPM_OUTPUT"/etc/cups/client.conf echo "ServerName /run/cups/cups.sock" | install -Dm644 -g 209 /dev/stdin "$BPM_OUTPUT"/etc/cups/client.conf
# Install sysusesrs # Install sysusesrs and set user and group in config
install -Dm644 "$BPM_WORKDIR"/sysusers "$BPM_OUTPUT"/usr/lib/sysusers.d/cups.conf install -Dm644 "$BPM_WORKDIR"/sysusers "$BPM_OUTPUT"/usr/lib/sysusers.d/cups.conf
sed -i "s/#User 209/User 209/" "$BPM_OUTPUT"/etc/cups/cups-files.conf{,.default}
sed -i "s/#Group 209/Group 209/" "$BPM_OUTPUT"/etc/cups/cups-files.conf{,.default}
# Install pam configuration file # Install pam configuration file
install -Dm644 "$BPM_WORKDIR"/cups-pam "$BPM_OUTPUT"/etc/pam.d/cups install -Dm644 "$BPM_WORKDIR"/cups-pam "$BPM_OUTPUT"/etc/pam.d/cups