commit:     054fcbd12a115dc36b047d8426a83820d65bfa98
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 28 21:21:00 2021 +0000
Commit:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Tue Dec 28 21:25:22 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=054fcbd1

www-apps/icingaweb2-module-director: 1.8.1 bump

Bug: https://bugs.gentoo.org/802276
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>

 www-apps/icingaweb2-module-director/Manifest       |  1 +
 .../icingaweb2-module-director-1.8.1.ebuild        | 47 ++++++++++++++++++++++
 .../icingaweb2-module-director-9999.ebuild         | 31 +++++++++-----
 3 files changed, 70 insertions(+), 9 deletions(-)

diff --git a/www-apps/icingaweb2-module-director/Manifest 
b/www-apps/icingaweb2-module-director/Manifest
index 2231e10fbdd1..1b6a70ca56c3 100644
--- a/www-apps/icingaweb2-module-director/Manifest
+++ b/www-apps/icingaweb2-module-director/Manifest
@@ -1 +1,2 @@
 DIST icingaweb2-module-director-1.8.0.tar.gz 3042572 BLAKE2B 
e29ac535c8975f79abfa086ce54e2b78e3f1a992858ec83e902c5e8e72a447f7436a1a9876c1b7237a14d08c54dec12069e9c57231b23c4fd203be3f6f2635b8
 SHA512 
e33cc49c8255aa3693f73693d874ca5e00a9d95fe3d737c457473d8c5b37f36faf44bbc7f608ba03be79d5a6fd032e5ffd8fbc824eda1831422f837040b0c400
+DIST icingaweb2-module-director-1.8.1.tar.gz 3045604 BLAKE2B 
b94d870f23f6267250ed1b2165e0960e7a2f6df1b7545a7c22697af1fbc6ec0f0a7d04e92a410c33450613e95fca1c3dbb9db6f974d30a528856a60169a31bf2
 SHA512 
89fe35061deecd212576b6363289daa433c9664b95221c74a684a88e07ebd36d3b55b4a767f6caefeadb3679c5aa0787b1129f08b6d0fd698e5a2d5b17a3a2d1

diff --git 
a/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.8.1.ebuild 
b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.8.1.ebuild
new file mode 100644
index 000000000000..0d9d32306e89
--- /dev/null
+++ 
b/www-apps/icingaweb2-module-director/icingaweb2-module-director-1.8.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Icinga Web 2 plugin for configuration"
+HOMEPAGE="https://dev.icinga.org/projects/icingaweb2-module-director/";
+inherit systemd
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-director.git";
+else
+       KEYWORDS="~amd64 ~x86"
+       MY_PN="icingaweb2-module-director"
+       SRC_URI="https://codeload.github.com/Icinga/${MY_PN}/tar.gz/v${PV} -> 
${P}.tar.gz"
+       S="${WORKDIR}/${MY_PN}-${PV}"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+DEPEND=">=net-analyzer/icinga2-2.6.0
+       >=www-apps/icingaweb2-2.6.0
+       || (
+               dev-lang/php:7.3[curl,iconv,pcntl,posix,sockets]
+               dev-lang/php:7.4[curl,iconv,pcntl,posix,sockets]
+               dev-lang/php:8.0[curl,iconv,pcntl,posix,sockets]
+       )
+       acct-group/icingaweb2
+       acct-user/icingadirector"
+RDEPEND="${DEPEND}"
+
+src_install() {
+       insinto "/usr/share/icingaweb2/modules/director/"
+       doins -r "${S}"/*
+       keepdir /var/lib/${PN}
+       fowners icingadirector:icingaweb2 /var/lib/${PN}
+       fperms 0750 /var/lib/${PN}
+       sed -e "s|/usr/bin/icingacli|/usr/share/icingaweb2/bin/icingacli|g" \
+               contrib/systemd/icinga-director.service > 
"${T}/icinga-director.service" \
+               || die "failed to patch icinga-director.service"
+       systemd_dounit "${T}/icinga-director.service"
+}
+
+pkg_postinst() {
+       elog "Enable and start the icinga-director.service systemd service."
+}

diff --git 
a/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild 
b/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild
index eab3c4caccb8..0d9d32306e89 100644
--- a/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild
+++ b/www-apps/icingaweb2-module-director/icingaweb2-module-director-9999.ebuild
@@ -1,10 +1,11 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
 
 DESCRIPTION="Icinga Web 2 plugin for configuration"
 HOMEPAGE="https://dev.icinga.org/projects/icingaweb2-module-director/";
+inherit systemd
 if [[ "${PV}" == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/Icinga/icingaweb2-module-director.git";
@@ -18,17 +19,29 @@ fi
 LICENSE="GPL-2"
 SLOT="0"
 
-DEPEND=">=net-analyzer/icinga2-2.4.3
-       >=www-apps/icingaweb2-2.2.0
+DEPEND=">=net-analyzer/icinga2-2.6.0
+       >=www-apps/icingaweb2-2.6.0
        || (
-               dev-lang/php:5.6[curl]
-               dev-lang/php:7.1[curl]
-               dev-lang/php:7.2[curl]
-               dev-lang/php:7.3[curl]
-       )"
+               dev-lang/php:7.3[curl,iconv,pcntl,posix,sockets]
+               dev-lang/php:7.4[curl,iconv,pcntl,posix,sockets]
+               dev-lang/php:8.0[curl,iconv,pcntl,posix,sockets]
+       )
+       acct-group/icingaweb2
+       acct-user/icingadirector"
 RDEPEND="${DEPEND}"
 
 src_install() {
        insinto "/usr/share/icingaweb2/modules/director/"
        doins -r "${S}"/*
+       keepdir /var/lib/${PN}
+       fowners icingadirector:icingaweb2 /var/lib/${PN}
+       fperms 0750 /var/lib/${PN}
+       sed -e "s|/usr/bin/icingacli|/usr/share/icingaweb2/bin/icingacli|g" \
+               contrib/systemd/icinga-director.service > 
"${T}/icinga-director.service" \
+               || die "failed to patch icinga-director.service"
+       systemd_dounit "${T}/icinga-director.service"
+}
+
+pkg_postinst() {
+       elog "Enable and start the icinga-director.service systemd service."
 }

Reply via email to