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