Fix more issues with cups
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
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: 2
|
revision: 3
|
||||||
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
|
||||||
@@ -31,7 +31,6 @@ split_packages:
|
|||||||
- etc/cups/classes.conf
|
- etc/cups/classes.conf
|
||||||
- etc/cups/cups-files.conf
|
- etc/cups/cups-files.conf
|
||||||
- etc/cups/subscriptions.conf
|
- etc/cups/subscriptions.conf
|
||||||
- etc/pam.d/cups
|
|
||||||
depends:
|
depends:
|
||||||
- acl
|
- acl
|
||||||
- avahi
|
- avahi
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -35,9 +35,11 @@ package_cups() {
|
|||||||
# Remove SysV files
|
# Remove SysV files
|
||||||
rm -r "$BPM_OUTPUT"/etc/rc.d
|
rm -r "$BPM_OUTPUT"/etc/rc.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
|
||||||
|
|||||||
Reference in New Issue
Block a user