blob: 16a823af7201e32fe5866c4a1d2b74220ff06a64 (
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: Michael Clayfield <me@michaelclayfield.com>
# Contributor: Malte Rabenseifner <mail@malte-rabenseifner.de>
pkgname=icingaweb2-module-director
pkgver=1.11.2
pkgrel=1
pkgdesc="Manage Icinga 2 configuration from Icinga Web 2"
license=('GPL')
arch=('any')
depends=('icingaweb2' 'icingaweb2-module-incubator')
url="https://github.com/Icinga/icingaweb2-module-director"
install="icingaweb2-module-director.install"
source=("https://github.com/Icinga/${pkgname}/archive/v${pkgver}.tar.gz"
"$pkgname.sysusers")
sha256sums=('c3fd1170d4a6f8e84d54901eb8e232f35849167f4c483087ae2879698a903ffe'
'311043f4f4da68e5fcf8ad8593475d8287fe2f681e52940b33d41bc681d74cec')
prepare() {
cd "$pkgname-$pkgver"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -dm770 "$pkgdir/etc/icingaweb2/modules/director"
chmod 2770 "$pkgdir/etc/icingaweb2"
mkdir -p "$pkgdir/usr/share/webapps/icingaweb2/modules/director"
cp -r application contrib doc library public schema test \
configuration.php module.info run.php run-missingdeps.php register-hooks.php \
"$pkgdir/usr/share/webapps/icingaweb2/modules/director"
install -Dm644 "$srcdir/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "contrib/systemd/icinga-director.service" "$pkgdir/usr/lib/systemd/system/icinga-director.service"
}
|