summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3dbb1af0263ccc55019ca3fdfc8a17825d6a307d (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
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Foppe HEMMINGA <foppe@foppe.org>
# Contributer: Guten Ye

pkgname=icinga-web
pkgver=1.13.0
pkgrel=1
pkgdesc="Icinga New Web Interface."
license=('GPL')
arch=('i686' 'x86_64')
depends=('php-pear' 'php-xsl' 'php-ldap')
optdepends=('icinga' 'icinga2')
url="http://www.icinga.org"
source=("https://github.com/Icinga/icinga-web/releases/download/v$pkgver/icinga-web-${pkgver}.tar.gz"
	"nginx.example.conf")

build() {
  cd "$srcdir/$pkgname-$pkgver"

	./configure  \
		--prefix=/usr/share/icinga-web \
		--with-web-user=http \
		--with-web-group=http \
		--with-web-apache-path=/etc/httpd/conf/extra \
		--with-db-socket=/run/mysqld/mysqld.sock \
		--with-conf-dir=/etc/icinga-web \
		--with-log-dir=/var/log/icinga \
		--with-cache-dir=/var/cache/icinga-web \
		--with-icinga-bin=/usr/bin \
		--with-icinga-cfg=/etc/icinga \
		--with-icinga-objects-dir=/etc/icinga/objects \
		--with-api-cmd-file=/var/spool/icinga/rw/icinga.cmd \
		--with-enable-sla
}

package() {
	cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install

 	install -Dm644 etc/apache2/icinga-web.conf "$pkgdir/etc/icinga-web/apache.example.conf"
	install -Dm644 ../nginx.example.conf "$pkgdir/etc/icinga-web/nginx.example.conf"

	mkdir -p "$pkgdir/usr/share/webapps"
	ln -s /usr/share/icinga-web/lib "$pkgdir/usr/share/icinga-web/pub/js"
	ln -s /usr/share/icinga-web/pub "$pkgdir/usr/share/webapps/icinga-web"
}

md5sums=('0a63ae3c2c1d7cdd5f1362373f696578' 
         'b8f56703a0a6a8b05b9fae070d407ce7')