1 |
prometheanfire 14/08/30 23:38:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: icinga2-2.1.0-r2.ebuild |
5 |
Removed: icinga2-2.1.0-r1.ebuild |
6 |
Log: |
7 |
more correcting of deps |
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.8 net-analyzer/icinga2/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.8&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.8&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?r1=1.7&r2=1.8 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v |
21 |
retrieving revision 1.7 |
22 |
retrieving revision 1.8 |
23 |
diff -u -r1.7 -r1.8 |
24 |
--- ChangeLog 30 Aug 2014 21:14:45 -0000 1.7 |
25 |
+++ ChangeLog 30 Aug 2014 23:38:04 -0000 1.8 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-analyzer/icinga2 |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v 1.7 2014/08/30 21:14:45 prometheanfire Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v 1.8 2014/08/30 23:38:04 prometheanfire Exp $ |
31 |
+ |
32 |
+*icinga2-2.1.0-r2 (30 Aug 2014) |
33 |
+ |
34 |
+ 30 Aug 2014; Matthew Thode <prometheanfire@g.o> |
35 |
+ +icinga2-2.1.0-r2.ebuild, -icinga2-2.1.0-r1.ebuild: |
36 |
+ more correcting of deps |
37 |
|
38 |
30 Aug 2014; Matthew Thode <prometheanfire@g.o> metadata.xml: |
39 |
updating manifest |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/icinga2/icinga2-2.1.0-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.1.0-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.1.0-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: icinga2-2.1.0-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 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.1.0-r2.ebuild,v 1.1 2014/08/30 23:38:04 prometheanfire Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
PYTHON_COMPAT=( python2_7 ) |
56 |
inherit depend.apache distutils-r1 eutils cmake-utils toolchain-funcs user versionator systemd |
57 |
|
58 |
DESCRIPTION="Distributed, general purpose, network monitoring engine" |
59 |
HOMEPAGE="http://icinga.org/icinga2" |
60 |
#PV=$(replace_version_separator 3 '-') |
61 |
SRC_URI="http://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
62 |
#S="${WORKDIR}/${PN}-${PV}" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="+mysql postgres classicui +plugins" |
68 |
|
69 |
DEPEND="dev-util/cmake |
70 |
dev-python/setuptools[${PYTHON_USEDEP}] |
71 |
dev-libs/openssl |
72 |
dev-libs/boost |
73 |
sys-devel/bison |
74 |
sys-devel/flex |
75 |
mysql? ( virtual/mysql ) |
76 |
postgres? ( dev-db/postgresql-base )" |
77 |
|
78 |
RDEPEND="${DEPEND} |
79 |
plugins? ( net-analyzer/nagios-plugins ) |
80 |
classicui? ( net-analyzer/icinga[web] )" |
81 |
|
82 |
REQUIRED_USE="|| ( mysql postgres )" |
83 |
|
84 |
want_apache2 |
85 |
|
86 |
pkg_setup() { |
87 |
enewgroup icinga |
88 |
enewgroup icingacmd |
89 |
enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd" |
90 |
} |
91 |
|
92 |
src_configure() { |
93 |
local mycmakeargs=( |
94 |
-DCMAKE_VERBOSE_MAKEFILE=ON |
95 |
-DCMAKE_BUILD_TYPE=None |
96 |
-DCMAKE_INSTALL_PREFIX=/usr |
97 |
-DCMAKE_INSTALL_SYSCONFDIR=/etc |
98 |
-DCMAKE_INSTALL_LOCALSTATEDIR=/var |
99 |
-DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2 |
100 |
-DICINGA2_USER=icinga |
101 |
-DICINGA2_GROUP=icingacmd |
102 |
-DICINGA2_COMMAND_USER=icinga |
103 |
-DICINGA2_COMMAND_GROUP=icingacmd |
104 |
-DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes |
105 |
) |
106 |
cmake-utils_src_configure |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
BUILDDIR="${WORKDIR}"/icinga2-${PV}_build |
111 |
cd $BUILDDIR |
112 |
|
113 |
#if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then |
114 |
|
115 |
emake DESTDIR="${D}" install |
116 |
#fi |
117 |
|
118 |
cd "${WORKDIR}"/icinga2-${PV} |
119 |
if ! declare -p DOCS >/dev/null 2>&1 ; then |
120 |
local d |
121 |
for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS \ |
122 |
FAQ CREDITS CHANGELOG ; do |
123 |
[[ -s "${d}" ]] && dodoc "${d}" |
124 |
done |
125 |
elif declare -p DOCS | grep -q "^declare -a " ; then |
126 |
dodoc "${DOCS[@]}" |
127 |
else |
128 |
dodoc ${DOCS} |
129 |
fi |
130 |
|
131 |
if use mysql ; then |
132 |
docinto schema |
133 |
newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/mysql.sql mysql.sql |
134 |
docinto schema/upgrade |
135 |
#newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/upgrade/0.0.11.sql mysql-upgrade-1.12.0.sql |
136 |
elif use postgres ; then |
137 |
docinto schema |
138 |
newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/pgsql.sql pgsql.sql |
139 |
docinto schema/upgrade |
140 |
#newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/upgrade/0.0.11.sql pgsql-upgrade-1.12.0.sql |
141 |
fi |
142 |
|
143 |
keepdir /etc/icinga2 |
144 |
keepdir /var/lib/icinga |
145 |
keepdir /var/lib/icinga/archives |
146 |
keepdir /var/lib/icinga/rw |
147 |
keepdir /var/lib/icinga/spool/checkresults |
148 |
|
149 |
#remove dirs that shouldn't be installed |
150 |
rm -r "${D}var/run" || die "failed to remove /var/run" |
151 |
rm -r "${D}var/cache" || die "failed to remove /var/cache" |
152 |
|
153 |
fowners icinga:icinga /var/lib/icinga || die "Failed chown of /var/lib/icinga" |
154 |
fowners icinga:icinga /var/lib/icinga2 || die "Failed chown of /var/lib/icinga2" |
155 |
} |
156 |
|
157 |
pkg_postinst() { |
158 |
elog "DB IDO schema upgrade required. http://docs.icinga.org/icinga2/snapshot/chapter-2.html#upgrading-the-mysql-database" |
159 |
elog "You will need to update your configuration files, see https://dev.icinga.org/issues/5909" |
160 |
} |