blob: 30a134c9306bbce2c0eb05a83fe6a2d3a5961052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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.3.1.ebuild,v 1.1 2012/10/06 09:15:59 pinkbyte 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="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="+plugins"
DEPEND="dev-python/setuptools"
RDEPEND="dev-python/xmpppy
dev-python/python-daemon
dev-python/yapsy
plugins? ( dev-vcs/git )"
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}
# Create plugins directory here because of err creates it itself with 0777 rights
dodir /var/lib/${PN}/plugins
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
}
|