Compare commits

..
11 Commits
Author SHA1 Message Date
EnumDev 35427ce743 Rebuild package 2026-07-10 19:15:50 +03:00
EnumDev bdaa2c48df Switch to new package format 2026-06-13 19:59:02 +03:00
EnumDev b4a9d921be Update package version to 2.4.19 2026-05-02 18:24:40 +03:00
EnumDev 0aae3a30cc Update package version to 2.4.18 2026-04-26 16:17:15 +03:00
EnumDev 1606d4d912 Update package version to 2.4.17 2026-04-20 12:19:10 +03:00
EnumDev e78793ff67 Update .gitignore 2026-02-24 12:44:23 +02:00
EnumDev 28bb73792d Fix group issues 2025-12-13 19:44:52 +02:00
EnumDev e00a00dd7d Update package version to 2.4.16 2025-12-05 16:57:47 +02:00
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
6 changed files with 65 additions and 16 deletions
+3
View File
@@ -0,0 +1,3 @@
# Ignore BPM archives and signatures
*.bpm
*.bpm.sig
+24 -8
View File
@@ -1,20 +1,20 @@
name: cups
description: An open-source printing system
version: 2.4.15
revision: 1
version: 2.4.19
revision: 3
url: https://openprinting.github.io/cups/
license: Apache2 with LLVM-exception and BSD-3-Clause and Zlib and BSD-2-Clause
maintainers:
- [email protected]
architecture: any
type: source
keep:
- etc/cups/client.conf
optional_depends:
- libusb
- xdg-utils
make_depends:
- acl
- avahi
- cups-filters
- dbus
- gnutls
- libpaper
- libusb
- pam
- udev
@@ -22,23 +22,39 @@ downloads:
- url: https://github.com/OpenPrinting/cups/releases/download/v${BPM_PKG_VERSION}/cups-${BPM_PKG_VERSION}-source.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: eff0bbd48ff1abcbb8e46e28e85aefaffa391a1d9c4d8dc92ab3822a13008d7f
checksum: 820984b12a67f98705785aae2dd1347fe0ac097828001d4583ff64574aed6389
split_packages:
- 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:
- acl
- avahi
- cups-filters
- dbus
- gcc-libs
- glibc
- gnutls
- hicolor-icon-theme
- libcups
- libpaper
- sysusers
- pam
- udev
optional_depends:
- cups-browsed
- libusb
- xdg-utils
- name: libcups
description: Library and header files for the CUPS printing system
depends:
- avahi
- glibc
- gnutls
- 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
+23 -7
View File
@@ -1,4 +1,4 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
@@ -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,15 +33,21 @@ 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
# Fix unknown directive error
sed -i 's/^IdleExitTimeout/#&/' "$BPM_OUTPUT"/etc/cups/cupsd.conf
# Create default cups client config
install -d "$BPM_OUTPUT"/etc/cups
echo "ServerName /run/cups/cups.sock" > "$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
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 -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
+3
View File
@@ -0,0 +1,3 @@
auth include system-auth
account include system-account
session include system-session
+2 -1
View File
@@ -1 +1,2 @@
u lp - "Print Service User" /var/spool/cups /bin/false
u cups 209 "Cups helper user" /var/spool/cups /bin/false
m cups lpadmin