summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Koltsov <maksbotan@gentoo.org>2012-06-21 11:27:53 +0000
committerMaxim Koltsov <maksbotan@gentoo.org>2012-06-21 11:27:53 +0000
commit9f77bd0ffd9fea04e998f4ed3e835947d56855ab (patch)
treeaa1df3942d841fbf9d04c8b834cf0140048c7dbe /net-im/err
parentnet-ftp/pureadmin: Add fix for gold, #369103 (diff)
downloadgentoo-2-9f77bd0ffd9fea04e998f4ed3e835947d56855ab.tar.gz
gentoo-2-9f77bd0ffd9fea04e998f4ed3e835947d56855ab.tar.bz2
gentoo-2-9f77bd0ffd9fea04e998f4ed3e835947d56855ab.zip
Add net-im/err, bug 421373. Thanks to Pinkbyte
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'net-im/err')
-rw-r--r--net-im/err/ChangeLog11
-rw-r--r--net-im/err/Manifest6
-rw-r--r--net-im/err/err-1.2.1.ebuild50
-rw-r--r--net-im/err/err-9999.ebuild52
-rw-r--r--net-im/err/files/errd.confd4
-rw-r--r--net-im/err/files/errd.initd20
-rw-r--r--net-im/err/metadata.xml13
7 files changed, 156 insertions, 0 deletions
diff --git a/net-im/err/ChangeLog b/net-im/err/ChangeLog
new file mode 100644
index 000000000000..b00c58cac981
--- /dev/null
+++ b/net-im/err/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-im/err
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/err/ChangeLog,v 1.1 2012/06/21 11:27:53 maksbotan Exp $
+
+*err-9999 (21 Jun 2012)
+*err-1.2.1 (21 Jun 2012)
+
+ 21 Jun 2012; Maxim Koltsov <maksbotan@gentoo.org> +err-1.2.1.ebuild,
+ +err-9999.ebuild, +files/errd.confd, +files/errd.initd, +metadata.xml:
+ Add net-im/err, bug 421373. Thanks to Pinkbyte
+
diff --git a/net-im/err/Manifest b/net-im/err/Manifest
new file mode 100644
index 000000000000..317a855c8e99
--- /dev/null
+++ b/net-im/err/Manifest
@@ -0,0 +1,6 @@
+AUX errd.confd 86 RMD160 e0ed18e871e43f8730ff5c81282e7df4ef51fb1f SHA1 d18318b2fd95b864c4cdca2263561532ce76e0f7 SHA256 2ce2d0233670c1a6077274ff84f9e8f7b65075a5dc8682efadd43f9476437962
+AUX errd.initd 484 RMD160 c5d46daa37ff12865ffc7fcfef0ea8ce522d914d SHA1 84294cbf275d3d80dabc4fb1500545ee69ae2c3f SHA256 b5ddcc63b4906cc19e5a2e6880f186443818437f2511c9837995f7298221d1ef
+DIST err-1.2.1.tar.gz 24308 RMD160 77b83061ce9ffaece8aaadfa5058f473b0ddbd88 SHA1 3fc9f3f29e4843d37b6fb8191f22f4595629e8b6 SHA256 969b693935578b9fb0fcb2c42a956d139040fadbf41e6911ea756c18f19a2a03
+EBUILD err-1.2.1.ebuild 1132 RMD160 3d97e25a5574110c583e15a3fa6205b75fb4d045 SHA1 dde210b4b58042f6f60bdee2edb37d04b532a60a SHA256 090afc78882c5f64148500746048a4f23c077b36c4829bcea7fb81f53746ecf4
+EBUILD err-9999.ebuild 1141 RMD160 df6ae87b738679b96caffce17c117def1dd55099 SHA1 f2853914ce999817d825acb9fca9b4bc30e2a63d SHA256 1511f7ccba6492f02867918476248b1c51bdcfd516cfd41b10dcea910ba44f47
+MISC metadata.xml 359 RMD160 36855a2b6f51e74fdf14ae21f62acb2fd47f14c6 SHA1 546a05efdf5021ae7fd4e86328ff455a00883c69 SHA256 4d0647b6a16b9f160f9b2d3ae0d0d56117fd2dea5e8ddbe7829b3b3fd5ae7e30
diff --git a/net-im/err/err-1.2.1.ebuild b/net-im/err/err-1.2.1.ebuild
new file mode 100644
index 000000000000..a608da06582e
--- /dev/null
+++ b/net-im/err/err-1.2.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/err/err-1.2.1.ebuild,v 1.1 2012/06/21 11:27:53 maksbotan Exp $
+
+EAPI=4
+
+DISTUTILS_SRC_TEST="setup.py"
+
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_DEPEND="2:2.7"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils user
+
+DESCRIPTION="err is a plugin based XMPP chatbot designed to be easily deployable, extensible and maintainable."
+HOMEPAGE="http://gbin.github.com/err/"
+
+SRC_URI="mirror://pypi/e/${PN}/${P}.tar.gz"
+KEYWORDS="~amd64 ~x86"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-python/setuptools"
+RDEPEND="dev-python/xmpppy
+ dev-python/python-daemon
+ dev-python/yapsy"
+
+pkg_setup() {
+ python_pkg_setup
+ ebegin "Creating err group and user"
+ enewgroup 'err'
+ enewuser 'err' -1 -1 -1 'err'
+ eend ${?}
+}
+
+src_install() {
+ distutils_src_install
+ newinitd "${FILESDIR}"/errd.initd errd
+ newconfd "${FILESDIR}"/errd.confd errd
+ dodir /etc/${PN}
+ dodir /var/lib/${PN}
+ keepdir /var/log/${PN}
+ keepdir /var/run/${PN}
+ fowners -R err:err /var/lib/${PN}
+ fowners -R err:err /var/log/${PN}
+ fowners -R err:err /var/run/${PN}
+ insinto /etc/${PN}
+ newins errbot/config-template.py config.py
+}
diff --git a/net-im/err/err-9999.ebuild b/net-im/err/err-9999.ebuild
new file mode 100644
index 000000000000..fff0290dae82
--- /dev/null
+++ b/net-im/err/err-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/err/err-9999.ebuild,v 1.1 2012/06/21 11:27:53 maksbotan Exp $
+
+EAPI=4
+
+EGIT_REPO_URI="git://github.com/gbin/err.git"
+
+DISTUTILS_SRC_TEST="setup.py"
+
+SUPPORT_PYTHON_ABIS="1"
+PYTHON_DEPEND="2:2.7"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils eutils git-2 user
+
+DESCRIPTION="err is a plugin based XMPP chatbot designed to be easily deployable, extensible and maintainable."
+HOMEPAGE="http://gbin.github.com/err/"
+
+SRC_URI=""
+KEYWORDS=""
+LICENSE="GPL-3"
+SLOT="0"
+IUSE=""
+
+DEPEND="dev-python/setuptools"
+RDEPEND="dev-python/xmpppy
+ dev-python/python-daemon
+ dev-python/yapsy"
+
+pkg_setup() {
+ python_pkg_setup
+ ebegin "Creating err group and user"
+ enewgroup 'err'
+ enewuser 'err' -1 -1 -1 'err'
+ eend ${?}
+}
+
+src_install() {
+ distutils_src_install
+ newinitd "${FILESDIR}"/errd.initd errd
+ newconfd "${FILESDIR}"/errd.confd errd
+ dodir /etc/${PN}
+ dodir /var/lib/${PN}
+ keepdir /var/log/${PN}
+ keepdir /var/run/${PN}
+ fowners -R err:err /var/lib/${PN}
+ fowners -R err:err /var/log/${PN}
+ fowners -R err:err /var/run/${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..9511228d0b47
--- /dev/null
+++ b/net-im/err/files/errd.confd
@@ -0,0 +1,4 @@
+ERR_CONFIG_PATH=/etc/err
+ERR_PID_FILE=/var/run/err/err.pid
+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..7e3001a696d6
--- /dev/null
+++ b/net-im/err/files/errd.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting errd"
+ start-stop-daemon --start --make-pidfile --pidfile ${ERR_PID_FILE} --background --quiet \
+ --exec /usr/bin/python2 -- /usr/bin/err.py -c ${ERR_CONFIG_PATH} -u ${ERR_USER} -g ${ERR_GROUP}
+ 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..9e46a1581b1b
--- /dev/null
+++ b/net-im/err/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>admin@pinkbyte.ru</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+</pkgmetadata>