diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-02-27 19:34:00 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-02-27 19:34:00 +0300 |
commit | 4f86bd9992f294dd1b27e00a4fdf67fdf2e4dbc5 (patch) | |
tree | 6e588ddde0dbd0f6dcdf74d1b469f11b2d0669d7 /dist | |
parent | dist: add the sudoers.d file (diff) | |
download | linux-status-4f86bd9992f294dd1b27e00a4fdf67fdf2e4dbc5.tar.gz linux-status-4f86bd9992f294dd1b27e00a4fdf67fdf2e4dbc5.zip |
dist: add Pacman's PKGBUILD
Diffstat (limited to 'dist')
-rw-r--r-- | dist/pacman/PKGBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dist/pacman/PKGBUILD b/dist/pacman/PKGBUILD new file mode 100644 index 0000000..f216c93 --- /dev/null +++ b/dist/pacman/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Egor Tensin <Egor.Tensin@gmail.com> +pkgname=linux-status +pkgver=0.0.1 +pkgrel=1 +pkgdesc='Simple Linux status web page' +arch=(any) +url='https://github.com/egor-tensin/linux-status' +license=(MIT) +depends=(python systemd) +source=("$pkgname-$pkgver.tar.gz::$url/archive/master.tar.gz") +md5sums=(SKIP) + +package() { + cd "$srcdir/$pkgname-master" + + install -D -m 0644 -t "$pkgdir/usr/share/linux-status" 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/img" img/example.png + + install -D -m 0644 -t "$pkgdir/srv/linux-status" index.html + install -D -m 0644 -t "$pkgdir/srv/linux-status/css" css/bootstrap.min.css + install -D -m 0644 -t "$pkgdir/srv/linux-status/js" js/bootstrap.bundle.min.js + install -D -m 0644 -t "$pkgdir/srv/linux-status/js" js/jquery-3.3.1.min.js + while IFS= read -d '' -r file; do + install -D -m 0755 -t "$pkgdir/srv/linux-status/cgi-bin" "$file" + done < <( find cgi-bin -type f -print0 ) + + install -D -m 0644 -t "$pkgdir/usr/lib/systemd/system" dist/systemd/linux-status.service + + install -D -m 0440 -t "$pkgdir/etc/sudoers.d" dist/sudoers.d/linux-status +} |