Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/diamond: metadata.xml diamond-4.0.ebuild ChangeLog
Date: Sun, 01 Mar 2015 23:09:19
Message-Id: 20150301230912.A376B12D57@oystercatcher.gentoo.org
1 grobian 15/03/01 23:09:12
2
3 Added: metadata.xml diamond-4.0.ebuild ChangeLog
4 Log:
5 Initial commit, ebuild by me, closes #484654
6
7 (Portage version: 2.2.14-prefix/cvs/SunOS i386, signed Manifest commit with key 0x5F75F607C5C74E89)
8
9 Revision Changes Path
10 1.1 app-admin/diamond/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <maintainer>
21 <email>grobian@g.o</email>
22 <name>Fabian Groffen</name>
23 </maintainer>
24 <longdescription lang="en">
25 Diamond is a python daemon that collects system metrics and
26 publishes them to Graphite (and others). It is capable of
27 collecting cpu, memory, network, i/o, load and disk metrics.
28 Additionally, it features an API for implementing custom
29 collectors for gathering metrics from almost any source.
30 </longdescription>
31 </pkgmetadata>
32
33
34
35 1.1 app-admin/diamond/diamond-4.0.ebuild
36
37 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/diamond-4.0.ebuild?rev=1.1&view=markup
38 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/diamond-4.0.ebuild?rev=1.1&content-type=text/plain
39
40 Index: diamond-4.0.ebuild
41 ===================================================================
42 # Copyright 1999-2015 Gentoo Foundation
43 # Distributed under the terms of the GNU General Public License v2
44 # $Header: /var/cvsroot/gentoo-x86/app-admin/diamond/diamond-4.0.ebuild,v 1.1 2015/03/01 23:09:12 grobian Exp $
45
46 EAPI=5
47
48 if [[ ${PV} = 9999* ]]; then
49 inherit git-r3
50 EGIT_REPO_URI="https://github.com/python-diamond/Diamond.git"
51 else
52 SRC_URI="https://github.com/python-diamond/Diamond/archive/v${PV}.tar.gz -> python-diamond-${PV}.tar.gz"
53 KEYWORDS="~x86 ~amd64"
54 fi
55
56 PYTHON_COMPAT=( python{2_6,2_7} )
57
58 inherit distutils-r1
59
60 DESCRIPTION="Python daemon that collects and publishes system metrics"
61 HOMEPAGE="https://github.com/python-diamond/Diamond"
62
63 LICENSE="MIT"
64 SLOT="0"
65 IUSE="test mongo mysql snmp redis"
66
67 RDEPEND="dev-python/configobj
68 dev-python/setproctitle
69 mongo? ( dev-python/pymongo )
70 mysql? ( dev-python/mysql-python )
71 snmp? ( dev-python/pysnmp )
72 redis? ( dev-python/redis-py )"
73 DEPEND="${RDEPEND}
74 test? ( dev-python/mock )"
75
76 S=${WORKDIR}/Diamond-${PV}
77
78 src_prepare() {
79 # adjust for Prefix
80 sed -i \
81 -e '/default="\/etc\/diamond\/diamond.conf"/s:=":="'"${EPREFIX}"':' \
82 bin/diamond* \
83 || die
84
85 distutils-r1_src_prepare
86 }
87
88 python_test() {
89 "${PYTHON}" ./test.py || die "Tests fail with ${PYTHON}"
90 }
91
92 python_install() {
93 export VIRTUAL_ENV=1
94 distutils-r1_python_install
95 mv "${ED}"/usr/etc "${ED}"/ || die
96 }
97
98 src_install() {
99 distutils-r1_src_install
100 newinitd "${FILESDIR}"/${PN}.initd ${PN}
101 newconfd "${FILESDIR}"/${PN}.confd ${PN}
102 }
103
104
105
106 1.1 app-admin/diamond/ChangeLog
107
108 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/ChangeLog?rev=1.1&view=markup
109 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/ChangeLog?rev=1.1&content-type=text/plain
110
111 Index: ChangeLog
112 ===================================================================
113 # ChangeLog for app-admin/diamond
114 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
115 # $Header: /var/cvsroot/gentoo-x86/app-admin/diamond/ChangeLog,v 1.1 2015/03/01 23:09:12 grobian Exp $
116
117 *diamond-4.0 (01 Mar 2015)
118
119 01 Mar 2015; Fabian Groffen <grobian@g.o> +diamond-4.0.ebuild,
120 +files/diamond.confd, +files/diamond.initd, +metadata.xml:
121 Initial commit, ebuild by me, closes #484654