Gentoo Archives: gentoo-commits

From: "Tobias Scherbaum
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/ndoutils: ChangeLog ndoutils-1.4_beta5.ebuild ndoutils-1.4_beta4.ebuild
Date: Sat, 08 Sep 2007 08:41:20
Message-Id: E1ITvly-0000Px-GI@stork.gentoo.org
1 dertobi123 07/09/08 08:34:34
2
3 Modified: ChangeLog
4 Added: ndoutils-1.4_beta5.ebuild
5 Removed: ndoutils-1.4_beta4.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.1.2.12)
9
10 Revision Changes Path
11 1.3 net-analyzer/ndoutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ndoutils/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ndoutils/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ndoutils/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 23 Aug 2007 14:19:13 -0000 1.2
24 +++ ChangeLog 8 Sep 2007 08:34:33 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-analyzer/ndoutils
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/ChangeLog,v 1.2 2007/08/23 14:19:13 dertobi123 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/ChangeLog,v 1.3 2007/09/08 08:34:33 dertobi123 Exp $
30 +
31 +*ndoutils-1.4_beta5 (08 Sep 2007)
32 +
33 + 08 Sep 2007; Tobias Scherbaum <dertobi123@g.o>
34 + -ndoutils-1.4_beta4.ebuild, +ndoutils-1.4_beta5.ebuild:
35 + Version bump
36
37 23 Aug 2007; Tobias Scherbaum <dertobi123@g.o>
38 ndoutils-1.4_beta4.ebuild:
39
40
41
42 1.1 net-analyzer/ndoutils/ndoutils-1.4_beta5.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ndoutils/ndoutils-1.4_beta5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/ndoutils/ndoutils-1.4_beta5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ndoutils-1.4_beta5.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/ndoutils/ndoutils-1.4_beta5.ebuild,v 1.1 2007/09/08 08:34:33 dertobi123 Exp $
52
53 inherit eutils
54
55 MY_P=${P/_beta/b}
56
57 DESCRIPTION="Nagios addon to store Nagios data in a MySQL database"
58 HOMEPAGE="http://www.nagios.org"
59 SRC_URI="mirror://sourceforge/nagios/${MY_P}.tar.gz"
60
61 LICENSE="GPL-2"
62 SLOT="0"
63 KEYWORDS="~x86"
64 IUSE=""
65
66 DEPEND="dev-db/mysql"
67 RDEPEND="${DEPEND}
68 >=net-analyzer/nagios-core-2.7"
69
70 S="${WORKDIR}/${MY_P}"
71
72 pkg_setup() {
73 enewgroup nagios
74 enewuser nagios -1 /bin/bash /var/nagios/home nagios
75 }
76
77 src_compile() {
78 econf \
79 --prefix=/usr/nagios \
80 --sysconfdir=/etc/nagios \
81 --enable-mysql \
82 --disable-pgsql || die "econf failed"
83
84 emake || die "emake failed"
85 }
86
87 src_install() {
88 dodir /usr/nagios/bin
89 cp ${S}/src/{file2sock,log2ndo,ndo2db-2x,ndomod-2x.o,sockdebug} ${D}/usr/nagios/bin
90
91 dodir /usr/nagios/share/
92 cp -R ${S}/db ${D}/usr/nagios/share
93
94 chown -R root:nagios ${D}/usr/nagios || die "Failed chown of ${D}/usr/nagios"
95 chmod 750 ${D}/usr/nagios/bin/{file2sock,log2ndo,ndo2db-2x,ndomod-2x.o,sockdebug} || "Failed chmod"
96
97 dodoc README REQUIREMENTS TODO UPGRADING Changelog "docs/NDOUTILS DB Model.pdf" "docs/NDOUtils Documentation.pdf"
98
99 cat << EOF > "${T}"/55-ndoutils-revdep
100 SEARCH_DIRS="/usr/nagios/bin"
101 EOF
102
103 sed -i s:socket_name=/usr/local/nagios/var/ndo.sock:socket_name=/var/nagios/ndo.sock:g ${S}/config/ndo2db.cfg
104
105 insinto /etc/revdep-rebuild
106 doins "${T}"/55-ndoutils-revdep
107
108 insinto /etc/nagios
109 doins ${S}/config/ndo2db.cfg
110 doins ${S}/config/ndomod.cfg
111
112 newinitd ${FILESDIR}/ndo2db.init ndo2db
113 }
114
115 pkg_postinst() {
116 elog "To include NDO in your Nagios setup you'll need to activate the NDO broker module"
117 elog "in /etc/nagios/nagios.cfg:"
118 elog "\tbroker_module=/usr/nagios/bin/ndomod-2x.o config_file=/etc/nagios/ndomod.cfg"
119 }
120
121
122
123 --
124 gentoo-commits@g.o mailing list