ff
This commit is contained in:
1 parent
fa18ffcebf
commit
cfb42b1f96
3 files changed
+2
-49
No files matched your search
@@ -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,2 +1,2 @@
|
|||||||
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
|
lp:x:7:7:lp:/var/spool/lpd:/sbin/nologin
|
||||||
|
|
||||||
@@ -9,12 +9,10 @@ maintainer='bk'
|
|||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
source=("https://github.com/OpenPrinting/cups/archive/refs/tags/v$version.tar.gz"
|
source=("https://github.com/OpenPrinting/cups/archive/refs/tags/v$version.tar.gz"
|
||||||
'cups.groups'
|
'cups.groups'
|
||||||
'cups.users'
|
'cups.users')
|
||||||
'cups.initd')
|
|
||||||
depends=(openssl)
|
depends=(openssl)
|
||||||
makedepends=()
|
makedepends=()
|
||||||
md5sums=('2dc62207ba89ef43ba376e0066cad138'
|
md5sums=('2dc62207ba89ef43ba376e0066cad138'
|
||||||
'SKIP'
|
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'SKIP')
|
'SKIP')
|
||||||
group=(net.print)
|
group=(net.print)
|
||||||
@@ -35,7 +33,6 @@ build(){
|
|||||||
package(){
|
package(){
|
||||||
make install $jobs
|
make install $jobs
|
||||||
mkdir -p "$DESTDIR"/etc/{passwd,group,init}.d
|
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.groups "$DESTDIR"/etc/group.d/cups
|
||||||
install ../cups.users "$DESTDIR"/etc/passwd.d/cups
|
install ../cups.users "$DESTDIR"/etc/passwd.d/cups
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user