1 |
prometheanfire 15/01/29 05:51:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: icinga2-2.2.3-r1.ebuild |
5 |
Removed: icinga2-2.2.3.ebuild |
6 |
Log: |
7 |
removing python from depends and use, as it's not needed in icinga2-2.2 |
8 |
|
9 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA) |
10 |
|
11 |
Revision Changes Path |
12 |
1.22 net-analyzer/icinga2/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.22&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.22&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?r1=1.21&r2=1.22 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v |
21 |
retrieving revision 1.21 |
22 |
retrieving revision 1.22 |
23 |
diff -u -r1.21 -r1.22 |
24 |
--- ChangeLog 13 Jan 2015 04:42:58 -0000 1.21 |
25 |
+++ ChangeLog 29 Jan 2015 05:51:25 -0000 1.22 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-analyzer/icinga2 |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v 1.21 2015/01/13 04:42:58 prometheanfire Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v 1.22 2015/01/29 05:51:25 prometheanfire Exp $ |
31 |
+ |
32 |
+*icinga2-2.2.3-r1 (29 Jan 2015) |
33 |
+ |
34 |
+ 29 Jan 2015; Matthew Thode <prometheanfire@g.o> |
35 |
+ +icinga2-2.2.3-r1.ebuild, -icinga2-2.2.3.ebuild: |
36 |
+ removing python from depends and use, as it's not needed in icinga2-2.2 |
37 |
|
38 |
*icinga2-2.2.3 (13 Jan 2015) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/icinga2/icinga2-2.2.3-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.2.3-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.2.3-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: icinga2-2.2.3-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2015 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/icinga2-2.2.3-r1.ebuild,v 1.1 2015/01/29 05:51:25 prometheanfire Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
inherit depend.apache eutils cmake-utils toolchain-funcs user versionator systemd |
56 |
|
57 |
DESCRIPTION="Distributed, general purpose, network monitoring engine" |
58 |
HOMEPAGE="http://icinga.org/icinga2" |
59 |
#PV=$(replace_version_separator 3 '-') |
60 |
SRC_URI="http://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
61 |
#S="${WORKDIR}/${PN}-${PV}" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~x86" |
66 |
IUSE="+mysql postgres classicui nano-syntax +plugins +vim-syntax" |
67 |
|
68 |
DEPEND="dev-util/cmake |
69 |
dev-libs/openssl |
70 |
>=dev-libs/boost-1.41 |
71 |
sys-devel/bison |
72 |
>=sys-devel/flex-2.5.35 |
73 |
mysql? ( virtual/mysql ) |
74 |
postgres? ( dev-db/postgresql )" |
75 |
|
76 |
RDEPEND="${DEPEND} |
77 |
plugins? ( net-analyzer/nagios-plugins ) |
78 |
classicui? ( net-analyzer/icinga[web] )" |
79 |
|
80 |
REQUIRED_USE="|| ( mysql postgres )" |
81 |
|
82 |
want_apache2 |
83 |
|
84 |
pkg_setup() { |
85 |
enewgroup icinga |
86 |
enewgroup icingacmd |
87 |
enewgroup nagios # for plugins |
88 |
enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd,nagios" |
89 |
} |
90 |
|
91 |
src_prepare() { |
92 |
# epatch "${FILESDIR}/${P}-create_var_cache.patch" |
93 |
epatch_user |
94 |
} |
95 |
|
96 |
src_configure() { |
97 |
local mycmakeargs=( |
98 |
-DCMAKE_VERBOSE_MAKEFILE=ON |
99 |
-DCMAKE_BUILD_TYPE=None |
100 |
-DCMAKE_INSTALL_PREFIX=/usr |
101 |
-DCMAKE_INSTALL_SYSCONFDIR=/etc |
102 |
-DCMAKE_INSTALL_LOCALSTATEDIR=/var |
103 |
-DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2 |
104 |
-DICINGA2_USER=icinga |
105 |
-DICINGA2_GROUP=icingacmd |
106 |
-DICINGA2_COMMAND_USER=icinga |
107 |
-DICINGA2_COMMAND_GROUP=icingacmd |
108 |
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes |
109 |
) |
110 |
if use postgres; then |
111 |
mycmakeargs+=( |
112 |
-DICINGA2_WITH_PGSQL=ON |
113 |
) |
114 |
else |
115 |
mycmakeargs+=( |
116 |
-DICINGA2_WITH_PGSQL=OFF |
117 |
) |
118 |
fi |
119 |
if use mysql; then |
120 |
mycmakeargs+=( |
121 |
-DICINGA2_WITH_MYSQL=ON |
122 |
) |
123 |
else |
124 |
mycmakeargs+=( |
125 |
-DICINGA2_WITH_MYSQL=OFF |
126 |
) |
127 |
fi |
128 |
cmake-utils_src_configure |
129 |
} |
130 |
|
131 |
src_install() { |
132 |
BUILDDIR="${WORKDIR}"/icinga2-${PV}_build |
133 |
cd $BUILDDIR |
134 |
|
135 |
#if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then |
136 |
|
137 |
emake DESTDIR="${D}" install |
138 |
#fi |
139 |
|
140 |
cd "${WORKDIR}"/icinga2-${PV} |
141 |
if ! declare -p DOCS >/dev/null 2>&1 ; then |
142 |
local d |
143 |
for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS \ |
144 |
FAQ CREDITS CHANGELOG ; do |
145 |
[[ -s "${d}" ]] && dodoc "${d}" |
146 |
done |
147 |
elif declare -p DOCS | grep -q "^declare -a " ; then |
148 |
dodoc "${DOCS[@]}" |
149 |
else |
150 |
dodoc ${DOCS} |
151 |
fi |
152 |
|
153 |
newinitd "${FILESDIR}"/icinga2.initd icinga2 |
154 |
newconfd "${FILESDIR}"/icinga2.confd icinga2 |
155 |
|
156 |
if use mysql ; then |
157 |
docinto schema |
158 |
newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql |
159 |
docinto schema/upgrade |
160 |
#newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/upgrade/0.0.11.sql mysql-upgrade-1.12.0.sql |
161 |
elif use postgres ; then |
162 |
docinto schema |
163 |
newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql |
164 |
docinto schema/upgrade |
165 |
#newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/upgrade/0.0.11.sql pgsql-upgrade-1.12.0.sql |
166 |
fi |
167 |
|
168 |
keepdir /etc/icinga2 |
169 |
keepdir /var/lib/icinga2/api/zones |
170 |
keepdir /var/lib/icinga2/api/repository |
171 |
keepdir /var/lib/icinga2/api/log |
172 |
keepdir /var/spool/icinga2/perfdata |
173 |
|
174 |
rm -r "${D}var/run" || die "failed to remove /var/run" |
175 |
rm -r "${D}var/cache" || die "failed to remove /var/cache" |
176 |
|
177 |
fowners icinga:icinga /etc/icinga2 |
178 |
fowners icinga:icinga /var/lib/icinga2 |
179 |
fowners icinga:icinga /var/spool/icinga2 |
180 |
fowners icinga:icingacmd /var/log/icinga2 |
181 |
|
182 |
fperms ug+rwX,o-rwx /etc/icinga2 |
183 |
fperms ug+rwX,o-rwx /var/lib/icinga2 |
184 |
fperms ug+rwX,o-rwx /var/spool/icinga2 |
185 |
fperms ug+rwX,o-rwx /var/log/icinga2 |
186 |
|
187 |
if use vim-syntax; then |
188 |
insinto /usr/share/vim/vimfiles |
189 |
doins -r tools/syntax/vim/ftdetect |
190 |
doins -r tools/syntax/vim/syntax |
191 |
fi |
192 |
|
193 |
if use nano-syntax; then |
194 |
insinto /usr/share/nano |
195 |
doins tools/syntax/nano/icinga2.nanorc |
196 |
fi |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
elog "DB IDO schema upgrade required. http://docs.icinga.org/icinga2/snapshot/chapter-2.html#upgrading-the-mysql-database" |
201 |
elog "You will need to update your configuration files, see https://dev.icinga.org/issues/5909" |
202 |
} |