This commit is contained in:
aliriza committed 2023-03-14 13:38:47 +00:00
1 parent fa18ffcebf
commit cfb42b1f96
3 files changed
+2 -49

No files matched your search

-44
View File
@@ -1,44 +0,0 @@
#!/sbin/openrc-run
name="CUPS"
extra_commands="checkconfig"
extra_started_commands="reload"
description_checkconfig="Test the configuration file"
description_reload="Reload"
: ${cfgfile:="/etc/cups/cupsd.conf"}
command="/usr/sbin/cupsd"
command_args="-f -c $cfgfile"
command_background="yes"
pidfile="/run/cups/$RC_SVCNAME.pid"
depend() {
use net
before nfs
need dbus
after logger
}
checkconfig() {
$command $command_args -t >/dev/null 2>&1 \
|| $command $command_args -t
}
start_pre() {
checkconfig || return 1
checkpath -q -d -m 0775 -o root:lp /var/cache/cups
checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
checkpath -q -d -m 0755 -o root:lp /run/cups
checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs
}
reload() {
ebegin "Reloading $name"
start-stop-daemon --signal HUP --pidfile "$pidfile"
eend $?
}
+1 -1
View File
@@ -1,2 +1,2 @@
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/sbin/nologin
+1 -4
View File
@@ -9,12 +9,10 @@ maintainer='bk'
license=('GPLv3')
source=("https://github.com/OpenPrinting/cups/archive/refs/tags/v$version.tar.gz"
'cups.groups'
'cups.users'
'cups.initd')
'cups.users')
depends=(openssl)
makedepends=()
md5sums=('2dc62207ba89ef43ba376e0066cad138'
'SKIP'
'SKIP'
'SKIP')
group=(net.print)
@@ -35,7 +33,6 @@ build(){
package(){
make install $jobs
mkdir -p "$DESTDIR"/etc/{passwd,group,init}.d
install ../cups.initd "$DESTDIR"/etc/init.d/cupsd
install ../cups.groups "$DESTDIR"/etc/group.d/cups
install ../cups.users "$DESTDIR"/etc/passwd.d/cups
}