diff options
author | Donien | 2023-12-14 21:23:17 +0100 |
---|---|---|
committer | Donien | 2023-12-14 21:35:02 +0100 |
commit | 6aef0501fc2312da655a92a0ecfcb24fca6f5321 (patch) | |
tree | 37be5716444e9e82798a67d386a3bdda7b61f663 | |
download | aur-6aef0501fc2312da655a92a0ecfcb24fca6f5321.tar.gz |
Initial build of 'icingaweb2-module-fileshipper' version 'v1.2.0'
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 51 | ||||
-rw-r--r-- | directories.ini | 8 | ||||
-rw-r--r-- | icingaweb2-module-fileshipper.install | 7 | ||||
-rw-r--r-- | imports.ini | 7 |
6 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c70b7681036c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = icingaweb2-module-fileshipper + pkgdesc = Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director + pkgver = 1.2.0 + pkgrel = 1 + epoch = 0 + url = https://github.com/Icinga/icingaweb2-module-fileshipper + install = icingaweb2-module-fileshipper.install + arch = any + license = GPL + depends = icingaweb2-module-director>=1.1.0 + provides = icingaweb2-module-fileshipper + backup = etc/icingaweb2/modules/fileshipper/imports.ini + backup = etc/icingaweb2/modules/fileshipper/directories.ini + source = https://github.com/Icinga/icingaweb2-module-fileshipper/archive/refs/tags/v1.2.0.tar.gz + source = imports.ini + source = directories.ini + sha256sums = 1a8d59e4dc3164d5fb647a0253d24b35e3dda1f612a323648ca93d1033dbd9a7 + sha256sums = SKIP + sha256sums = SKIP + +pkgname = icingaweb2-module-fileshipper 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..484ca790c85d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Donien <donien.96@hotmail.com> + +pkgname="icingaweb2-module-fileshipper" +pkgver="1.2.0" +pkgrel=1 +epoch=0 +pkgdesc="Provide CSV, JSON, XML and YAML files as an Import Source for the Icinga Director" +arch=("any") +url="https://github.com/Icinga/icingaweb2-module-fileshipper" +license=("GPL") +groups=() +depends=( + "icingaweb2-module-director>=1.1.0" +) +makedepends=() +optdepends=() +provides=("icingaweb2-module-fileshipper") +conflicts=() +replaces=() +backup=( + "etc/icingaweb2/modules/fileshipper/imports.ini" + "etc/icingaweb2/modules/fileshipper/directories.ini" +) +options=() +install="icingaweb2-module-fileshipper.install" +changelog= +source=( + "https://github.com/Icinga/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz" + "imports.ini" + "directories.ini" +) +noextract=() +sha256sums=( + "1a8d59e4dc3164d5fb647a0253d24b35e3dda1f612a323648ca93d1033dbd9a7" + "SKIP" + "SKIP" +) + + + +package() { + install -dm770 "${pkgdir}/etc/icingaweb2/modules/fileshipper" + install -m660 imports.ini "${pkgdir}/etc/icingaweb2/modules/fileshipper/imports.ini" + install -m660 directories.ini "${pkgdir}/etc/icingaweb2/modules/fileshipper/directories.ini" + chmod 2770 "$pkgdir/etc/icingaweb2" + + install -dm755 "${pkgdir}/usr/share/webapps/icingaweb2/modules/fileshipper/" + cp -r "${srcdir}/${pkgname}-${pkgver}/"* "${pkgdir}/usr/share/webapps/icingaweb2/modules/fileshipper/" + + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/icingaweb2-module-fileshipper/LICENSE" +} diff --git a/directories.ini b/directories.ini new file mode 100644 index 000000000000..664e0e5936a4 --- /dev/null +++ b/directories.ini @@ -0,0 +1,8 @@ +;[custom-rules] +;source = /usr/local/src/custom-rules.git +;target = zones.d/director-global/custom-rules +; +;[test] +;source = /tmp/replication-test +;target = zones.d/director-global/having-fun +;extensions = .conf .md diff --git a/icingaweb2-module-fileshipper.install b/icingaweb2-module-fileshipper.install new file mode 100644 index 000000000000..4cef1ed95a08 --- /dev/null +++ b/icingaweb2-module-fileshipper.install @@ -0,0 +1,7 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + /usr/bin/chown -R root:icingaweb2 /etc/icingaweb2/modules +} diff --git a/imports.ini b/imports.ini new file mode 100644 index 000000000000..d7ac070bcd92 --- /dev/null +++ b/imports.ini @@ -0,0 +1,7 @@ +;; Directories must exist. They are ignored otherwise. +; +;[Example directory 1] +;basedir = "/var/cache/various_files/" +; +;[Example directory 2] +;basedir = "/etc/icingaweb2/modules/fileshipper/files/" |