summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5945f63244d8527f20b3588b2556730a12180846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Tyler Langlois <ty |at| tjll |dot| net>
# Contributor: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
# shellcheck disable=2034
# shellcheck disable=2148

pkgname=ganglia-web
pkgver=3.7.4
pkgrel=1
pkgdesc="Web front-end to Ganglia (see ganglia package)"
arch=('any')
url="https://github.com/ganglia/ganglia-web"
license=('BSD')
depends=('ganglia')
options=('!libtool' '!strip')
backup=(usr/share/webapps/ganglia/conf_default.php)
install='ganglia-web.install'
source=("$pkgname-$pkgver.tar.gz::https://github.com/ganglia/ganglia-web/archive/$pkgver.tar.gz"
        'ganglia-web.install')
sha256sums=('18cac5fd232dbd18cce91a8b107cf0ec254f710797ff56017e0c8f9f7ea26825'
            'b2d01098ffc3998143cbd4cc996f3ce572604b6c29f5c97e917f6de8986131da')

package() {
  # shellcheck disable=2154
  cd "$srcdir"/$pkgname-$pkgver || exit 1

  # shellcheck disable=2154
  make \
    DESTDIR="$pkgdir" \
    APACHE_USER=http \
    GDESTDIR=/usr/share/webapps/ganglia \
    GMETAD_ROOTDIR=/var/lib/ganglia \
    GWEB_STATEDIR=/var/lib/ganglia \
    install

  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}