summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD42
-rw-r--r--watchdog.logrotate3
2 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..9ed5c81
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+# Maintainer (AUR): Thomas Bächler <thomas@archlinux.org>
+
+# # I maintain this because:
+# AUR version is not configured for OpenRC
+# AUR version uses http
+
+pkgname=watchdog
+pkgver=5.15
+pkgrel=2
+pkgdesc="Watchdog daemon"
+arch=(x86_64)
+url="https://sourceforge.net/projects/watchdog"
+license=('GPL')
+depends=('glibc')
+backup=("etc/${pkgname}.conf")
+source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ ${pkgname}.logrotate)
+sha256sums=('ffdc865137ad5d8e53664bd22bad4de6ca136d1b4636720320cb52af0c18947c'
+ '092648b1a4eef8f8e870a88f014e1adc4c45851bc664e3984eed3ef43b615168')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-pidfile=/run/${pkgname}.pid \
+ --with-ka_pidfile=/run/wd_keepalive.pid \
+ --disable-nfs
+
+ make
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ make install DESTDIR="${pkgdir}"
+ install -D -m644 "${srcdir}"/${pkgname}.logrotate "${pkgdir}"/etc/logrotate.d/${pkgname}
+}
diff --git a/watchdog.logrotate b/watchdog.logrotate
new file mode 100644
index 0000000..060ab56
--- /dev/null
+++ b/watchdog.logrotate
@@ -0,0 +1,3 @@
+/var/log/watchdog/* {
+ missingok
+}