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