diff options
Diffstat (limited to 'app-misc/beanstalkd/beanstalkd-1.6.ebuild')
-rw-r--r-- | app-misc/beanstalkd/beanstalkd-1.6.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/beanstalkd-1.6.ebuild b/app-misc/beanstalkd/beanstalkd-1.6.ebuild new file mode 100644 index 000000000000..307ff8daac5a --- /dev/null +++ b/app-misc/beanstalkd/beanstalkd-1.6.ebuild @@ -0,0 +1,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.6.ebuild,v 1.1 2012/05/18 03:56:40 patrick Exp $ + +EAPI="3" + +inherit eutils + +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 ~mips ~x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~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 +} |