summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8e5123f1587
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = gogios-plugins
+ pkgdesc = Plugins for the gogios service checking system.
+ pkgver = 2.2.r0.gd84975e
+ pkgrel = 1
+ url = https://github.com/bkasin/gogios-plugins
+ arch = x86_64
+ license = MIT
+ makedepends = go
+ makedepends = make
+ optdepends = nmap
+ optdepends = gogios
+ provides = gogios-plugins
+ conflicts = gogios-plugins-bin
+ source = gogios-plugins::git+https://github.com/bkasin/gogios-plugins.git#branch=master
+ sha256sums = SKIP
+
+pkgname = gogios-plugins
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..69ec734e9bf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Bailey Kasin <bailey@gingertechnology.net> (https://angrysysadmins.tech)
+
+pkgname=gogios-plugins
+pkgver=2.2.r0.gd84975e
+pkgrel=1
+pkgdesc="Plugins for the gogios service checking system."
+arch=('x86_64')
+url="https://github.com/bkasin/gogios-plugins"
+license=('MIT')
+
+makedepends=('go' 'make')
+optdepends=('nmap' 'gogios')
+
+source=("$pkgname::git+https://github.com/bkasin/gogios-plugins.git#branch=master")
+sha256sums=('SKIP')
+
+provides=("$pkgname")
+conflicts=("$pkgname-bin")
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make build
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir" install
+}