| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-im/err/err-1.2.1.ebuild,v 1.1 2012/06/21 11:27:53 maksbotan Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
DISTUTILS_SRC_TEST="setup.py"
|
| 8 |
|
| 9 |
SUPPORT_PYTHON_ABIS="1"
|
| 10 |
PYTHON_DEPEND="2:2.7"
|
| 11 |
RESTRICT_PYTHON_ABIS="3.*"
|
| 12 |
|
| 13 |
inherit distutils eutils user
|
| 14 |
|
| 15 |
DESCRIPTION="err is a plugin based XMPP chatbot designed to be easily deployable, extensible and maintainable."
|
| 16 |
HOMEPAGE="http://gbin.github.com/err/"
|
| 17 |
|
| 18 |
SRC_URI="mirror://pypi/e/${PN}/${P}.tar.gz"
|
| 19 |
KEYWORDS="~amd64 ~x86"
|
| 20 |
LICENSE="GPL-3"
|
| 21 |
SLOT="0"
|
| 22 |
IUSE=""
|
| 23 |
|
| 24 |
DEPEND="dev-python/setuptools"
|
| 25 |
RDEPEND="dev-python/xmpppy
|
| 26 |
dev-python/python-daemon
|
| 27 |
dev-python/yapsy"
|
| 28 |
|
| 29 |
pkg_setup() {
|
| 30 |
python_pkg_setup
|
| 31 |
ebegin "Creating err group and user"
|
| 32 |
enewgroup 'err'
|
| 33 |
enewuser 'err' -1 -1 -1 'err'
|
| 34 |
eend ${?}
|
| 35 |
}
|
| 36 |
|
| 37 |
src_install() {
|
| 38 |
distutils_src_install
|
| 39 |
newinitd "${FILESDIR}"/errd.initd errd
|
| 40 |
newconfd "${FILESDIR}"/errd.confd errd
|
| 41 |
dodir /etc/${PN}
|
| 42 |
dodir /var/lib/${PN}
|
| 43 |
keepdir /var/log/${PN}
|
| 44 |
keepdir /var/run/${PN}
|
| 45 |
fowners -R err:err /var/lib/${PN}
|
| 46 |
fowners -R err:err /var/log/${PN}
|
| 47 |
fowners -R err:err /var/run/${PN}
|
| 48 |
insinto /etc/${PN}
|
| 49 |
newins errbot/config-template.py config.py
|
| 50 |
}
|