grobian     15/03/01 23:09:12

  Added:                metadata.xml diamond-4.0.ebuild ChangeLog
  Log:
  Initial commit, ebuild by me, closes #484654
  
  (Portage version: 2.2.14-prefix/cvs/SunOS i386, signed Manifest commit with 
key 0x5F75F607C5C74E89)

Revision  Changes    Path
1.1                  app-admin/diamond/metadata.xml

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/metadata.xml?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
<pkgmetadata>
        <maintainer>
                <email>[email protected]</email>
                <name>Fabian Groffen</name>
        </maintainer>
        <longdescription lang="en">
                Diamond is a python daemon that collects system metrics and
                publishes them to Graphite (and others). It is capable of
                collecting cpu, memory, network, i/o, load and disk metrics.
                Additionally, it features an API for implementing custom
                collectors for gathering metrics from almost any source.
        </longdescription>
</pkgmetadata>



1.1                  app-admin/diamond/diamond-4.0.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/diamond-4.0.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/diamond-4.0.ebuild?rev=1.1&content-type=text/plain

Index: diamond-4.0.ebuild
===================================================================
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/diamond/diamond-4.0.ebuild,v 1.1 
2015/03/01 23:09:12 grobian Exp $

EAPI=5

if [[ ${PV} = 9999* ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/python-diamond/Diamond.git";
else
        
SRC_URI="https://github.com/python-diamond/Diamond/archive/v${PV}.tar.gz -> 
python-diamond-${PV}.tar.gz"
        KEYWORDS="~x86 ~amd64"
fi

PYTHON_COMPAT=( python{2_6,2_7} )

inherit distutils-r1

DESCRIPTION="Python daemon that collects and publishes system metrics"
HOMEPAGE="https://github.com/python-diamond/Diamond";

LICENSE="MIT"
SLOT="0"
IUSE="test mongo mysql snmp redis"

RDEPEND="dev-python/configobj
        dev-python/setproctitle
        mongo? ( dev-python/pymongo )
        mysql? ( dev-python/mysql-python )
        snmp? ( dev-python/pysnmp )
        redis? ( dev-python/redis-py )"
DEPEND="${RDEPEND}
        test? ( dev-python/mock )"

S=${WORKDIR}/Diamond-${PV}

src_prepare() {
        # adjust for Prefix
        sed -i \
                -e 
'/default="\/etc\/diamond\/diamond.conf"/s:=":="'"${EPREFIX}"':' \
                bin/diamond* \
                || die

        distutils-r1_src_prepare
}

python_test() {
        "${PYTHON}" ./test.py || die "Tests fail with ${PYTHON}"
}

python_install() {
        export VIRTUAL_ENV=1
        distutils-r1_python_install
        mv "${ED}"/usr/etc "${ED}"/ || die
}

src_install() {
        distutils-r1_src_install
        newinitd "${FILESDIR}"/${PN}.initd ${PN}
        newconfd "${FILESDIR}"/${PN}.confd ${PN}
}



1.1                  app-admin/diamond/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/ChangeLog?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/diamond/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# ChangeLog for app-admin/diamond
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/diamond/ChangeLog,v 1.1 2015/03/01 
23:09:12 grobian Exp $

*diamond-4.0 (01 Mar 2015)

  01 Mar 2015; Fabian Groffen <[email protected]> +diamond-4.0.ebuild,
  +files/diamond.confd, +files/diamond.initd, +metadata.xml:
  Initial commit, ebuild by me, closes #484654




Reply via email to