diff options
author | desbma | 2023-10-16 22:36:29 +0200 |
---|---|---|
committer | desbma | 2023-10-16 22:36:29 +0200 |
commit | 7b874edea4505508d2332e2e340ea2f4cf401c74 (patch) | |
tree | 79e4dcf3fdde28c02d0aec6bed2d2ad660efa336 | |
download | aur-7b874edea4505508d2332e2e340ea2f4cf401c74.tar.gz |
Initial upload: sysstat-mail-report-git r73.039c137-1
sysstat-mail-report-git
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 41 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d240cc0cf094 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = sysstat-mail-report-git + pkgdesc = Send periodic email reports with graphs plotted from sysstat data + pkgver = r73.039c137 + pkgrel = 1 + url = https://github.com/desbma/sysstat_mail_report + arch = any + license = LGPL + makedepends = git + depends = gnuplot + depends = python + depends = smtp-forwarder + depends = sysstat + optdepends = scour: for lossless SVG crunching + optdepends = optipng: for lossless PNG crunching + optdepends = oxipng: for lossless PNG crunching + backup = etc/conf.d/sysstat-mail-report + source = git+https://github.com/desbma/sysstat_mail_report + sha512sums = SKIP + +pkgname = sysstat-mail-report-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6ccdd2a75d80 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/*.pkg.tar.* +/sysstat_mail_report/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0392c4923afd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: desbma +# shellcheck disable=SC2034,SC2148,SC2154,SC2164 +pkgname=sysstat-mail-report-git +_pkgname=sysstat-mail-report +pkgver=r73.039c137 +pkgrel=1 +pkgdesc='Send periodic email reports with graphs plotted from sysstat data' +arch=('any') +_gitname='sysstat_mail_report' +url="https://github.com/desbma/${_gitname}" +license=('LGPL') +depends=('gnuplot' 'python' 'smtp-forwarder' 'sysstat') +optdepends=('scour: for lossless SVG crunching' + 'optipng: for lossless PNG crunching' + 'oxipng: for lossless PNG crunching') +makedepends=('git') +backup=("etc/conf.d/${_pkgname}") +source=("git+https://github.com/desbma/${_gitname}") +sha512sums=('SKIP') + +prepare() { + cd "${srcdir}/${_gitname}" + sed -i "s@/etc/conf.d/sysstat-report@/etc/conf.d/${_pkgname}@w /dev/stdout" systemd/sysstat-report@.service + sed -i "s@/usr/local/bin/sysstat_report.py@/usr/bin/${_pkgname}@w /dev/stdout" systemd/sysstat-report@.service +} + +pkgver() { + cd "${srcdir}/${_gitname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "${srcdir}/${_gitname}" + + install -Dm 755 sysstat_report.py "${pkgdir}/usr/bin/${_pkgname}" + + install -Dm 644 systemd/sysstat-report.conf "${pkgdir}/etc/conf.d/${_pkgname}" + + install -Dm 644 systemd/sysstat-report@.service "${pkgdir}/usr/lib/systemd/system/${_pkgname}@.service" + install -Dm 644 systemd/sysstat-report@.timer "${pkgdir}/usr/lib/systemd/system/${_pkgname}@.timer" +} |