diff options
author | Donien | 2024-05-08 20:46:52 +0200 |
---|---|---|
committer | Donien | 2024-05-08 22:08:27 +0200 |
commit | 64633715ab2382bfd37b879eb523aa58d63d0048 (patch) | |
tree | 5385a3305fcf85efaa2bdf9c99c1633f0487519c | |
download | aur-icingaweb2-module-map.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 63 | ||||
-rw-r--r-- | config.ini | 14 | ||||
-rw-r--r-- | map.changelog | 4 |
5 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..113fa335dc0b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = icingaweb2-module-map + pkgdesc = An openstreetmap based map module for host and service state visualization with Icinga Web 2 + pkgver = 2.0.0 + pkgrel = 1 + epoch = 0 + url = https://github.com/nbuchwitz/icingaweb2-module-map + changelog = map.changelog + arch = any + license = GPL-2.0-only + depends = icingaweb2 + optdepends = icingadb-web + optdepends = icingaweb2-module-mapdatatype + backup = etc/icingaweb2/modules/map/config.ini + source = https://github.com/nbuchwitz/icingaweb2-module-map/archive/refs/tags/v2.0.0.tar.gz + source = config.ini + sha256sums = d939beb81b4f27c4a80ca1cf7dab76d4d1acf0b79b41bfea55f8872263af121e + sha256sums = SKIP + +pkgname = icingaweb2-module-map diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..33662f5545b8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3fb7de67487b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} diff --git a/config.ini b/config.ini new file mode 100644 index 000000000000..87861bb6f7d5 --- /dev/null +++ b/config.ini @@ -0,0 +1,14 @@ +;[map] +;default_zoom = "6" +;stateType = "soft" +;cluster_problem_count = "0" +;popup_mouseover = "0" +;default_lat = "52.520645" +;default_long = "13.409779" +;max_zoom = "19" +;max_native_zoom = "19" +;min_zoom = "2" +;tile_url = "" +;opencage_apikey = "" +;dashlet_height = "300" +;disable_cluster_at_zoom = "" diff --git a/map.changelog b/map.changelog new file mode 100644 index 000000000000..4b9568bd30e7 --- /dev/null +++ b/map.changelog @@ -0,0 +1,4 @@ +2024-05-08 + - Initial package build + - Upstream release: Version 2.0.0 + https://github.com/nbuchwitz/icingaweb2-module-map/releases/tag/v2.0.0 |