summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-06-10 15:43:56 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-06-10 15:43:56 -0700
commita8b381e8ef7e69a279a2ea2c3e897cdee43e0ee6 (patch)
tree4baa14e17ed6f243f980da275862b8cc016c2841
downloadwatchdog-openrc-a8b381e8ef7e69a279a2ea2c3e897cdee43e0ee6.tar.xz
Initial commitHEADmaster
-rw-r--r--PKGBUILD28
-rw-r--r--watchdog.confd1
-rw-r--r--watchdog.initd13
3 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..412ae92
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+
+# # I maintain this because:
+# Artix lacks this package entirely
+
+_pkgname=watchdog
+pkgname=${_pkgname}-openrc
+pkgver=20190610
+pkgrel=1
+pkgdesc="OpenRC ${_pkgname} init script"
+arch=('any')
+url="https://neueland.iserlohn-fortress.net/gitea/jc_gargma"
+license=('GPL2')
+depends=('openrc' "${_pkgname}")
+backup=(
+ "etc/conf.d/${_pkgname}"
+ )
+source=(
+ "${_pkgname}.initd"
+ "${_pkgname}.confd"
+ )
+sha256sums=('b3982dd58aefa2c15de4f6d3a3c6d8a8f54e227b803411b83167829561739813'
+ 'da9afa0ba594953f632de8fb00e0d6c541e592bee1f107bd15760b59839b74c3')
+
+package() {
+ install -Dm755 ${srcdir}/${_pkgname}.initd ${pkgdir}/etc/init.d/${_pkgname}
+ install -Dm644 ${srcdir}/${_pkgname}.confd ${pkgdir}/etc/conf.d/${_pkgname}
+}
diff --git a/watchdog.confd b/watchdog.confd
new file mode 100644
index 0000000..75c01a2
--- /dev/null
+++ b/watchdog.confd
@@ -0,0 +1 @@
+WATCHDOG_OPTS=""
diff --git a/watchdog.initd b/watchdog.initd
new file mode 100644
index 0000000..0965e5e
--- /dev/null
+++ b/watchdog.initd
@@ -0,0 +1,13 @@
+#!/usr/bin/openrc-run
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/bin/watchdog"
+command_args="${WATCHDOG_OPTS}"
+pidfile="/run/${RC_SVCNAME}.pid"
+start_stop_daemon_args="--background --make-pidfile"
+
+depend() {
+ need localmount
+ after bootmisc
+}