summaryrefslogtreecommitdiff
path: root/nonsystemd/rsync-openrc
diff options
context:
space:
mode:
Diffstat (limited to 'nonsystemd/rsync-openrc')
-rw-r--r--nonsystemd/rsync-openrc/PKGBUILD23
-rw-r--r--nonsystemd/rsync-openrc/rsyncd.confd5
-rw-r--r--nonsystemd/rsync-openrc/rsyncd.initd13
3 files changed, 41 insertions, 0 deletions
diff --git a/nonsystemd/rsync-openrc/PKGBUILD b/nonsystemd/rsync-openrc/PKGBUILD
new file mode 100644
index 000000000..0472e36ae
--- /dev/null
+++ b/nonsystemd/rsync-openrc/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Maintainer (Artix): artoo <artoo@artixlinux.org>
+
+pkgname=rsync-openrc
+pkgver=20210502
+pkgrel=1
+pkgdesc="OpenRC rsync init script"
+arch=('any')
+url="https://gitea.artixlinux.org/packages-openrc"
+license=('GPL2')
+groups=('openrc-world')
+provides=('init-rsync')
+conflicts=('init-rsync')
+backup=('etc/conf.d/rsyncd')
+source=("rsyncd".{confd,initd})
+sha256sums=('de758791b16b89a648c01867af7f51bc9bd44e40cbe868e439b753ff5d9572e5'
+ '2570e13ed4e88d8f4526a6e33b1f8fa07c655a86012b09607247609951c9161c')
+
+package() {
+ depends=('openrc' 'rsync')
+ install -Dm755 "$srcdir"/rsyncd.initd "$pkgdir"/etc/init.d/rsyncd
+ install -Dm644 "$srcdir"/rsyncd.confd "$pkgdir"/etc/conf.d/rsyncd
+}
diff --git a/nonsystemd/rsync-openrc/rsyncd.confd b/nonsystemd/rsync-openrc/rsyncd.confd
new file mode 100644
index 000000000..c3d897ed2
--- /dev/null
+++ b/nonsystemd/rsync-openrc/rsyncd.confd
@@ -0,0 +1,5 @@
+# /etc/conf.d/rsyncd: config file for /etc/init.d/rsyncd
+
+# see man pages for rsync or run `rsync --help`
+# for valid cmdline options
+#RSYNC_OPTS=""
diff --git a/nonsystemd/rsync-openrc/rsyncd.initd b/nonsystemd/rsync-openrc/rsyncd.initd
new file mode 100644
index 000000000..0b1218e08
--- /dev/null
+++ b/nonsystemd/rsync-openrc/rsyncd.initd
@@ -0,0 +1,13 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+supervisor="supervise-daemon"
+command="/usr/bin/rsync"
+command_args="${RSYNCD_OPTS}"
+command_args_foreground="--daemon --no-detach"
+command_args_background="-p ${pidfile}"
+
+depend() {
+ use net
+}