Compare commits

..
3 Commits
Author SHA1 Message Date
EnumDev 70e929893d Remove 'lpadmin' group creation from sysusers configuration 2025-12-05 13:42:13 +02:00
EnumDev fb6acb00cb Fix more issues with cups 2025-12-05 13:28:42 +02:00
EnumDev 8757609118 Fix multiple issues with cups 2025-12-05 10:46:01 +02:00
5 changed files with 53 additions and 12 deletions
+20 -6
View File
@@ -1,20 +1,18 @@
name: cups name: cups
description: An open-source printing system description: An open-source printing system
version: 2.4.15 version: 2.4.15
revision: 1 revision: 4
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
type: source type: source
keep:
- etc/cups/client.conf
optional_depends:
- libusb
- xdg-utils
make_depends: make_depends:
- acl - acl
- avahi
- cups-filters
- dbus - dbus
- gnutls - gnutls
- libpaper
- libusb - libusb
- pam - pam
- udev - udev
@@ -25,20 +23,36 @@ downloads:
checksum: eff0bbd48ff1abcbb8e46e28e85aefaffa391a1d9c4d8dc92ab3822a13008d7f checksum: eff0bbd48ff1abcbb8e46e28e85aefaffa391a1d9c4d8dc92ab3822a13008d7f
split_packages: split_packages:
- name: cups - name: cups
keep:
- etc/cups/client.conf
- etc/cups/cupsd.conf
- etc/cups/snmp.conf
- etc/cups/printers.conf
- etc/cups/classes.conf
- etc/cups/cups-files.conf
- etc/cups/subscriptions.conf
depends: depends:
- acl - acl
- avahi
- cups-filters
- dbus - dbus
- gcc-libs - gcc-libs
- glibc - glibc
- gnutls - gnutls
- hicolor-icon-theme - hicolor-icon-theme
- libcups - libcups
- libpaper
- sysusers - sysusers
- pam - pam
- udev - udev
optional_depends:
- cups-browsed
- libusb
- xdg-utils
- name: libcups - name: libcups
description: Library and header files for the CUPS printing system description: Library and header files for the CUPS printing system
depends: depends:
- avahi
- glibc - glibc
- gnutls - gnutls
- zlib - zlib
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Exit if directory does not exist
[ -d /etc/cups ] || exit 0
# Fix ownership of files in /etc/cups
[ `stat -c '%g' /etc/cups` != 209 ] && chown -R 0:209 /etc/cups
# Ensure script exits cleanly
exit 0
+3
View File
@@ -0,0 +1,3 @@
auth include system-auth
account include system-account
session include system-session
+1 -1
View File
@@ -1 +1 @@
u lp - "Print Service User" /var/spool/cups /bin/false u cups 209 "Cups helper user" /var/spool/cups /bin/false
+19 -5
View File
@@ -7,7 +7,17 @@
build() { build() {
sed -i 's#@CUPS_HTMLVIEW@#xdg-open#' desktop/cups.desktop.in sed -i 's#@CUPS_HTMLVIEW@#xdg-open#' desktop/cups.desktop.in
./configure --libdir=/usr/lib --localstatedir=/var --disable-systemd --with-rundir=/run/cups ./configure --libdir=/usr/lib \
--localstatedir=/var \
--with-rundir=/run/cups \
--with-cups-user=209 \
--with-cups-group=209 \
--with-optim="$CFLAGS" \
--with-tls=gnutls \
--enable-pam \
--enable-raw-printing \
--enable-dbus=yes \
--enable-relro
make make
} }
@@ -23,16 +33,20 @@ package_cups() {
rm "$BPM_OUTPUT"/usr/bin/cups-config rm "$BPM_OUTPUT"/usr/bin/cups-config
# Remove SysV files # Remove SysV files
rm -rf "$BPM_OUTPUT"/etc/rd*.d rm -r "$BPM_OUTPUT"/etc/rc.d
rm -rf "$BPM_OUTPUT"/etc/init.d
# Fix unknown directive error
sed -i 's/^IdleExitTimeout/#&/' "$BPM_OUTPUT"/etc/cups/cupsd.conf
# Create default cups client config # Create default cups client config
install -d "$BPM_OUTPUT"/etc/cups echo "ServerName /run/cups/cups.sock" | install -Dm644 -g 209 /dev/stdin "$BPM_OUTPUT"/etc/cups/client.conf
echo "ServerName /run/cups/cups.sock" > "$BPM_OUTPUT"/etc/cups/client.conf
# Install sysusesrs # Install sysusesrs
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
# Install pam configuration file
install -Dm644 "$BPM_WORKDIR"/cups-pam "$BPM_OUTPUT"/etc/pam.d/cups
# Install ESVM service # Install ESVM service
install -Dm644 "$BPM_WORKDIR"/cupsd.esv "$BPM_OUTPUT"/etc/esvm/services/cupsd.esv install -Dm644 "$BPM_WORKDIR"/cupsd.esv "$BPM_OUTPUT"/etc/esvm/services/cupsd.esv