diff options
Diffstat (limited to 'nonsystemd/sane-openrc')
-rw-r--r-- | nonsystemd/sane-openrc/PKGBUILD | 23 | ||||
-rw-r--r-- | nonsystemd/sane-openrc/saned.confd | 2 | ||||
-rw-r--r-- | nonsystemd/sane-openrc/saned.initd | 13 |
3 files changed, 38 insertions, 0 deletions
diff --git a/nonsystemd/sane-openrc/PKGBUILD b/nonsystemd/sane-openrc/PKGBUILD new file mode 100644 index 000000000..9c8f9838e --- /dev/null +++ b/nonsystemd/sane-openrc/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: David P. <megver83@parabola.nu> +# Maintainer (Artix): artoo <artoo@artixlinux.org> + +pkgname=sane-openrc +pkgver=20210506 +pkgrel=1 +pkgdesc="OpenRC sane init script" +arch=('any') +url="https://gitea.artixlinux.org/artixlinux/packages-openrc" +license=('GPL2') +groups=('openrc-world') +provides=('init-sane') +conflicts=('init-sane') +backup=('etc/conf.d/saned') +source=("saned".{confd,initd}) +sha256sums=('197e44ba1f438a18f5f7d9f5858feb19c1ece4286d82a5e63caf9be5b964aa76' + '5a3f1c09991ebab593eb6d2075bb6461029f98ec1794aa832d0ee9f234d7e437') + +package() { + depends=('openrc' 'sane') + install -Dm755 "$srcdir"/saned.initd "$pkgdir"/etc/init.d/saned + install -Dm644 "$srcdir"/saned.confd "$pkgdir"/etc/conf.d/saned +} diff --git a/nonsystemd/sane-openrc/saned.confd b/nonsystemd/sane-openrc/saned.confd new file mode 100644 index 000000000..adb1eab2c --- /dev/null +++ b/nonsystemd/sane-openrc/saned.confd @@ -0,0 +1,2 @@ +# The user saned should drop its privileges to after startup +#SANED_USER="" diff --git a/nonsystemd/sane-openrc/saned.initd b/nonsystemd/sane-openrc/saned.initd new file mode 100644 index 000000000..f7be87f3e --- /dev/null +++ b/nonsystemd/sane-openrc/saned.initd @@ -0,0 +1,13 @@ +#!/usr/bin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +supervisor="supervise-daemon" +pidfile="/run/saned.pid" +command="/usr/bin/saned" +# command_args="-a ${SANED_USER:-root}" +command_args="${SANED_USER:-root}" + +start_pre() { + checkpath -d -o ${SANED_USER:-root} ${pidfile%/*} +} |