From a8b381e8ef7e69a279a2ea2c3e897cdee43e0ee6 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 10 Jun 2019 15:43:56 -0700 Subject: Initial commit --- PKGBUILD | 28 ++++++++++++++++++++++++++++ watchdog.confd | 1 + watchdog.initd | 13 +++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 PKGBUILD create mode 100644 watchdog.confd create mode 100644 watchdog.initd diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..412ae92 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: jc_gargma + +# # 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 +} -- cgit v1.2.1