summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 894e3740679a786a69466c942c7e82aa2b54cb33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Bailey Kasin <bailey@gingertechnology.net> (https://angrysysadmins.tech)

pkgname=gogios-bin
pkgver=3.0.0
pkgrel=1
pkgdesc="Checks to see if required services are still running on important machines."
arch=('x86_64')
url="https://angrysysadmins.tech"
license=('MIT')
optdepends=(
	'nmap'
	'sqlite'
	'nginx'
	'gogios-plugins'
)
source=("https://github.com/BKasin/gogios/releases/download/${pkgver}/gogios-${pkgver}-${pkgrel}-${arch}.pkg.tar.xz")
options=('!strip' '!emptydirs')
install=${pkgname}.install
noextract=("gogios-${pkgver}-${pkgrel}-${arch}.pkg.tar.xz")
sha256sums=('b7a0f1289ab2f8e5ce47862e68e76ea9978b042894afd82c866d8643aca02314')
provides=('gogios')
conflicts=('gogios')

backup=(etc/gogios/{gogios.toml,checks.json})
NoUpgrade=/etc/gogios/gogios.sample.toml

package() {
    tar -xf gogios-${pkgver}-${pkgrel}-${arch}.pkg.tar.xz -C "${pkgdir}"
    rm "${pkgdir}"/{.MTREE,.PKGINFO,.INSTALL}

    # Permission fix
    find "${pkgdir}" -type d -exec chmod 755 {} +
}