summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fb7de67487b5abb8b7b2701473149d749457f6c (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Donien <donien.96@hotmail.com>

pkgname="icingaweb2-module-map"
_module_name="map"
pkgver="2.0.0"
pkgrel=1
epoch=0
pkgdesc="An openstreetmap based map module for host and service state visualization with Icinga Web 2"
arch=("any")
url="https://github.com/nbuchwitz/icingaweb2-module-map"
license=("GPL-2.0-only")
groups=()
depends=(
    "icingaweb2"
)
makedepends=()
optdepends=(
    "icingadb-web"
    "icingaweb2-module-mapdatatype"
)
provides=()
conflicts=()
replaces=()
backup=(
    "etc/icingaweb2/modules/map/config.ini"
)
options=()
install=""
changelog="map.changelog"
source=(
    "https://github.com/nbuchwitz/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz"
    "config.ini"
)
noextract=()
sha256sums=(
    "d939beb81b4f27c4a80ca1cf7dab76d4d1acf0b79b41bfea55f8872263af121e"
    "SKIP"
)



package() {
    install -dm2770 "${pkgdir}/etc/icingaweb2"
    install -dm2770 "${pkgdir}/etc/icingaweb2/modules/${_module_name}"
    for config in config.ini
    do
        install -m660 "${config}" "${pkgdir}/etc/icingaweb2/modules/${_module_name}/${config}"
    done

    install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

    install -dm755 "${pkgdir}/usr/share/webapps/icingaweb2/modules/${_module_name}/"
    for part in \
        application \
        configuration.php \
        library \
        module.info \
        public \
        run.php
    do
        cp -r "${srcdir}/${pkgname}-${pkgver}/${part}" "${pkgdir}/usr/share/webapps/icingaweb2/modules/${_module_name}/"
    done
}