Fix multiple issues with cups
This commit is contained in:
@@ -7,7 +7,17 @@
|
||||
build() {
|
||||
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
|
||||
}
|
||||
|
||||
@@ -23,8 +33,7 @@ package_cups() {
|
||||
rm "$BPM_OUTPUT"/usr/bin/cups-config
|
||||
|
||||
# Remove SysV files
|
||||
rm -rf "$BPM_OUTPUT"/etc/rd*.d
|
||||
rm -rf "$BPM_OUTPUT"/etc/init.d
|
||||
rm -r "$BPM_OUTPUT"/etc/rc.d
|
||||
|
||||
# Create default cups client config
|
||||
install -d "$BPM_OUTPUT"/etc/cups
|
||||
@@ -33,6 +42,9 @@ package_cups() {
|
||||
# Install sysusesrs
|
||||
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 -Dm644 "$BPM_WORKDIR"/cupsd.esv "$BPM_OUTPUT"/etc/esvm/services/cupsd.esv
|
||||
|
||||
|
||||
Reference in New Issue
Block a user