summaryrefslogtreecommitdiff
path: root/net-im/err
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-im/err
reinit the tree, so we can have metadata
Diffstat (limited to 'net-im/err')
-rw-r--r--net-im/err/Manifest7
-rw-r--r--net-im/err/err-1.7.1-r1.ebuild78
-rw-r--r--net-im/err/files/errd.confd9
-rw-r--r--net-im/err/files/errd.initd27
-rw-r--r--net-im/err/metadata.xml20
5 files changed, 141 insertions, 0 deletions
diff --git a/net-im/err/Manifest b/net-im/err/Manifest
new file mode 100644
index 000000000000..04403395853c
--- /dev/null
+++ b/net-im/err/Manifest
@@ -0,0 +1,7 @@
+AUX errd.confd 167 SHA256 6475348ec29b582c3542be04b01db457731c4d9f4d998a41fefb17f757321235 SHA512 0e8f6b86cfe3e57dbae2ecf7a035d084ac753c338871fe51462d522465777f5c8886a9a2fa7d69030ed53797b6ece89a3e3453162d5a9af76a5e1a2ac23db30f WHIRLPOOL 1f3ffec6d4e72d21c107326586d5d39bf0bcc9177d9b4b38361dd9b31d816bef70be471b02c5121df31b87a3460a62fa2633e83048cb6f539d55e9d323261d5a
+AUX errd.initd 678 SHA256 824bf6949ea55d6d084234035c8ed2b2b25c9007350118db03bae37d4293e386 SHA512 c7a32d4d81f7f9bc6a598796b0b219e6c6b3187e0fcb9035824cf183b98e4ac95688c106e594f72ab09260d1c5bdc02e09e976e04674b58549d91e2a801752cb WHIRLPOOL b4a69dda495b9c208b14a32717e9481cd1fee49283d2e7b52ce3835c2bdf966a50676b9abf182586a6bd5364f751b5b1af8cb5c648ce268d3d8ec6fce30f4b38
+DIST err-1.7.1.tar.gz 100716 SHA256 a116df7fb4489274b0074c960eebfd7bb938cc777dfc43c773f828aaf9cb5406 SHA512 5be7f6ede6694877e73226de4da58bc47e1230032bc9be8dd3e8fd1448afd1e3ae4c02ecbdb30343b98466bb0d3a8fbfbcb6609c5c50768a9be70b9d22f675a4 WHIRLPOOL a79fd02db047ccfdf25201ade924ed3382d8b729b69bcdebf911d806c167751ec011e62728d9342a4f7c0d8cc6e4b07a40bd5f275ed042ff2451fc17066800e8
+EBUILD err-1.7.1-r1.ebuild 2012 SHA256 111c20e170cd0e434f6faafff2167fefd5fa390457f0da9d87a26a6732e7e99e SHA512 a1d0551b5c4f02baa3d83c6c18a0514cbf7a16408f43468b9ef1bffcfd966d42d509c776e4a992a4a98bdeb0d30d157adf88979b6d9092dcefc97b34700ad971 WHIRLPOOL e120b5a91be0986f0732473ba8c1552f0cbc951af3aea4bec2e16bf311b3a2802169d4b690e299be8fea13a0f4bad41e5722013666f05c9272f8dd912a9bc6b4
+MISC ChangeLog 3112 SHA256 217850fed936e3036bfaa4f990daa0cb3aef3ecc55d3e4d43e259720f8668be5 SHA512 ab62e652a8009001852d068e9b74805551df707af13fefa7501b243b66e61cd8de1a38b6f22ba0923886145c4e826612f8308de9f7678812a4eb883642fb5d16 WHIRLPOOL 33f2edcead1a22ebda76d5a6c533cbe3389adf9c5a96b36bc97c69f93d79e455ab2dd7a0691f74bc7ca5ed9c0f20b2b66edc4076093dc08cd996d5d1718c3c09
+MISC ChangeLog-2015 3042 SHA256 f75dbb906200ac48167ca97ed827191622d0c8a98e8db42360e5b68a10d3c461 SHA512 a7bc7033eace6582cd1a905a4a1eb3ffda73a12052ac26d39e2479d7a32dce695038cef7fb240fccfac33a829da1e2e520862a430ecced93587581ed417d7ae4 WHIRLPOOL e9f48663a38ecba9ec0905f42d44083626f70a1c96a8b2e2e91bb23a6036d85340faec4c142f8992d257f0a81692e59fd361f1949be2af7370de4e2508370ee1
+MISC metadata.xml 689 SHA256 b3f64520ec398cb6c0ac0a6449ce3ffb89434f2dbf33121980726793a75c9707 SHA512 dfc61dbf4405fee8f0494a7872d1fc86e9b34cf5e12e133b88a9041301cca69606b1e26ba8249c0341fb148890b70058f9bcb1a875c1cd742e9559e3bcc1df36 WHIRLPOOL d1aeac2059f0e5ce45481361efdd25c2764853a20a06d40fd9cfb39d69fd0aac52e95ae2bb674d78b7d4dd208963fe5a83ed55106f6b38491d134a5113c5ea3c
diff --git a/net-im/err/err-1.7.1-r1.ebuild b/net-im/err/err-1.7.1-r1.ebuild
new file mode 100644
index 000000000000..ebb937892546
--- /dev/null
+++ b/net-im/err/err-1.7.1-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 eutils user
+
+DESCRIPTION="Plugin based XMPP chatbot designed to be easily deployable, extensible and maintainable"
+HOMEPAGE="https://gbin.github.com/err/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="irc +plugins"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ dev-python/flask[${PYTHON_USEDEP}]
+ dev-python/jinja[${PYTHON_USEDEP}]
+ dev-python/pyfire[${PYTHON_USEDEP}]
+ dev-python/python-daemon[${PYTHON_USEDEP}]
+ dev-python/xmpppy[${PYTHON_USEDEP}]
+ dev-python/yapsy[${PYTHON_USEDEP}]
+ virtual/python-dnspython[${PYTHON_USEDEP}]
+ irc? (
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ dev-python/twisted-core[${PYTHON_USEDEP}]
+ dev-python/twisted-words[${PYTHON_USEDEP}]
+ )
+ plugins? ( dev-vcs/git )"
+
+# Testsuite is broken since 1.6.3
+RESTRICT="test"
+
+# NOTES:
+# 1. It has bundled libs - for example exrex(see 'errbot/bundled' subfolder)
+# 2. Support for BOT_SENTRY option is missing, cause
+# we do not have apropriate packages in portage yet
+# 3. Internal web server is broken(dunno why :-()
+
+pkg_setup() {
+ ebegin "Creating err group and user"
+ enewgroup 'err'
+ enewuser 'err' -1 -1 -1 'err'
+ eend ${?}
+}
+
+python_prepare_all() {
+ # Remove configparser and config from requirements as they are NOT needed
+ sed -i \
+ -e "/install_requires/s/'configparser', //" \
+ -e "/install_requires/s/, 'config'//" \
+ setup.py || die
+
+ # Tests are broken and should not be installed
+ rm -r tests || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ newinitd "${FILESDIR}"/errd.initd errd
+ newconfd "${FILESDIR}"/errd.confd errd
+
+ dodir /etc/${PN}
+ dodir /var/lib/${PN}
+ keepdir /var/log/${PN}
+ fowners -R err:err /var/lib/${PN}
+ fowners -R err:err /var/log/${PN}
+
+ insinto /etc/${PN}
+ newins errbot/config-template.py config.py
+}
diff --git a/net-im/err/files/errd.confd b/net-im/err/files/errd.confd
new file mode 100644
index 000000000000..cc70d90b4b43
--- /dev/null
+++ b/net-im/err/files/errd.confd
@@ -0,0 +1,9 @@
+# Path to config directory
+ERR_CONFIG_PATH=/etc/err
+
+# Path to pid file
+ERR_PID_FILE=/var/run/err/err.pid
+
+# User and group to run bot with
+ERR_USER=err
+ERR_GROUP=err
diff --git a/net-im/err/files/errd.initd b/net-im/err/files/errd.initd
new file mode 100644
index 000000000000..438d3dcc4501
--- /dev/null
+++ b/net-im/err/files/errd.initd
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ # create piddir if necessary, bug #448498
+ local piddir=$(dirname ${ERR_PID_FILE})
+ checkpath -q -d -o err:err -m 0770 "${piddir}" || {
+ eend 1
+ return 1
+ }
+
+ ebegin "Starting errd"
+ start-stop-daemon --start --make-pidfile --pidfile ${ERR_PID_FILE} --background --quiet -u ${ERR_USER}:${ERR_GROUP} \
+ --exec /usr/bin/python2 -- /usr/bin/err.py -c ${ERR_CONFIG_PATH}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping errd"
+ start-stop-daemon --stop --pidfile ${ERR_PID_FILE}
+ eend $?
+}
diff --git a/net-im/err/metadata.xml b/net-im/err/metadata.xml
new file mode 100644
index 000000000000..e6e55f5a3b8c
--- /dev/null
+++ b/net-im/err/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <use>
+ <flag name="irc">Pull optional dependencies, needed for IRC backend</flag>
+ <flag name="plugins">Enable support for installing plugins with <pkg>dev-vcs/git</pkg></flag>
+ </use>
+ <upstream>
+ <remote-id type="github">gbin/err</remote-id>
+ <maintainer status="active">
+ <email>gbin@gootz.net</email>
+ <name>Guillaume BINET</name>
+ </maintainer>
+ <remote-id type="pypi">err</remote-id>
+ </upstream>
+</pkgmetadata>