Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/icinga2: icinga2-2.1.0-r1.ebuild ChangeLog icinga2-2.1.0.ebuild
Date: Sat, 30 Aug 2014 21:13:58
Message-Id: 20140830211354.A583E447E@oystercatcher.gentoo.org
1 prometheanfire 14/08/30 21:13:54
2
3 Modified: ChangeLog
4 Added: icinga2-2.1.0-r1.ebuild
5 Removed: icinga2-2.1.0.ebuild
6 Log:
7 fixing python dep
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.6 net-analyzer/icinga2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.6&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.6&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?r1=1.5&r2=1.6
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v
21 retrieving revision 1.5
22 retrieving revision 1.6
23 diff -u -r1.5 -r1.6
24 --- ChangeLog 30 Aug 2014 01:16:59 -0000 1.5
25 +++ ChangeLog 30 Aug 2014 21:13:54 -0000 1.6
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.5 2014/08/30 01:16:59 prometheanfire Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v 1.6 2014/08/30 21:13:54 prometheanfire Exp $
31 +
32 +*icinga2-2.1.0-r1 (30 Aug 2014)
33 +
34 + 30 Aug 2014; Matthew Thode <prometheanfire@g.o>
35 + +icinga2-2.1.0-r1.ebuild, -icinga2-2.1.0.ebuild:
36 + fixing python dep
37
38 *icinga2-2.1.0 (30 Aug 2014)
39
40
41
42
43 1.1 net-analyzer/icinga2/icinga2-2.1.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.1.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.1.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: icinga2-2.1.0-r1.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-r1.ebuild,v 1.1 2014/08/30 21:13:54 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 +plugins"
67
68 DEPEND="dev-util/cmake
69 dev-lang/python:2.7
70 dev-libs/openssl
71 dev-libs/boost
72 sys-devel/bison
73 sys-devel/flex
74 mysql? ( virtual/mysql )
75 postgres? ( dev-db/postgresql-base )"
76
77 RDEPEND="${DEPEND}
78 plugins? ( net-analyzer/nagios-plugins )
79 classicui? ( net-analyzer/icinga[web] )"
80
81 REQUIRED_USE="|| ( mysql postgres )"
82
83 want_apache2
84
85 pkg_setup() {
86 enewgroup icinga
87 enewgroup icingacmd
88 enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd"
89 }
90
91 src_configure() {
92 local mycmakeargs=(
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_USER=icinga
100 -DICINGA2_GROUP=icingacmd
101 -DICINGA2_COMMAND_USER=icinga
102 -DICINGA2_COMMAND_GROUP=icingacmd
103 -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes
104 )
105 cmake-utils_src_configure
106 }
107
108 src_install() {
109 BUILDDIR="${WORKDIR}"/icinga2-${PV}_build
110 cd $BUILDDIR
111
112 #if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then
113
114 emake DESTDIR="${D}" install
115 #fi
116
117 cd "${WORKDIR}"/icinga2-${PV}
118 if ! declare -p DOCS >/dev/null 2>&1 ; then
119 local d
120 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS \
121 FAQ CREDITS CHANGELOG ; do
122 [[ -s "${d}" ]] && dodoc "${d}"
123 done
124 elif declare -p DOCS | grep -q "^declare -a " ; then
125 dodoc "${DOCS[@]}"
126 else
127 dodoc ${DOCS}
128 fi
129
130 if use mysql ; then
131 docinto schema
132 newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/mysql.sql mysql.sql
133 docinto schema/upgrade
134 #newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/upgrade/0.0.11.sql mysql-upgrade-1.12.0.sql
135 elif use postgres ; then
136 docinto schema
137 newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/pgsql.sql pgsql.sql
138 docinto schema/upgrade
139 #newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/upgrade/0.0.11.sql pgsql-upgrade-1.12.0.sql
140 fi
141
142 keepdir /etc/icinga2
143 keepdir /var/lib/icinga
144 keepdir /var/lib/icinga/archives
145 keepdir /var/lib/icinga/rw
146 keepdir /var/lib/icinga/spool/checkresults
147
148 #remove dirs that shouldn't be installed
149 rm -r "${D}var/run" || die "failed to remove /var/run"
150 rm -r "${D}var/cache" || die "failed to remove /var/cache"
151
152 fowners icinga:icinga /var/lib/icinga || die "Failed chown of /var/lib/icinga"
153 fowners icinga:icinga /var/lib/icinga2 || die "Failed chown of /var/lib/icinga2"
154 }
155
156 pkg_postinst() {
157 elog "DB IDO schema upgrade required. http://docs.icinga.org/icinga2/snapshot/chapter-2.html#upgrading-the-mysql-database"
158 elog "You will need to update your configuration files, see https://dev.icinga.org/issues/5909"
159 }