diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/flower |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/flower')
-rw-r--r-- | dev-python/flower/Manifest | 9 | ||||
-rw-r--r-- | dev-python/flower/files/config.py | 115 | ||||
-rw-r--r-- | dev-python/flower/files/flower.confd | 2 | ||||
-rw-r--r-- | dev-python/flower/files/flower.initd | 15 | ||||
-rw-r--r-- | dev-python/flower/files/flower.logrotated | 7 | ||||
-rw-r--r-- | dev-python/flower/files/flower.service | 13 | ||||
-rw-r--r-- | dev-python/flower/flower-0.9.1-r1.ebuild | 55 | ||||
-rw-r--r-- | dev-python/flower/metadata.xml | 11 |
8 files changed, 227 insertions, 0 deletions
diff --git a/dev-python/flower/Manifest b/dev-python/flower/Manifest new file mode 100644 index 000000000000..678d627f3d8d --- /dev/null +++ b/dev-python/flower/Manifest @@ -0,0 +1,9 @@ +AUX config.py 2666 SHA256 443c979e86e2931b5f34c7ab9223431e0e5f26cd9b8e259e47230a2d4a23dcd9 SHA512 6f67ebdd7bc5bef3ec9cd384b1b9c8a5edccc03d20fe0bd147ce25d4ca5100ee8cd0734609f4a7bb302f6cbc3bafd92dd7058c6bdae746f483d8c7b1d7c2c7ac WHIRLPOOL fb8bf0a36bce60aa7af17a6be288aaf49e54be7367c726434dc13fe3e39560ca942e54704df45c88f03fe7edca4bac60d697e6ffe5b656494e5c85b2b4eefea8 +AUX flower.confd 77 SHA256 b2acbed5049285171b4383f129db9462e0fdaf07b74cfeacb933fa4701fd534f SHA512 291df73d16622fbff51c805a1c967d98c461dcfe54324b8f271e812e6afd3f4d3d855ce2acfb3228b096ec0afaa16ebf5e75500e5b84c4bc0d9da31c3230bbc7 WHIRLPOOL 261034fcec47aa1ed7df23ff750c07f2d0a5c20ae1644004f4e2d5179d8060506e730a87c1fd9f671d14ea0957a512b206a905aa73a8971e62fb782da531be13 +AUX flower.initd 508 SHA256 d2790cc16c3c044f34e1b855cecd87b129e60d7212d53ab81171053c089baeea SHA512 66d066b2df7f8c6c42d410e8f0c6c1bac6340db994122040c796a0e9ff5440fc155f138a158b1477b6f50c2a627a7a18eeaf9b01d80e05d5273be3358047a960 WHIRLPOOL 21da00989c6ff14a692f20e7faeb71fec79d1fdc268984a0f456b9ade8f91812fbf4b2300c03eb0d3ebe555ddeffc05cf305366ed9e75be493057ef0107a42ec +AUX flower.logrotated 85 SHA256 59f9f63401d599a643052b499b9da8e69854dbdfd7fc01447c7ba62974a25e74 SHA512 ff230e516d0aeffe9bb7d43bd847abdf1d3bf0f0fe0a6aec087fa7f08e2157e7f15994997ba76fc57a03dc34a0271cb9051bba938138ad95fde46c9774f05ffd WHIRLPOOL c078dfecfb74a203057cf70bf3124a1495868981d3ef25d91948640c929cfedcc0626ac2637b5bc014642d4652e2a6268eb03e423710908218ac04c5edcd8feb +AUX flower.service 331 SHA256 5ee7d9b99efbe5ab4890904c644c2ab858bfbf21828740a9ef23e548e657502b SHA512 894d9e3cf4c87ba731ce8089efdce7e5d6f536425ce368825f750fe5367707a12b3b99221b7d9f3ebebf6881fa7bfbca6e13654ae878b046bfa94376c00039c7 WHIRLPOOL ee878c78c9f8f19435aa22c309255a9f7941b6dde59a355aac2806d53c6a03b0a88571641da6803f3cc64ed57675eaa72ac46d47984682ee6782f99f9a4a5c63 +DIST flower-0.9.1.tar.gz 3880608 SHA256 bdd926b731e8024779a5373fa33bff4a30e2a2ae6cf3a591beb83fbde3dc352f SHA512 519d92209dbdb7956fde30c604956d1cbbc8ec7180ff160ea088847b5b63310cd42dc949d02eef1197588b0353470a0f3ac96b44b2e3ebb093a254d8f94fb407 WHIRLPOOL 3595137d6f83e2ace3d93281daa19bf3b46432f30467489ec46bef4ff437bbbd3975230c31d4bd3134fb54616ee0a6eea1136d23c088f3543a45da1f6a495db3 +EBUILD flower-0.9.1-r1.ebuild 1428 SHA256 26a2a2a49a42fef2bcd695156867c7a211bc1b83aeab219aa68b515d3ada229b SHA512 cd2c71c8d9267ec245ef0d2edd9a1e163b63e32b839dc9d7bfb62105e55d317f5068960772176b9293496ba843ed1c8b544403bca119bb382627ac1e226e0e9b WHIRLPOOL d9112fa18b88f1d6f67a67ddc881a2e98bd32a65b420d1c52879cf04dde71128b5319e4d6ac70360d8d12b3b3eabc65fef67c7298c22543d0a91e60733987458 +MISC ChangeLog 1182 SHA256 35a5a7d8bbce1742fcb87568f430b527d62deb0252542fb96dbe47c530b2b010 SHA512 9a760e52677d1667bf6e4bf7ab093a7b62efa965e13898c46d880217f96ee2ae1f963f3d6060e3c39e13aa067ae7a5f4b143b8699dd1642e3532eb8216a2c95f WHIRLPOOL 5b20599e3c84241ce7e12e16a2039dd9a72d7ecf9a25450f9bc6acac3bb5fe403682d8cf012b83955113abdd21ccf1f160d745b20786a4bea77d23680eacd853 +MISC metadata.xml 348 SHA256 6f4c261cd54cee66c13999a0dc7cbee96e752f7fe7a9fc3b750f288e59d2b092 SHA512 3ebe07dea33229439c0e810bebe106316ec29481faf9c39ca3449228979d160d42a81161ed59b7109bf0731664d122b68b3ab5a6ea39aaeb35fe9feadf304a4e WHIRLPOOL dfbbce8feeb6c8b9c946b0574472bd57b8d6a1c54aa2ec938e955768b9bab1d0f633c0e61cdb572cc41c7abe5a21b4d96ebd56f0525a9f1d6733b02ad17554c9 diff --git a/dev-python/flower/files/config.py b/dev-python/flower/files/config.py new file mode 100644 index 000000000000..da101ab785b5 --- /dev/null +++ b/dev-python/flower/files/config.py @@ -0,0 +1,115 @@ +# Configuration file for the Celery Flower service. Standard Celery +# configuration settings can be overridden in the configuration file. See the +# Celery Configuration documentation for a complete listing of all available +# settings, and their default values. + + +# URL for the broker used by Celery. +# BROKER_URL = 'amqp://guest:guest@localhost:5672//' + + +# Run the HTTP service on the given address. +# +# addess = localhost + + +# Run the HTTP server on the given port. +# +# port = 5555 + + +# Enables Google OpenID authentication. `auth` is a regexp of emails to grant +# access. For more info see google-openid. +# +# auth = None + + +# Refresh dashboards automatically. +# +# auto_refresh = True + + +# Enables HTTP Basic authentication. `basic_auth` is a comma separated list of +# `username:password`. If configured, any client trying to access this Flower +# instance will be prompted to provide the credentials specified in this +# argument. +# +# basic_auth = None + + +# Flower can use the RabbitMQ Management Plugin to get info about queues. +# `broker_api` is a URL of a RabbitMQ HTTP API including user credentials. +# +# broker_api = http://username:password@rabbitmq-server-name:15672/api + + +# A path to ca_certs file. The ca_certs file contains a set of concatenated +# "certification authority" certificates, which are used to validate +# certificates passed from the other end of the connection. +# +# ca_certs = None + + +# A path to an x509 certificate file. +# +# certfile = None + + +# A path to the private key for `certfile`. +# +# keyfile = None + + +# Enable debug mode. +# +# debug = False + + +# Periodically enable Celery events by using `enable_events` command +# +# enable_events = True + + +# Modifies the default task formatting. `format_task` should be a function +# that accepts a task object and returns a modified version. This is useful +# when filtering out sensitive information. +# +# format_task = None + + +# Sets worker inspect timeout in milliseconds. +# +# inspect_timeout = 10000 + + +# Maximum number of tasks to keep in memory. +# +# max_tasks = 10000 + + +# Show time relative to the refresh time. +# +# natural_time = True + + +# Enable persistent mode. If the persistent mode is enabled, Flower saves the +# current state and reloads on restart. +# +# persistent = False + + +# A path to a database file to use if persistent mode is enabled. +# +# db = flower + + +# Enable support of `X-Real-Ip` and `X-Scheme` headers +# +# xheaders = False + + +# Specifies list of comma-delimited columns on the /tasks/ page. Order of slugs +# in the option is unrelated to order of columns on the page. Available slugs +# include: name, uuid, state, args, kwargs, result, received, started, runtime. +# +# tasks_columns = None diff --git a/dev-python/flower/files/flower.confd b/dev-python/flower/files/flower.confd new file mode 100644 index 000000000000..a74ca17f3d2b --- /dev/null +++ b/dev-python/flower/files/flower.confd @@ -0,0 +1,2 @@ +# extra arguments for the flower +command_args="--conf=/etc/flower/config.py" diff --git a/dev-python/flower/files/flower.initd b/dev-python/flower/files/flower.initd new file mode 100644 index 000000000000..1f950c6d2103 --- /dev/null +++ b/dev-python/flower/files/flower.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run +# Copyright 2015-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Real-time monitor and web admin for Celery distributed task queue" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +command="/usr/libexec/${RC_SVCNAME}/${RC_SVCNAME}" +command_user="${RC_SVCNAME}" +command_background="true" +start_stop_daemon_args="--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log + --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" + +depend() { + need net +} diff --git a/dev-python/flower/files/flower.logrotated b/dev-python/flower/files/flower.logrotated new file mode 100644 index 000000000000..5c7f0287690e --- /dev/null +++ b/dev-python/flower/files/flower.logrotated @@ -0,0 +1,7 @@ +/var/log/flower/flower.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/dev-python/flower/files/flower.service b/dev-python/flower/files/flower.service new file mode 100644 index 000000000000..dd2f1d9da105 --- /dev/null +++ b/dev-python/flower/files/flower.service @@ -0,0 +1,13 @@ +[Unit] +Description=Real-time monitor and web admin for Celery distributed task queue +Requires=network-online.target +After=network-online.target + +[Service] +User=flower +PrivateDevices=Yes +Environment=_FLOWER_OPTS="--conf=/etc/flower/config.py" +ExecStart=/usr/libexec/flower/flower $_FLOWER_OPTS + +[Install] +WantedBy=multi-user.target diff --git a/dev-python/flower/flower-0.9.1-r1.ebuild b/dev-python/flower/flower-0.9.1-r1.ebuild new file mode 100644 index 000000000000..c5b5750941fd --- /dev/null +++ b/dev-python/flower/flower-0.9.1-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 systemd user + +DESCRIPTION="Real-time monitor and web admin for Celery distributed task queue" +HOMEPAGE="https://${PN}.readthedocs.org/ https://github.com/mher/${PN}/ https://pypi.python.org/pypi/${PN}" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" + +RDEPEND=">=dev-python/celery-3.1.0[${PYTHON_USEDEP}] + >=www-servers/tornado-4.2.0[${PYTHON_USEDEP}] + >=dev-python/pytz-2015.7[${PYTHON_USEDEP}] + >=dev-python/Babel-2.2.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /dev/null ${PN} +} + +src_prepare() { + eapply_user + sed -e 's:tornado==4.2.0:tornado>=4.2.0:' \ + -i requirements/default.txt || die +} + +src_install() { + distutils-r1_src_install + insinto /etc/flower + doins "${FILESDIR}/config.py" + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" +} + +python_install() { + distutils-r1_python_install --install-scripts "${EPREFIX}/usr/libexec/flower" +} + +python_test() { + esetup.py test || die +} diff --git a/dev-python/flower/metadata.xml b/dev-python/flower/metadata.xml new file mode 100644 index 000000000000..119189addfa1 --- /dev/null +++ b/dev-python/flower/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">mher/flower</remote-id> + <remote-id type="pypi">flower</remote-id> + </upstream> +</pkgmetadata> |