24 Eylül Güncellemeleri

This commit is contained in:
cakarsu committed 2023-09-24 16:19:17 +03:00
1 parent 541fc91131
commit 3bcb5a8a97
26 files changed
+312 -101

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
#!/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 $?
}
+11 -7
View File
@@ -1,20 +1,22 @@
#!/usr/bin/env bash
name='cups'
release='1'
version='2.4.2'
release='2'
version='2.4.7'
url='https://github.com/OpenPrinting/cups'
description='The Common Unix Printing System '
email='bk@gmail.com'
maintainer='bk'
license=('GPLv3')
source=("https://github.com/OpenPrinting/cups/archive/refs/tags/v$version.tar.gz"
source=("https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"
'cups.groups'
'cups.users')
'cups.users'
'cupsd.initd')
depends=(openssl)
makedepends=()
md5sums=('2dc62207ba89ef43ba376e0066cad138'
md5sums=('e0a5ddbf53dfad41da26fc1ef60b2256'
'SKIP'
'SKIP')
'SKIP'
'SKIP')
group=(net.print)
uses=()
arch=('x86_64')
@@ -46,7 +48,8 @@ setup(){
--enable-libpaper \
--enable-ssl=yes \
--enable-gnutls \
--disable-launchd
--disable-launchd \
--disable-systemd
}
build(){
@@ -58,5 +61,6 @@ package(){
mkdir -p "$DESTDIR"/etc/{passwd,group,init}.d
install ../cups.groups "$DESTDIR"/etc/group.d/cups
install ../cups.users "$DESTDIR"/etc/passwd.d/cups
install ../cupsd.initd "$DESTDIR"/etc/init.d/cupsd
}