diff --git a/munin-template-munstrap-git/.SRCINFO b/munin-template-munstrap-git/.SRCINFO new file mode 100644 index 0000000..872d0de --- /dev/null +++ b/munin-template-munstrap-git/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = munin-template-munstrap-git + pkgdesc = Bootstrap based template for munin-html + pkgver = r25.c3431051 + pkgrel = 1 + epoch = 1 + url = https://github.com/munin-monitoring/contrib/tree/master/templates/munstrap + arch = any + license = GPL2 + makedepends = git + source = munin-template-munstrap::git+https://github.com/munin-monitoring/contrib.git + md5sums = SKIP + +pkgname = munin-template-munstrap-git + diff --git a/munin-template-munstrap-git/.gitignore b/munin-template-munstrap-git/.gitignore new file mode 100644 index 0000000..f71c635 --- /dev/null +++ b/munin-template-munstrap-git/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/munin-template-munstrap-git/PKGBUILD b/munin-template-munstrap-git/PKGBUILD new file mode 100644 index 0000000..0d49b1f --- /dev/null +++ b/munin-template-munstrap-git/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Bert Peters +pkgname=munin-template-munstrap-git +pkgver=r25.c3431051 +# Changed versioning scheme to prevent rebuilds +# Thanks to eschwarz for recommending +epoch=1 +pkgrel=1 +pkgdesc="Bootstrap based template for munin-html" +arch=('any') +url="https://github.com/munin-monitoring/contrib/tree/master/templates/munstrap" +license=('GPL2') +makedepends=('git') +source=("${pkgname%-git}::git+https://github.com/munin-monitoring/contrib.git") +md5sums=('SKIP') + +pkgver() { + local subdir="templates/munstrap" + cd "$srcdir/${pkgname%-git}" + # Git, no tags available + printf "r%s.%s" "$(git rev-list --count HEAD "$subdir")" "$(git log -n 1 --pretty=format:%h -- "$subdir")" +} + +package() { + local destdir="$pkgdir/usr/share/munin/templates/munstrap" + cd "$srcdir/${pkgname%-git}" + install -d "$destdir" + cp -r templates/munstrap/{templates,static} "$destdir" +}