Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/icinga2/
Date: Tue, 07 Aug 2018 07:33:35
Message-Id: 1533627197.c19ff92aa303ed61d0a9f006ca006697df67360d.prometheanfire@gentoo
1 commit: c19ff92aa303ed61d0a9f006ca006697df67360d
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 7 07:33:03 2018 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 7 07:33:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c19ff92a
7
8 net-analyzer/icinga2: remove broken version
9
10 Closes: https://bugs.gentoo.org/661852
11 Package-Manager: Portage-2.3.44, Repoman-2.3.10
12
13 net-analyzer/icinga2/Manifest | 1 -
14 net-analyzer/icinga2/icinga2-2.9.0-r1.ebuild | 163 ---------------------------
15 2 files changed, 164 deletions(-)
16
17 diff --git a/net-analyzer/icinga2/Manifest b/net-analyzer/icinga2/Manifest
18 index c2cfc5087fa..81abc5d3d4c 100644
19 --- a/net-analyzer/icinga2/Manifest
20 +++ b/net-analyzer/icinga2/Manifest
21 @@ -1,3 +1,2 @@
22 DIST icinga2-2.8.4.tar.gz 2510333 BLAKE2B f551a5eadc93d8455612af40e34a0922bc75f41b8064f9989c8f0c28dc2c3fb18963cf9b3272efa29f03973e7cf5824762bebff1bfa1a23c4ba39c93fc29c8e5 SHA512 b2cb5989962ac65da927cbdbac1b3345c913321d507b5113f32dd90bf969b2513478e68d52b9cd4cf255057d74428f9e42067288b7ddc59ad060ca7b84f4f114
23 -DIST icinga2-2.9.0.tar.gz 2192684 BLAKE2B b27da06a8b1d70108c792ccbef67a8082b7bb1ec9326ffdcd56406e8bf00e00fa7ef7cbedae803835cc7576bfb1db07cac4e6d1c8338d67e0ff071b821a661ea SHA512 e95f29f9a7e2ba9ad2ca16972fad23a9d18ee0470fbfd70f0bbc8efba9cdcce77d7c5abd2fca98e7b30c64f0014f89f9edd494473769efa6a6e01c08ebdcc1a4
24 DIST icinga2-2.9.1.tar.gz 2193190 BLAKE2B 29be491c4b43e218ef8aaa2128822040ccb0989e91d83f033cf7873216e4307cdbc8ee9052d79fd22220c396efeb68759acc97938e3ee596e0820e3f6c8f73bc SHA512 1d69a24f85249386e30ff1625cf522ba58e5f2ab641dbe950bf1764324a6c7516d1532942954e842002566823b0f30383747d5ec8b7bd36705aa5f0ccfa29533
25
26 diff --git a/net-analyzer/icinga2/icinga2-2.9.0-r1.ebuild b/net-analyzer/icinga2/icinga2-2.9.0-r1.ebuild
27 deleted file mode 100644
28 index 5911a041405..00000000000
29 --- a/net-analyzer/icinga2/icinga2-2.9.0-r1.ebuild
30 +++ /dev/null
31 @@ -1,163 +0,0 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -if [[ ${PV} != 9999 ]]; then
37 - inherit cmake-utils depend.apache eutils systemd toolchain-funcs user wxwidgets
38 - SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
40 -else
41 - inherit cmake-utils depend.apache eutils git-r3 systemd toolchain-funcs user wxwidgets
42 - EGIT_REPO_URI="https://github.com/Icinga/icinga2.git"
43 - EGIT_BRANCH="master"
44 - KEYWORDS=""
45 -fi
46 -
47 -DESCRIPTION="Distributed, general purpose, network monitoring engine"
48 -HOMEPAGE="http://icinga.org/icinga2"
49 -
50 -LICENSE="GPL-2"
51 -SLOT="0"
52 -IUSE="+mysql postgres classicui console libressl lto mail minimal nano-syntax +plugins systemd +vim-syntax"
53 -WX_GTK_VER="3.0"
54 -
55 -CDEPEND="
56 - !libressl? ( dev-libs/openssl:0= )
57 - libressl? ( dev-libs/libressl:0= )
58 - >=dev-libs/boost-1.58-r1
59 - console? ( dev-libs/libedit )
60 - mysql? ( virtual/mysql )
61 - postgres? ( dev-db/postgresql:= )"
62 -
63 -DEPEND="
64 - ${CDEPEND}
65 - sys-devel/bison
66 - >=sys-devel/flex-2.5.35"
67 -
68 -RDEPEND="
69 - ${CDEPEND}
70 - plugins? ( || (
71 - net-analyzer/monitoring-plugins
72 - net-analyzer/nagios-plugins
73 - ) )
74 - mail? ( virtual/mailx )
75 - classicui? ( net-analyzer/icinga[web] )"
76 -
77 -REQUIRED_USE="!minimal? ( || ( mysql postgres ) )"
78 -
79 -want_apache2
80 -
81 -pkg_setup() {
82 - depend.apache_pkg_setup
83 - enewgroup icinga
84 - enewgroup icingacmd
85 - enewgroup nagios # for plugins
86 - enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd,nagios"
87 -}
88 -
89 -src_configure() {
90 - sed -i 's/FLAGS\}\ \-g/FLAGS\}\ \-lpthread\ /g' CMakeLists.txt || die
91 - local mycmakeargs=(
92 - -DICINGA2_UNITY_BUILD=FALSE
93 - -DCMAKE_VERBOSE_MAKEFILE=ON
94 - -DCMAKE_BUILD_TYPE=None
95 - -DCMAKE_INSTALL_PREFIX=/usr
96 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
97 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
98 - -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2
99 - -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins"
100 - -DICINGA2_USER=icinga
101 - -DICINGA2_GROUP=icingacmd
102 - -DICINGA2_COMMAND_GROUP=icingacmd
103 - -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes
104 - -DUSE_SYSTEMD=$(usex systemd ON OFF)
105 - -DLOGROTATE_HAS_SU=ON
106 - )
107 - # default to off if minimal, allow the flags to be set otherwise
108 - if use minimal; then
109 - mycmakeargs+=(
110 - -DICINGA2_WITH_MYSQL=OFF
111 - -DICINGA2_WITH_PGSQL=OFF
112 - )
113 - else
114 - mycmakeargs+=(
115 - -DICINGA2_WITH_PGSQL=$(usex postgres ON OFF)
116 - -DICINGA2_WITH_MYSQL=$(usex mysql ON OFF)
117 - )
118 - fi
119 - # LTO
120 - if use lto; then
121 - mycmakeargs+=(
122 - -DICINGA2_LTO_BUILD=ON
123 - )
124 - else
125 - mycmakeargs+=(
126 - -DICINGA2_LTO_BUILD=OFF
127 - )
128 - fi
129 -
130 - cmake-utils_src_configure
131 -}
132 -
133 -src_install() {
134 - BUILDDIR="${WORKDIR}"/icinga2-${PV}_build
135 - cd "${BUILDDIR}" || die
136 -
137 - emake DESTDIR="${D}" install
138 -
139 - einstalldocs
140 -
141 - newinitd "${FILESDIR}"/icinga2.initd-2 icinga2
142 -
143 - if use mysql ; then
144 - docinto schema
145 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql
146 - docinto schema/upgrade
147 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/*
148 - elif use postgres ; then
149 - docinto schema
150 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql
151 - docinto schema/upgrade
152 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/*
153 - fi
154 -
155 - keepdir /etc/icinga2
156 - keepdir /var/lib/icinga2/api/zones
157 - keepdir /var/lib/icinga2/api/repository
158 - keepdir /var/lib/icinga2/api/log
159 - keepdir /var/spool/icinga2/perfdata
160 -
161 - rm -r "${D}/var/run" || die "failed to remove /var/run"
162 - rm -r "${D}/var/cache" || die "failed to remove /var/cache"
163 -
164 - fowners root:icinga /etc/icinga2
165 - fperms 0750 /etc/icinga2
166 - fowners icinga:icinga /var/lib/icinga2
167 - fowners icinga:icinga /var/spool/icinga2
168 - fowners -R icinga:icingacmd /var/lib/icinga2/api
169 - fowners icinga:icinga /var/spool/icinga2/perfdata
170 - fowners icinga:icingacmd /var/log/icinga2
171 -
172 - fperms ug+rwX,o-rwx /etc/icinga2
173 - fperms ug+rwX,o-rwx /var/lib/icinga2
174 - fperms ug+rwX,o-rwx /var/spool/icinga2
175 - fperms ug+rwX,o-rwx /var/log/icinga2
176 -
177 - if use vim-syntax; then
178 - insinto /usr/share/vim/vimfiles
179 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect
180 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax
181 - fi
182 -
183 - if use nano-syntax; then
184 - insinto /usr/share/nano
185 - doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc
186 - fi
187 -}
188 -
189 -pkg_postinst() {
190 - if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} && ${REPLACING_VERSIONS} != ${PV} ]]; then
191 - elog "DB IDO schema upgrade may be required required.
192 - http://docs.icinga.org/icinga2/snapshot/doc/module/icinga2/chapter/upgrading-icinga-2"
193 - fi
194 -}