Fix multiple issues with cups
This commit is contained in:
@@ -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: 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
|
||||||
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,37 @@ 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
|
||||||
|
- etc/pam.d/cups
|
||||||
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
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
auth include system-auth
|
||||||
|
account include system-account
|
||||||
|
session include system-session
|
||||||
@@ -1 +1,2 @@
|
|||||||
u lp - "Print Service User" /var/spool/cups /bin/false
|
g lpadmin 209
|
||||||
|
u cups 209 "Cups helper user" /var/spool/cups /bin/false
|
||||||
|
|||||||
@@ -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,8 +33,7 @@ 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
|
|
||||||
|
|
||||||
# Create default cups client config
|
# Create default cups client config
|
||||||
install -d "$BPM_OUTPUT"/etc/cups
|
install -d "$BPM_OUTPUT"/etc/cups
|
||||||
@@ -33,6 +42,9 @@ package_cups() {
|
|||||||
# 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user