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.ebuild ChangeLog icinga2-2.0.1.ebuild
Date: Sat, 30 Aug 2014 01:17:05
Message-Id: 20140830011659.F38424372@oystercatcher.gentoo.org
1 prometheanfire 14/08/30 01:16:59
2
3 Modified: ChangeLog
4 Added: icinga2-2.1.0.ebuild
5 Removed: icinga2-2.0.1.ebuild
6 Log:
7 bup
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.5 net-analyzer/icinga2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.5&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?rev=1.5&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/ChangeLog?r1=1.4&r2=1.5
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v
21 retrieving revision 1.4
22 retrieving revision 1.5
23 diff -u -r1.4 -r1.5
24 --- ChangeLog 22 Aug 2014 05:27:00 -0000 1.4
25 +++ ChangeLog 30 Aug 2014 01:16:59 -0000 1.5
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.4 2014/08/22 05:27:00 prometheanfire Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/icinga2/ChangeLog,v 1.5 2014/08/30 01:16:59 prometheanfire Exp $
31 +
32 +*icinga2-2.1.0 (30 Aug 2014)
33 +
34 + 30 Aug 2014; Matthew Thode <prometheanfire@g.o> +icinga2-2.1.0.ebuild,
35 + -icinga2-2.0.1.ebuild:
36 + bup
37
38 *icinga2-2.0.2 (22 Aug 2014)
39
40
41
42
43 1.1 net-analyzer/icinga2/icinga2-2.1.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.1.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/icinga2/icinga2-2.1.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: icinga2-2.1.0.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.ebuild,v 1.1 2014/08/30 01:16:59 prometheanfire Exp $
53
54 EAPI=5
55 inherit depend.apache eutils cmake-utils toolchain-funcs user versionator systemd
56
57 DESCRIPTION="Nagios Fork - Check daemon, CGIs, docs, IDOutils. Reloaded"
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-libs/openssl
70 dev-libs/boost
71 sys-devel/bison
72 sys-devel/flex
73 mysql? ( virtual/mysql )
74 postgres? ( dev-db/postgresql-base )"
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 enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd"
88 }
89
90 src_configure() {
91 local mycmakeargs=(
92 -DCMAKE_VERBOSE_MAKEFILE=ON
93 -DCMAKE_BUILD_TYPE=None
94 -DCMAKE_INSTALL_PREFIX=/usr
95 -DCMAKE_INSTALL_SYSCONFDIR=/etc
96 -DCMAKE_INSTALL_LOCALSTATEDIR=/var
97 -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2
98 -DICINGA2_USER=icinga
99 -DICINGA2_GROUP=icingacmd
100 -DICINGA2_COMMAND_USER=icinga
101 -DICINGA2_COMMAND_GROUP=icingacmd
102 -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes
103 )
104 cmake-utils_src_configure
105 }
106
107 src_install() {
108 BUILDDIR="${WORKDIR}"/icinga2-${PV}_build
109 cd $BUILDDIR
110
111 #if [[ -f Makefile ]] || [[ -f GNUmakefile ]] || [[ -f makefile ]] ; then
112
113 emake DESTDIR="${D}" install
114 #fi
115
116 cd "${WORKDIR}"/icinga2-${PV}
117 if ! declare -p DOCS >/dev/null 2>&1 ; then
118 local d
119 for d in README* ChangeLog AUTHORS NEWS TODO CHANGES THANKS BUGS \
120 FAQ CREDITS CHANGELOG ; do
121 [[ -s "${d}" ]] && dodoc "${d}"
122 done
123 elif declare -p DOCS | grep -q "^declare -a " ; then
124 dodoc "${DOCS[@]}"
125 else
126 dodoc ${DOCS}
127 fi
128
129 if use mysql ; then
130 docinto schema
131 newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/mysql.sql mysql.sql
132 docinto schema/upgrade
133 #newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_mysql/schema/upgrade/0.0.11.sql mysql-upgrade-1.12.0.sql
134 elif use postgres ; then
135 docinto schema
136 newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/pgsql.sql pgsql.sql
137 docinto schema/upgrade
138 #newdoc "${WORKDIR}"/icinga2-${PV}/components/db_ido_pgsql/schema/upgrade/0.0.11.sql pgsql-upgrade-1.12.0.sql
139 fi
140
141 keepdir /etc/icinga2
142 keepdir /var/lib/icinga
143 keepdir /var/lib/icinga/archives
144 keepdir /var/lib/icinga/rw
145 keepdir /var/lib/icinga/spool/checkresults
146
147 #remove dirs that shouldn't be installed
148 rm -r "${D}var/run" || die "failed to remove /var/run"
149 rm -r "${D}var/cache" || die "failed to remove /var/cache"
150
151 fowners icinga:icinga /var/lib/icinga || die "Failed chown of /var/lib/icinga"
152 fowners icinga:icinga /var/lib/icinga2 || die "Failed chown of /var/lib/icinga2"
153 }
154
155 pkg_postinst() {
156 elog "DB IDO schema upgrade required. http://docs.icinga.org/icinga2/snapshot/chapter-2.html#upgrading-the-mysql-database"
157 elog "You will need to update your configuration files, see https://dev.icinga.org/issues/5909"
158 }