1 |
commit: ef36cf23d295cc4940a58943faa039be33656fe2 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 27 21:08:51 2023 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 19:26:37 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef36cf23 |
7 |
|
8 |
net-analyzer/icinga2: drop 2.13.6 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
net-analyzer/icinga2/icinga2-2.13.6.ebuild | 145 ----------------------------- |
13 |
1 file changed, 145 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/icinga2/icinga2-2.13.6.ebuild b/net-analyzer/icinga2/icinga2-2.13.6.ebuild |
16 |
deleted file mode 100644 |
17 |
index b95acf553b6c..000000000000 |
18 |
--- a/net-analyzer/icinga2/icinga2-2.13.6.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,145 +0,0 @@ |
21 |
-# Copyright 1999-2022 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-inherit cmake systemd |
27 |
- |
28 |
-if [[ ${PV} != 9999 ]]; then |
29 |
- SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
30 |
- KEYWORDS="amd64 ~arm64 x86" |
31 |
-else |
32 |
- inherit git-r3 |
33 |
- EGIT_REPO_URI="https://github.com/Icinga/icinga2.git" |
34 |
-fi |
35 |
- |
36 |
-DESCRIPTION="Distributed, general purpose, network monitoring engine" |
37 |
-HOMEPAGE="https://icinga.com/" |
38 |
- |
39 |
-LICENSE="GPL-2" |
40 |
-SLOT="0" |
41 |
-IUSE="console jumbo-build lto mail mariadb minimal +mysql nano-syntax +plugins postgres systemd +vim-syntax" |
42 |
- |
43 |
-# Add accounts to DEPEND because of fowners in src_install |
44 |
-DEPEND=" |
45 |
- dev-libs/openssl:0= |
46 |
- dev-libs/boost:=[context] |
47 |
- console? ( dev-libs/libedit ) |
48 |
- mariadb? ( dev-db/mariadb-connector-c:= ) |
49 |
- mysql? ( dev-db/mysql-connector-c:= ) |
50 |
- postgres? ( dev-db/postgresql:= ) |
51 |
- dev-libs/yajl:= |
52 |
- acct-user/icinga |
53 |
- acct-group/icinga |
54 |
- acct-group/icingacmd" |
55 |
-BDEPEND=" |
56 |
- sys-devel/bison |
57 |
- >=sys-devel/flex-2.5.35" |
58 |
-RDEPEND=" |
59 |
- ${DEPEND} |
60 |
- plugins? ( || ( |
61 |
- net-analyzer/monitoring-plugins |
62 |
- net-analyzer/nagios-plugins |
63 |
- ) ) |
64 |
- mail? ( virtual/mailx ) |
65 |
- acct-group/nagios" |
66 |
- |
67 |
-REQUIRED_USE="!minimal? ( || ( mariadb mysql postgres ) )" |
68 |
- |
69 |
-src_configure() { |
70 |
- local mycmakeargs=( |
71 |
- -DICINGA2_UNITY_BUILD=$(usex jumbo-build) |
72 |
- -DCMAKE_INSTALL_SYSCONFDIR=/etc |
73 |
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var |
74 |
- -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2 |
75 |
- -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins" |
76 |
- -DICINGA2_USER=icinga |
77 |
- -DICINGA2_GROUP=icingacmd |
78 |
- -DICINGA2_COMMAND_GROUP=icingacmd |
79 |
- -DICINGA2_RUNDIR=/run |
80 |
- -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON |
81 |
- -DUSE_SYSTEMD=$(usex systemd) |
82 |
- -DLOGROTATE_HAS_SU=ON |
83 |
- -DICINGA2_LTO_BUILD=$(usex lto) |
84 |
- ) |
85 |
- # default to off if minimal, allow the flags to be set otherwise |
86 |
- if use minimal; then |
87 |
- mycmakeargs+=( |
88 |
- -DICINGA2_WITH_MYSQL=OFF |
89 |
- -DICINGA2_WITH_PGSQL=OFF |
90 |
- ) |
91 |
- else |
92 |
- mycmakeargs+=( |
93 |
- -DICINGA2_WITH_PGSQL=$(usex postgres) |
94 |
- -DICINGA2_WITH_MYSQL=$(usex mysql yes $(usex mariadb)) |
95 |
- ) |
96 |
- fi |
97 |
- |
98 |
- cmake_src_configure |
99 |
-} |
100 |
- |
101 |
-src_install() { |
102 |
- cmake_src_install |
103 |
- |
104 |
- newinitd "${FILESDIR}"/icinga2.initd-3 icinga2 |
105 |
- |
106 |
- if use mysql || use mariadb; then |
107 |
- docinto schema |
108 |
- newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql |
109 |
- docinto schema/upgrade |
110 |
- dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/* |
111 |
- fi |
112 |
- if use postgres; then |
113 |
- docinto schema |
114 |
- newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql |
115 |
- docinto schema/upgrade |
116 |
- dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/* |
117 |
- fi |
118 |
- |
119 |
- keepdir /etc/icinga2 |
120 |
- keepdir /var/lib/icinga2/api/zones |
121 |
- keepdir /var/lib/icinga2/api/repository |
122 |
- keepdir /var/lib/icinga2/api/log |
123 |
- keepdir /var/spool/icinga2/perfdata |
124 |
- |
125 |
- rm -r "${D}/run" || die "failed to remove /run" |
126 |
- rm -r "${D}/var/cache" || die "failed to remove /var/cache" |
127 |
- |
128 |
- fowners -R icinga:icinga /etc/icinga2 |
129 |
- fperms 0750 /etc/icinga2 |
130 |
- fowners icinga:icinga /var/lib/icinga2 |
131 |
- fowners -R icinga:icingacmd /var/lib/icinga2/api |
132 |
- fowners -R icinga:icingacmd /var/lib/icinga2/certificate-requests |
133 |
- fowners -R icinga:icingacmd /var/lib/icinga2/certs |
134 |
- fowners icinga:icinga /var/spool/icinga2 |
135 |
- fowners icinga:icinga /var/spool/icinga2/perfdata |
136 |
- fowners icinga:icingacmd /var/log/icinga2 |
137 |
- |
138 |
- fperms ug+rwX,o-rwx /etc/icinga2 |
139 |
- fperms ug+rwX,o-rwx /var/lib/icinga2 |
140 |
- fperms ug+rwX,o-rwx /var/spool/icinga2 |
141 |
- fperms ug+rwX,o-rwx /var/log/icinga2 |
142 |
- |
143 |
- if use vim-syntax; then |
144 |
- insinto /usr/share/vim/vimfiles |
145 |
- doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect |
146 |
- doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax |
147 |
- fi |
148 |
- |
149 |
- if use nano-syntax; then |
150 |
- insinto /usr/share/nano |
151 |
- doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc |
152 |
- fi |
153 |
-} |
154 |
- |
155 |
-pkg_postinst() { |
156 |
- if [[ "${PV}" != 9999 ]]; then |
157 |
- local v |
158 |
- for v in ${REPLACING_VERSIONS}; do |
159 |
- if ver_test "${PV}" -gt "${v}"; then |
160 |
- elog "DB IDO schema upgrade may be required." |
161 |
- elog "https://www.icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/" |
162 |
- fi |
163 |
- done |
164 |
- fi |
165 |
-} |