From bc97f470c79be251090e91d5c471004b7937a43b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 27 Jul 2023 12:42:51 +0200 Subject: aur: 2.3.2-2 --- .SRCINFO | 2 +- PKGBUILD | 26 +++++++++++++------------- linux-status.install | 10 ++++++---- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index f0f977a..a9a18db 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = linux-status pkgdesc = Simple Linux server monitoring pkgver = 2.3.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/egor-tensin/linux-status install = linux-status.install arch = any diff --git a/PKGBUILD b/PKGBUILD index d40ef7b..a27bb5f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,32 +1,32 @@ # Maintainer: Egor Tensin pkgname=linux-status pkgver=2.3.2 -pkgrel=1 +pkgrel=2 pkgdesc='Simple Linux server monitoring' arch=(any) -url='https://github.com/egor-tensin/linux-status' +url="https://github.com/egor-tensin/$pkgname" license=(MIT) depends=(procps-ng python systemd) -install=linux-status.install +install="$pkgname.install" source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") md5sums=(SKIP) package() { - cd "$srcdir" + cd -- "$srcdir" - install -D -m 0644 -t "$pkgdir/usr/share/doc/linux-status" ../README.Arch + install -D -m 0644 -t "$pkgdir/usr/share/doc/$pkgname" ../README.Arch - cd "$pkgname-$pkgver" + cd -- "$pkgname-$pkgver" - install -D -m 0644 -t "$pkgdir/usr/share/linux-status" LICENSE.txt + install -D -m 0644 -t "$pkgdir/usr/share/$pkgname" LICENSE.txt - install -D -m 0644 -t "$pkgdir/usr/share/doc/linux-status" README.md - install -D -m 0644 -t "$pkgdir/usr/share/doc/linux-status/doc" doc/example.png + install -D -m 0644 -t "$pkgdir/usr/share/doc/$pkgname" README.md + install -D -m 0644 -t "$pkgdir/usr/share/doc/$pkgname/doc" doc/example.png - install -D -m 0755 -t "$pkgdir/srv/linux-status" src/app.py - install -D -m 0755 -t "$pkgdir/srv/linux-status" src/server.py + install -D -m 0755 -t "$pkgdir/srv/$pkgname" src/app.py + install -D -m 0755 -t "$pkgdir/srv/$pkgname" src/server.py - cp -dr --preserve=mode,timestamp html "$pkgdir/srv/linux-status" + cp -dr --preserve=mode,timestamp -- html "$pkgdir/srv/$pkgname" - install -D -m 0644 -t "$pkgdir/usr/lib/systemd/system" dist/systemd/linux-status.service + install -D -m 0644 -t "$pkgdir/usr/lib/systemd/system" "dist/systemd/$pkgname.service" } diff --git a/linux-status.install b/linux-status.install index 32b9a90..7d4e216 100644 --- a/linux-status.install +++ b/linux-status.install @@ -1,12 +1,14 @@ +pkgname=linux-status + post_install() { systemctl --system daemon-reload - systemctl --system enable linux-status - systemctl --system start linux-status + systemctl --system enable "$pkgname.service" + systemctl --system start "$pkgname.service" } pre_remove() { - systemctl --system stop linux-status.service - systemctl --system disable linux-status.service + systemctl --system stop "$pkgname.service" + systemctl --system disable "$pkgname.service" systemctl --system daemon-reload } -- cgit v1.2.3