diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-10-17 13:02:50 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-10-17 13:02:50 -0700 |
commit | e2f29bf270eb966356c744fbcf95eb75c4a2afc4 (patch) | |
tree | 72a1ce4b9f9a003bbb71d84bf68c3985117a62c9 | |
download | cups-openrc-master.tar.xz |
-rw-r--r-- | PKGBUILD | 27 | ||||
-rwxr-xr-x | cupsd.initd | 22 |
2 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d1834ab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net> +# Maintainer (Artix): Rafli Akmal <rafliakmaltejakusuma@gmail.com> +# Contributor (Artix): artoo <artoo@artixlinux.org> +# Contributor (Artix): Oscar Campos <damnwidget@artixlinux.org> + +# # I maintain this because: +# Artix version has avahi as need + +_pkgname=cups +_exname=${_pkgname}d +pkgname=${_pkgname}-openrc +pkgver=20191017 +pkgrel=1 +pkgdesc="OpenRC ${_pkgname} init script" +arch=('any') +url="https://neueland.iserlohn-fortress.net/gitea/jc_gargma" +license=('GPL2') +groups=('openrc-world') +depends=('openrc' "${_pkgname}") +source=( + "${_exname}.initd" + ) +sha256sums=('bfc694216d85f660d427b7217fa1bd869f1e4d80d188cd24763e50a05d7304ae') + +package() { + install -Dm755 ${srcdir}/${_exname}.initd ${pkgdir}/etc/init.d/${_exname} +} diff --git a/cupsd.initd b/cupsd.initd new file mode 100755 index 0000000..b479c83 --- /dev/null +++ b/cupsd.initd @@ -0,0 +1,22 @@ +#!/usr/bin/openrc-run +# Copyright 1999-2017 Gentoo Foundation + +description="The Common Unix Printing System daemon" +command="/usr/bin/cupsd" +command_args="-f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf" +pidfile="/run/cupsd.pid" +start_stop_daemon_args="-b -m --pidfile ${pidfile}" + +depend() { + use net + need dbus + before nfs + after logger +} + +start_pre() { + checkpath -q -d -m 0775 -o root:cups /var/cache/cups + checkpath -q -d -m 0775 -o root:cups /var/cache/cups/rss + checkpath -q -d -m 0755 -o root:cups /run/cups + checkpath -q -d -m 0511 -o daemon:sys /run/cups/certs +} |