summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYour Name2021-04-17 21:53:27 +0200
committerYour Name2021-04-17 21:53:27 +0200
commitf1202623e86215d460796f338a216897dc430b5f (patch)
tree768d9568121387a7b219ef9a273347ea19d94f1a
downloadaur-f1202623e86215d460796f338a216897dc430b5f.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2f79f89bd78
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = reboot-guard
+ pkgdesc = Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://github.com/ryran/reboot-guard
+ arch = any
+ license = GPL
+ depends = python
+ depends = systemd
+ provides = rguard
+ source = reboot-guard-1.0.1.tar.gz::https://github.com/ryran/reboot-guard/archive/v1.0.1.tar.gz
+ md5sums = 75e2fcf51057b043163efcc0e35cbfbd
+
+pkgname = reboot-guard
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ed560b062ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Mark Collins <tera_1225 hat hotmail.com>
+
+pkgname=reboot-guard
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Block systemd-initiated poweroff/reboot/halt until configurable condition checks pass"
+arch=('any')
+url="https://github.com/ryran/reboot-guard"
+license=('GPL')
+depends=('python' 'systemd')
+provides=('rguard')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/ryran/$pkgname/archive/v$pkgver.tar.gz")
+md5sums=('75e2fcf51057b043163efcc0e35cbfbd')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ sed -ie 's#/usr/sbin/#/usr/bin/#' rguard.service
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ mkdir -p "${pkgdir}/usr/bin/"
+ install -D rguard "${pkgdir}/usr/bin/"
+ mkdir -p "$pkgdir/etc/systemd/system/"
+ install -D rguard.service "$pkgdir/etc/systemd/system/"
+}