diff options
Diffstat (limited to 'dev-python/carbon')
-rw-r--r-- | dev-python/carbon/Manifest | 16 | ||||
-rw-r--r-- | dev-python/carbon/carbon-0.9.13-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-python/carbon/carbon-0.9.13.ebuild | 64 | ||||
-rw-r--r-- | dev-python/carbon/carbon-0.9.14-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-python/carbon/carbon-0.9.15-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-python/carbon/files/carbon-0.9.12-no-data-files.patch | 24 | ||||
-rw-r--r-- | dev-python/carbon/files/carbon-0.9.14-no-data-files.patch | 32 | ||||
-rw-r--r-- | dev-python/carbon/files/carbon.confd | 5 | ||||
-rw-r--r-- | dev-python/carbon/files/carbon.initd | 51 | ||||
-rw-r--r-- | dev-python/carbon/files/carbon.initd2 | 53 | ||||
-rw-r--r-- | dev-python/carbon/files/no-data-files.patch | 26 | ||||
-rw-r--r-- | dev-python/carbon/metadata.xml | 15 |
12 files changed, 478 insertions, 0 deletions
diff --git a/dev-python/carbon/Manifest b/dev-python/carbon/Manifest new file mode 100644 index 000000000000..b57cf7bca5ea --- /dev/null +++ b/dev-python/carbon/Manifest @@ -0,0 +1,16 @@ +AUX carbon-0.9.12-no-data-files.patch 817 SHA256 e0f40bb173b4687238a6bf003baab74a5d5b1f6c9bc948a1afd10bb805ca2d4d SHA512 549499d5f1963f2eadc9858e0744a1b2b30830e4069f6881d3d912b9709e3cc0f0c3c01730790c975a57209b671c6592c1dd650028a8a63dcab84fe960f5ed58 WHIRLPOOL a41b7f90c124740eaaf2ed7220247d1c4f8620a27083c4851b5fa707768a1921419b569279b71d7958ab676ea04fe11bb5478df929a3c3b39078f014e548a586 +AUX carbon-0.9.14-no-data-files.patch 1074 SHA256 77bcdb736f77a8da9991c9e21b3af9cf59d880c33681255b53d3b5964517a285 SHA512 11d8108c712d777d5b5930ce7ac3d6efe5b2307f670f19e0420ab26c695b0ec306aded2cc1e5ca2d7e262046689197b9f0b60f609d4f7dba435d36be44358749 WHIRLPOOL 6a37b2da11b7783a7e0a560992d5238b09b412808a19bdf3470733a27bfe9cc88fa3c1238645af9e0ff979d2d6536c17a75ec82efe23ad3f985d0d8527a0dc65 +AUX carbon.confd 119 SHA256 d03e9aad2764b4b5d55a10a0802fcbd0047408c6fd520abd768c230abc858ec7 SHA512 049d2e3c9e9ae9375f485568185b14fb326a85f13a5f40e19a5d26aaecd0b98a61f011dbe4335110b6e3314ec52d308fea8f577df8b29b5d675fd7763a02788f WHIRLPOOL e04bc43c0270fcf3d8eccda61066da1183722d1f8ebddae7c2e02abaac45a33cd7e9969d660c88f4e56854770d610574932009c4078c781dd52dccbfb4ba9d2c +AUX carbon.initd 1259 SHA256 273effa64e4f8496492f78fc540848fe4b765a4c7e8e1dec2bf56961685554cb SHA512 f6ccd3a3abdd8b8e1eff55aa6a0cd0b26e5cd6789ff6f8f795890e61adfac7369c101788a0db2e7d6fdaeace622cf8313a331aa6e0f54e9dda7ec8194351019a WHIRLPOOL 4543810905fdb78993fd5abbfdbd18975a33048887616a2bc3f233e65cb920055e1a83d80cebf2b1d81ebd2feed63d566e565e6e1d9fc257402022c632d50ae6 +AUX carbon.initd2 1329 SHA256 d42bbf0ce764513a3d980ad7ec17c9c40f1646a35e84a4fd5b98fdf519851abe SHA512 08d9a7ddc763bb49763b1c873504b0dfb45763ed871f22632885692f41d5d8c86616677c2669b0b8c2160170a7c507c2415571d300e2045675c7002556a4063e WHIRLPOOL b06476b281639aab9d0fa1ef23aff29a2eb789c1635914f5483503c26ca1377b461a24e7e7778f1d700ea539001be90f01bb7f08f5f0ec0335827fd62ee4c352 +AUX no-data-files.patch 881 SHA256 d8d5b61c21df35042a51433d72495040cfa172f82fbe4b2ef5e54fb8b41cff63 SHA512 13c2e946c42bfabc643ec39a0d384b887fb1ceaee9791e0f7c2ed037069492aa80ff4f4b593dbba7253c6e5f553e0a7d1677333a896067219df4206f742d64d7 WHIRLPOOL ca8040abfdefb1ff6ecb8737de40f303cb869c618dca41f0d09d1c065e60c65a17709adadce057b8c779a0dfa24a3ea6df045e858681bf207f6db6be7fe6ac06 +DIST carbon-0.9.13.tar.gz 47509 SHA256 75aecd8114435430e06803ebaf1e9cac81f58fb231fc93d8904d667d971ae6cd SHA512 89c843ac67ed4b68c28273459e5a96594851e5d2694fdefdfb71cebcdc6555d4aac8c45c1c6d2ca61a15405bac7ba3d27836470fe152d5d7a4936bb2d00e6776 WHIRLPOOL 40000d912f3881dc4f197e1290d3e0fd092ec23bc6574a97fa31d0ffa77fa651abc4d4da529e45d88d74ea763f18cde20daf5fd70549d6afd38f4c5b88d1becb +DIST carbon-0.9.14.tar.gz 50285 SHA256 e12539ca855f0777e326028a32fbff5022d75b7c3e6fcc7e4704305a650aee9a SHA512 e70275c0acce17287b3036668e45c75b9da9b54523faca0f5bdceda4b6b98c71ebf773740e85063ee3ea4e0bc64adee913bb7f8eab1f7016eb504b06f0b589e3 WHIRLPOOL 998c6a3d0b6cc9aa86cc9b79719e762610cf47012f2eebfd575a6bac3aeb78b64c34e94c5fedc5c88074400920268890e8b84e2f1b32ee4ba24bdd0bef31602d +DIST carbon-0.9.15.tar.gz 50321 SHA256 f01db6d37726c6fc0a8aaa66a7bf14436b0dd0d62ef3c20ecb31605a4d365d2e SHA512 e8ed8ac9b247d0f5bbe0331de50d929f918ee7968ad5053d2532f4d09e49215eaecae95a79f6b8360aa0f73fc7e68a73d86886e0329b3f5ccb569136658f6562 WHIRLPOOL fe7aa0da11cbf0cd504d4ae48b4ba5e89f4e6c4cb41e46884971769a45077dd09d056c2f1613cfc4a139dd78ecd140b06d2c25b96e8ba9644c4d7b6636649083 +EBUILD carbon-0.9.13-r1.ebuild 1850 SHA256 f400a7bf71a600d88cea97b2110a760bd7289cc12033c7c2033c3a389d8835ad SHA512 4d3121f3c8a2d6c04a3b8cd5153ad9132e3e573ef9b8c621f015b3eb3b46833a8720e8f3f0c36af142eaca6cf8d950352949038cc3cf3a05e6f064281b69b673 WHIRLPOOL acb294088eb090fe1c6473667a3a45708f7664598c3c143350242ee25dd8a971bd9513943f560b7d0c4205de23b3722ba85ee6dfd6e87404d23c22cd78da9dfb +EBUILD carbon-0.9.13.ebuild 1845 SHA256 063614ed505339eebe1561a33df0518536d7b06ed82f74c348ae6ff13181ec8b SHA512 19be871a4fb56b058990eedce3bcb70eae0b913c0b6bdb4c46236aa9e65bcd8b9bce3b2790ee591fc9494ea36e008ea98f904a5c6dd99fe7e55cc6d63c3d5182 WHIRLPOOL b04539d3ea389753c821151c2e3b2f3a385ee2248823d6a98aa3473a44bef7b7628948461f04beb245d34f6f387064aac2889d7da770fe56b5e3034a877c8497 +EBUILD carbon-0.9.14-r1.ebuild 2039 SHA256 dbd1b34f3bc26530416eab9cf7e6e68cb03ba40c4ab8065db8ae01d5b02242dc SHA512 0370b1b716adca976ca799f3968d52491eeb02a3ea0e5dbd384efc6360ef8d0f0fe708d24aaf53a1dc8923eb83dbfea6c7a40dfecaa15aed5f53877d48dd6163 WHIRLPOOL 16f91e7527b3d942fad35f0585063b671c58ec4db0e60954aa9e6efad0dfb63a910d36ba40e7fa355906df05f7569530fe86de4325426dfc002b006afc5e6d69 +EBUILD carbon-0.9.15-r1.ebuild 2047 SHA256 70771c421285d8d6a5fa20dab1b16dda286f28a9b255fc131819f2f7e5a9c748 SHA512 64f1250fbcf3bfe024e3a6b9be3abcace36cd2ddf4b933ef6c132d7e78d1edfefa8b68d658a52f9139e6c35486ab59f4510d07ab4ebd13e217c118b9bb8969fc WHIRLPOOL 71991fa3a54453e26358308702b73b6fe9b1880f887f33ca1ddc637ed2868067e6aada2063a195782eaa0821bb410cbff87d937b7469f9b9bf5629608b9f81af +MISC ChangeLog 4123 SHA256 2ff008f67816b03b17d7efa0c757172c760970b5ea3cf5eaa0cf1b9fafaf723f SHA512 89b69a800ecb241d38cb579ed794cc1af85f3c33f327a0697103ce8ffc2419dede68bfdb41e036b0b09092c7120da504cb8ff96844f0665a5a5eea98441161e9 WHIRLPOOL 19bfb8feb44fef5cd6449fa129e6c31f2a9a32632daf36ce749ccbd66dbda5cda8d935281d3e48bd31f8b31c912c40c898bf25f25dfaf7ddaa25b72ec9a74f06 +MISC ChangeLog-2015 2094 SHA256 5e5da7626eacfc3cf78835ebe69d27009bb0f43a0900a730fdb815b550df1758 SHA512 7ebc310944175f760f48c7ebc6bbe55757e60f4d6cc5fe818e16de5a9d37ba3b4324d210ca724ad2fd178e9c9ce6dce312c58568f10963c673970d886546c0cf WHIRLPOOL 718ee38d2cac272e40e3698c7939a17b024a038987e77d3c4f883b3a3bc9baf50c1a236dae7db823895db4587051a469880c2071ca6a8491e8b6425861e607d8 +MISC metadata.xml 441 SHA256 a65a0dae26cc36b69c2073c855e7c5ec8cb5effc08267f65f80b5c46c0a9eede SHA512 b6a65d642333fb19a34c4f1342b58ee9eadb9824f078a7cd9faac06d3d9e731ea67aa138a8e36db797b755dd382873583808aa6460375ebedf61443be962fc5d WHIRLPOOL a4e5691aa8451644ee9663e13e9ad568c85927109a505e9dd9040b7432e83e46909201449f67b4b6352728dfabfdb985037953ff48bf9c00f8af3fd885efaa19 diff --git a/dev-python/carbon/carbon-0.9.13-r1.ebuild b/dev-python/carbon/carbon-0.9.13-r1.ebuild new file mode 100644 index 000000000000..b861686a53d5 --- /dev/null +++ b/dev-python/carbon/carbon-0.9.13-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Backend data caching and persistence daemon for Graphite" +HOMEPAGE="http://graphite.wikidot.com/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND=" + dev-python/twisted-core[${PYTHON_USEDEP}] + dev-python/whisper[${PYTHON_USEDEP}] + dev-python/txAMQP[${PYTHON_USEDEP}]" + +PATCHES=( + # Do not install the configuration and data files. We install them + # somewhere sensible by hand. + "${FILESDIR}"/${PN}-0.9.12-no-data-files.patch + ) + +python_prepare_all() { + # This sets prefix to /opt/graphite. We want FHS-style paths instead. + rm setup.cfg || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/carbon + doins conf/* + + dodir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd} + + newinitd "${FILESDIR}"/carbon.initd2 carbon-cache + newinitd "${FILESDIR}"/carbon.initd2 carbon-relay + newinitd "${FILESDIR}"/carbon.initd2 carbon-aggregator + + newconfd "${FILESDIR}"/carbon.confd carbon-cache + newconfd "${FILESDIR}"/carbon.confd carbon-relay + newconfd "${FILESDIR}"/carbon.confd carbon-aggregator +} + +pkg_postinst() { + einfo 'This ebuild installs carbon into FHS-style paths.' + einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon' + einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this' + einfo '(see /etc/carbon/carbon.conf.example).' + einfo ' ' + einfo 'OpenRC init script supports multiple instances !' + einfo 'Example to run an instance b of carbon-cache :' + einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b' + einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b' +} diff --git a/dev-python/carbon/carbon-0.9.13.ebuild b/dev-python/carbon/carbon-0.9.13.ebuild new file mode 100644 index 000000000000..e30fd7dff586 --- /dev/null +++ b/dev-python/carbon/carbon-0.9.13.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Backend data caching and persistence daemon for Graphite" +HOMEPAGE="http://graphite.wikidot.com/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND=" + dev-python/twisted-core[${PYTHON_USEDEP}] + dev-python/whisper[${PYTHON_USEDEP}] + dev-python/txAMQP[${PYTHON_USEDEP}]" + +PATCHES=( + # Do not install the configuration and data files. We install them + # somewhere sensible by hand. + "${FILESDIR}"/${PN}-0.9.12-no-data-files.patch + ) + +python_prepare_all() { + # This sets prefix to /opt/graphite. We want FHS-style paths instead. + rm setup.cfg || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/carbon + doins conf/* + + dodir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd} + + newinitd "${FILESDIR}"/carbon.initd carbon-cache + newinitd "${FILESDIR}"/carbon.initd carbon-relay + newinitd "${FILESDIR}"/carbon.initd carbon-aggregator + + newconfd "${FILESDIR}"/carbon.confd carbon-cache + newconfd "${FILESDIR}"/carbon.confd carbon-relay + newconfd "${FILESDIR}"/carbon.confd carbon-aggregator +} + +pkg_postinst() { + einfo 'This ebuild installs carbon into FHS-style paths.' + einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon' + einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this' + einfo '(see /etc/carbon/carbon.conf.example).' + einfo ' ' + einfo 'OpenRC init script supports multiple instances !' + einfo 'Example to run an instance b of carbon-cache :' + einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b' + einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b' +} diff --git a/dev-python/carbon/carbon-0.9.14-r1.ebuild b/dev-python/carbon/carbon-0.9.14-r1.ebuild new file mode 100644 index 000000000000..5ef85c12f72d --- /dev/null +++ b/dev-python/carbon/carbon-0.9.14-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Backend data caching and persistence daemon for Graphite" +HOMEPAGE="http://graphite.wikidot.com/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86 ~x64-solaris" + +# whisper appears to have been missed from listing in install_requires in setup.py +RDEPEND=" + dev-python/twisted-core[${PYTHON_USEDEP}] + dev-python/whisper[${PYTHON_USEDEP}] + dev-python/txAMQP[${PYTHON_USEDEP}]" + +PATCHES=( + # Do not install the configuration and data files. We install them + # somewhere sensible by hand. Patch for this vn. 0.9.14 has been extended + # due to redhat's init scripts set to install unconditionally in setup.py + "${FILESDIR}"/${P}-no-data-files.patch + ) + +python_prepare_all() { + # This sets prefix to /opt/graphite. We want FHS-style paths instead. + rm setup.cfg || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/carbon + doins conf/* + + dodir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd} + + newinitd "${FILESDIR}"/carbon.initd2 carbon-cache + newinitd "${FILESDIR}"/carbon.initd2 carbon-relay + newinitd "${FILESDIR}"/carbon.initd2 carbon-aggregator + + newconfd "${FILESDIR}"/carbon.confd carbon-cache + newconfd "${FILESDIR}"/carbon.confd carbon-relay + newconfd "${FILESDIR}"/carbon.confd carbon-aggregator +} + +pkg_postinst() { + einfo 'This ebuild installs carbon into FHS-style paths.' + einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon' + einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this' + einfo '(see /etc/carbon/carbon.conf.example).' + einfo ' ' + einfo 'OpenRC init script supports multiple instances !' + einfo 'Example to run an instance b of carbon-cache :' + einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b' + einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b' +} diff --git a/dev-python/carbon/carbon-0.9.15-r1.ebuild b/dev-python/carbon/carbon-0.9.15-r1.ebuild new file mode 100644 index 000000000000..faf2c6aefcb9 --- /dev/null +++ b/dev-python/carbon/carbon-0.9.15-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +DESCRIPTION="Backend data caching and persistence daemon for Graphite" +HOMEPAGE="http://graphite.wikidot.com/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +SLOT="0" +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86 ~x64-solaris" + +# whisper appears to have been missed from listing in install_requires in setup.py +RDEPEND=" + dev-python/twisted-core[${PYTHON_USEDEP}] + dev-python/whisper[${PYTHON_USEDEP}] + dev-python/txAMQP[${PYTHON_USEDEP}]" + +PATCHES=( + # Do not install the configuration and data files. We install them + # somewhere sensible by hand. Patch for this vn. 0.9.14 has been extended + # due to redhat's init scripts set to install unconditionally in setup.py + "${FILESDIR}"/${PN}-0.9.14-no-data-files.patch + ) + +python_prepare_all() { + # This sets prefix to /opt/graphite. We want FHS-style paths instead. + rm setup.cfg || die + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /etc/carbon + doins conf/* + + dodir /var/log/carbon /var/lib/carbon/{whisper,lists,rrd} + + newinitd "${FILESDIR}"/carbon.initd2 carbon-cache + newinitd "${FILESDIR}"/carbon.initd2 carbon-relay + newinitd "${FILESDIR}"/carbon.initd2 carbon-aggregator + + newconfd "${FILESDIR}"/carbon.confd carbon-cache + newconfd "${FILESDIR}"/carbon.confd carbon-relay + newconfd "${FILESDIR}"/carbon.confd carbon-aggregator +} + +pkg_postinst() { + einfo 'This ebuild installs carbon into FHS-style paths.' + einfo 'You will probably have to set GRAPHITE_CONF_DIR to /etc/carbon' + einfo 'and GRAPHITE_STORAGE_DIR to /var/lib/carbon to make use of this' + einfo '(see /etc/carbon/carbon.conf.example).' + einfo ' ' + einfo 'OpenRC init script supports multiple instances !' + einfo 'Example to run an instance b of carbon-cache :' + einfo ' ln -s /etc/init.d/carbon-cache /etc/init.d/carbon-cache.b' + einfo ' cp /etc/conf.d/carbon-cache /etc/conf.d/carbon-cache.b' +} diff --git a/dev-python/carbon/files/carbon-0.9.12-no-data-files.patch b/dev-python/carbon/files/carbon-0.9.12-no-data-files.patch new file mode 100644 index 000000000000..129c7189f3b0 --- /dev/null +++ b/dev-python/carbon/files/carbon-0.9.12-no-data-files.patch @@ -0,0 +1,24 @@ +diff -ur carbon-0.9.12.orig/setup.py carbon-0.9.12/setup.py +--- /setup.py 2013-08-22 00:53:16.000000000 +0800 ++++ /setup.py 2014-01-26 11:20:59.705864697 +0800 +@@ -13,12 +13,6 @@ + setup_kwargs = dict() + + +-storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]), +- ('storage/log',[]), ('storage/rrd',[]) ] +-conf_files = [ ('conf', glob('conf/*.example')) ] +- +-install_files = storage_dirs + conf_files +- + # If we are building on RedHat, let's use the redhat init scripts. + if platform.dist()[0] == 'redhat': + init_scripts = [ ('/etc/init.d', ['distro/redhat/init.d/carbon-cache', +@@ -39,7 +33,6 @@ + package_dir={'' : 'lib'}, + scripts=glob('bin/*'), + package_data={ 'carbon' : ['*.xml'] }, +- data_files=install_files, + install_requires=['twisted', 'txamqp'], + **setup_kwargs + ) diff --git a/dev-python/carbon/files/carbon-0.9.14-no-data-files.patch b/dev-python/carbon/files/carbon-0.9.14-no-data-files.patch new file mode 100644 index 000000000000..858d362d296d --- /dev/null +++ b/dev-python/carbon/files/carbon-0.9.14-no-data-files.patch @@ -0,0 +1,32 @@ +diff -ur carbon-0.9.14.orig/setup.py carbon-0.9.14/setup.py +--- setup.py 2015-11-07 13:50:29.000000000 +0800 ++++ setup.py 2015-12-27 08:43:46.575905408 +0800 +@@ -13,20 +13,6 @@ + setup_kwargs = dict() + + +-storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]), +- ('storage/log',[]), ('storage/rrd',[]) ] +-conf_files = [ ('conf', glob('conf/*.example')) ] +- +-install_files = storage_dirs + conf_files +- +-# Let's include redhat init scripts, despite build platform +-# but won't put them in /etc/init.d/ automatically anymore +-init_scripts = [ ('examples/init.d', ['distro/redhat/init.d/carbon-cache', +- 'distro/redhat/init.d/carbon-relay', +- 'distro/redhat/init.d/carbon-aggregator']) ] +-install_files += init_scripts +- +- + setup( + name='carbon', + version='0.9.14', +@@ -39,7 +25,6 @@ + package_dir={'' : 'lib'}, + scripts=glob('bin/*'), + package_data={ 'carbon' : ['*.xml'] }, +- data_files=install_files, + install_requires=['twisted', 'txamqp'], + **setup_kwargs + ) diff --git a/dev-python/carbon/files/carbon.confd b/dev-python/carbon/files/carbon.confd new file mode 100644 index 000000000000..b1875e134678 --- /dev/null +++ b/dev-python/carbon/files/carbon.confd @@ -0,0 +1,5 @@ +# Use the given config file +CARBON_CONFIG="/etc/carbon/carbon.conf" + +# Add extra parameters +CARBON_EXTRA_PARAMETERS="" diff --git a/dev-python/carbon/files/carbon.initd b/dev-python/carbon/files/carbon.initd new file mode 100644 index 000000000000..a33a70c60f93 --- /dev/null +++ b/dev-python/carbon/files/carbon.initd @@ -0,0 +1,51 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +export GRAPHITE_CONF_DIR=/etc/carbon +export GRAPHITE_STORAGE_DIR=/var/lib/carbon + +INSTANCE=${SVCNAME/#*.} +if [ "${INSTANCE}" == "${SVCNAME}" ]; then + INSTANCE="a" +fi + +PIDFILE="/var/run/${SVCNAME}.pid" +PROGRAMNAME=${SVCNAME/.*} + +CARBON_CONFIG=${CARBON_CONFIG:-/etc/carbon/carbon.conf} + +depend() { + use net +} + + +start_pre() { + if [ ! -f ${CARBON_CONFIG} ] ; then + eend "Missing ${CARBON_CONFIG}" + fi + case "${PROGRAMNAME}" in + "carbon-relay" ) + [ -f /etc/carbon/relay-rules.conf ] || eend "Missing relay-rules.conf" + ;; + "carbon-aggregator" ) + [ -f /etc/carbon/aggregation-rules.conf ] || eend "Missing missing aggregation-rules.conf" + ;; + esac +} + +start() { + ebegin "Starting ${PROGRAMNAME} instance ${INSTANCE}" + start-stop-daemon --start --exec /usr/bin/${PROGRAMNAME}.py \ + --pidfile ${PIDFILE} \ + -- --pidfile ${PIDFILE} --instance ${INSTANCE} \ + --logdir /var/log/carbon/ --config ${CARBON_CONFIG} start >/dev/null + eend $? "Failed to start ${SVCNAME}" +} + +stop() { + ebegin "Stopping ${PROGRAMNAME} instance ${INSTANCE}" + start-stop-daemon --stop \ + --pidfile ${PIDFILE} + eend $? "Failed to stop ${SVCNAME}" +} diff --git a/dev-python/carbon/files/carbon.initd2 b/dev-python/carbon/files/carbon.initd2 new file mode 100644 index 000000000000..ff1509747ef1 --- /dev/null +++ b/dev-python/carbon/files/carbon.initd2 @@ -0,0 +1,53 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +export GRAPHITE_CONF_DIR=/etc/carbon +export GRAPHITE_STORAGE_DIR=/var/lib/carbon + +INSTANCE=${SVCNAME#*.} +if [ "${INSTANCE}" = "${SVCNAME}" ]; then + INSTANCE="a" +fi + +PIDFILE="/var/run/${SVCNAME}.pid" +PROGRAMNAME=${SVCNAME%%.*} + +CARBON_CONFIG=${CARBON_CONFIG:-/etc/carbon/carbon.conf} + +depend() { + use net +} + + +start_pre() { + if [ ! -f ${CARBON_CONFIG} ] ; then + eend "Missing ${CARBON_CONFIG}" + fi + case "${PROGRAMNAME}" in + "carbon-relay" ) + if `grep -q "^RELAY_METHOD = rules$" ${CARBON_CONFIG}`; then + [ -f /etc/carbon/relay-rules.conf ] || eend "Missing relay-rules.conf" + fi + ;; + "carbon-aggregator" ) + [ -f /etc/carbon/aggregation-rules.conf ] || eend "Missing missing aggregation-rules.conf" + ;; + esac +} + +start() { + ebegin "Starting ${PROGRAMNAME} instance ${INSTANCE}" + start-stop-daemon --start --exec /usr/bin/${PROGRAMNAME}.py \ + --pidfile ${PIDFILE} \ + -- --pidfile ${PIDFILE} --instance ${INSTANCE} \ + --logdir /var/log/carbon/ --config ${CARBON_CONFIG} start >/dev/null + eend $? "Failed to start ${SVCNAME}" +} + +stop() { + ebegin "Stopping ${PROGRAMNAME} instance ${INSTANCE}" + start-stop-daemon --stop \ + --pidfile ${PIDFILE} + eend $? "Failed to stop ${SVCNAME}" +} diff --git a/dev-python/carbon/files/no-data-files.patch b/dev-python/carbon/files/no-data-files.patch new file mode 100644 index 000000000000..7b0c52f3948b --- /dev/null +++ b/dev-python/carbon/files/no-data-files.patch @@ -0,0 +1,26 @@ +Do not install the empty storage dirs and config files to the wrong +location (the ebuild installs them to the right location by hand). + +See Gentoo bug #417221. + +--- setup.py ++++ setup.py +@@ -12,9 +12,6 @@ + setup_kwargs = dict() + + +-storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]), +- ('storage/log',[]), ('storage/rrd',[]) ] +-conf_files = [ ('conf', glob('conf/*.example')) ] + #XXX Need a way to have these work for bdist_rpm but be left alone for everything else + #init_scripts = [ ('/etc/init.d', ['distro/redhat/init.d/carbon-cache', + # 'distro/redhat/init.d/carbon-relay', +@@ -32,7 +29,6 @@ + package_dir={'' : 'lib'}, + scripts=glob('bin/*'), + package_data={ 'carbon' : ['*.xml'] }, +- data_files=storage_dirs + conf_files, # + init_scripts, + install_requires=['twisted', 'txamqp'], + **setup_kwargs + ) + diff --git a/dev-python/carbon/metadata.xml b/dev-python/carbon/metadata.xml new file mode 100644 index 000000000000..652e85d0ce90 --- /dev/null +++ b/dev-python/carbon/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> + <maintainer type="person"> + <email>grobian@gentoo.org</email> + <name>Fabian Groffen</name> + </maintainer> + <upstream> + <remote-id type="pypi">carbon</remote-id> + </upstream> +</pkgmetadata> |