added uptime-kuma files

This commit is contained in:
Kevin Muñoz 2023-11-22 21:32:48 -05:00
parent b5e5aa4e75
commit b84d42026c
No known key found for this signature in database
GPG Key ID: 3CA0B9DF1BE7CE09
4 changed files with 66 additions and 1 deletions

18
uptime-kuma/.SRCINFO Normal file
View File

@ -0,0 +1,18 @@
pkgbase = uptime-kuma
pkgdesc = A fancy self-hosted monitoring tool
pkgver = 1.23.6
pkgrel = 1
url = https://github.com/louislam/uptime-kuma
arch = any
license = MIT
makedepends = npm
depends = nodejs
noextract = uptime-kuma-1.23.6.tar.gz
source = uptime-kuma-1.23.6.tar.gz::https://github.com/louislam/uptime-kuma/archive/refs/tags/1.23.6.tar.gz
source = uptime-kuma-dist-1.23.6.tar.gz::https://github.com/louislam/uptime-kuma/releases/download/1.23.6/dist.tar.gz
source = uptime-kuma.service
b2sums = 4ec8eda4c400d831cf9f28a88d26d9d87140519f55dac7ca530bc48b8fb52a7f81c9d3144d267b03ebd02f5d26f6397714ce6833c1b5328b16b22f76956e2e53
b2sums = 596c3808c65a66a5ae72c8ef9554f6e55c946b43bce92ea4ce0a3106e9bfc207235d1e118dc25ed79c2a61ed1b86b1ba51c4aba7f7fc97a91c90184b6673e33c
b2sums = dbeac93f20082847cffc991224df2ac85963a03a02898b06b8444d4f33b2f4a51323bdcd2c940df41d1c8beed1e2b75fa449cff7d80dd9d5213f627bbe409f90
pkgname = uptime-kuma

31
uptime-kuma/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
# Maintainer: bgh <aur at bgh dot io>
# Contributor: Sylvain Durand <arch@durand.tf>
pkgname=uptime-kuma
pkgver=1.23.6
pkgrel=1
pkgdesc='A fancy self-hosted monitoring tool'
arch=('any')
url="https://github.com/louislam/${pkgname}"
license=('MIT')
depends=('nodejs')
makedepends=('npm')
source=(
"${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
"${pkgname}-dist-${pkgver}.tar.gz::${url}/releases/download/${pkgver}/dist.tar.gz"
"uptime-kuma.service"
)
noextract=("${pkgname}-${pkgver}.tar.gz")
b2sums=('4ec8eda4c400d831cf9f28a88d26d9d87140519f55dac7ca530bc48b8fb52a7f81c9d3144d267b03ebd02f5d26f6397714ce6833c1b5328b16b22f76956e2e53'
'596c3808c65a66a5ae72c8ef9554f6e55c946b43bce92ea4ce0a3106e9bfc207235d1e118dc25ed79c2a61ed1b86b1ba51c4aba7f7fc97a91c90184b6673e33c'
'dbeac93f20082847cffc991224df2ac85963a03a02898b06b8444d4f33b2f4a51323bdcd2c940df41d1c8beed1e2b75fa449cff7d80dd9d5213f627bbe409f90')
package() {
npm install --global --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tar.gz --cache npm-cache
cp --recursive "$srcdir"/dist "$pkgdir"/usr/lib/node_modules/$pkgname/
install -D -m 644 "${srcdir}/uptime-kuma.service" ${pkgdir}/usr/lib/systemd/system/uptime-kuma.service
}

View File

@ -0,0 +1,13 @@
[Unit]
Description=Uptime-Kuma - A free and open source uptime monitoring solution
Documentation=https://github.com/louislam/uptime-kuma
After=network.target
[Service]
Type=simple
WorkingDirectory=/usr/lib/node_modules/uptime-kuma/
ExecStart=/usr/bin/node server/server.js
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -35,7 +35,10 @@ depends=(
optdepends=(
'lsb-release'
);
validpgpkeys=('9E646BB0630C8FD18ACD15541B93E6A766CD229D')
validpgpkeys=(
'9E646BB0630C8FD18ACD15541B93E6A766CD229D'
'0DCFCA5547B19D2A6099506096B3EE5F29111145'
)
source=("https://packages.wazuh.com/4.x/yum/${pkgname}-${_prodver}.x86_64.rpm")