blob: 44a4a982ddbf263f4431e6c80bfbfd28c77fb5cb (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/beanstalkd/beanstalkd-1.5.ebuild,v 1.4 2012/06/01 00:26:21 zmedico Exp $
EAPI="3"
inherit eutils user
DESCRIPTION="A fast, distributed, in-memory workqueue service"
HOMEPAGE="http://xph.us/software/beanstalkd/"
SRC_URI="mirror://github/kr/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~amd64-linux ~mips ~sparc-fbsd ~x64-macos ~x86 ~x86-fbsd ~x86-macos"
RDEPEND=""
DEPEND="test? ( dev-lang/python )"
IUSE="test"
pkg_setup() {
enewuser beanstalk -1 -1 /var/lib/beanstalkd daemon
}
src_compile() {
emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die "compile failed"
}
src_install() {
dobin beanstalkd || die
DATADIR=/var/lib/${PN}
dodir ${DATADIR} || die
fowners beanstalk:daemon ${DATADIR}
doman doc/"${PN}".1
dodoc README NEWS.md doc/*.txt || die
newconfd "${FILESDIR}/conf-1.4.2" beanstalkd
newinitd "${FILESDIR}/init-1.4.6" beanstalkd
}
|