diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-misc/beanstalkd |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-misc/beanstalkd')
-rw-r--r-- | app-misc/beanstalkd/Manifest | 9 | ||||
-rw-r--r-- | app-misc/beanstalkd/beanstalkd-1.10.ebuild | 50 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/conf | 14 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/conf-1.9 | 20 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/init | 24 | ||||
-rw-r--r-- | app-misc/beanstalkd/files/init-1.9 | 25 | ||||
-rw-r--r-- | app-misc/beanstalkd/metadata.xml | 14 |
7 files changed, 156 insertions, 0 deletions
diff --git a/app-misc/beanstalkd/Manifest b/app-misc/beanstalkd/Manifest new file mode 100644 index 000000000000..0731ef0ca252 --- /dev/null +++ b/app-misc/beanstalkd/Manifest @@ -0,0 +1,9 @@ +AUX conf 292 SHA256 04cc39cb8fdb9a20c03912a87bc368f1888b426d08da9b6f41fa8cba4e8f9b07 SHA512 56c3fe690e513f0e96ef486dbee3dc862409321935be03977d38a47641e7b8fd87c2b2a29d444320a1554689df497b5aee204922f2059a1e2d1139b8fce6291a WHIRLPOOL dc98836531dc0ddf2b3a509021826fcfdd9db7c43fbfeff7b584eb1b2fbfb9cece2ead3e61d55d1b8f48850e7e652ddbcdfe0ace029203fcea51329f538c9325 +AUX conf-1.9 385 SHA256 a735fcc32f1f9d2f0f6f12800d89868138f3780db228494aa321006f72f84daa SHA512 981dc0dca903f8ebdd3cc80368650d42f02bf194ccd12e64d2d4cc273ae13ec42da69341529750bca7232d7bcb3df67a02aa3db6179c4835682e86fabef689f0 WHIRLPOOL b434477e6bf15169e55f42fe12ed8b8d89853c0082066083f5629002b31525ef801ccb5bd271d18e72d2f112a5d31d8d935e5fbae18e0d1603e6c6e9f27593e1 +AUX init 477 SHA256 d2ccb5f7be3ac1e0f876f32bd47237f376e3b716d6a5b4c54e8d72821b2ebcf2 SHA512 cbeaeac8a993711822086a761b624783bbf4ff11cff5c569a4c0cd3e6e174fe36904a661155c1460f7b43e0b2d6b631cd9e290d76138520021a702567b0494dd WHIRLPOOL 6f2479d47d6dc13ea39680edc58abfda1cfb743da12f5f1a6de0001a2ea5374866a2c8f12a6de177e0dd2d1000ea4625041a60d3a7d373472aac88ebe697aeca +AUX init-1.9 511 SHA256 075257735916e9e8e613d6b32dbb47c2dc07c4917fab8a387b80b4cf73ef447d SHA512 7e16023709e72724f411953b2d042c6bb369be7c0a9c891d3e03ea12d4c175ce82e57466c8b2c2bf8611cb1f5aee9c76ae5adad0ad38e99c93525d732715546a WHIRLPOOL 65e06a52991659bd3d253b0c72e617915b30d77fa4c999aa0e5f478a7a8bf23b1ec421b520dddd0b06fe0b67201553fd666c889a4dd6efb61a7c0efcd9cc7396 +DIST beanstalkd-1.10.tar.gz 66243 SHA256 923b1e195e168c2a91adcc75371231c26dcf23868ed3e0403cd4b1d662a52d59 SHA512 db85e4a32c686330e50d64d497a39bb9806de42a2c2d2c84eb260ae8cfad91b4c99eef6a8f0ab3e62d0ca71a31837778ec68a4299899ac5a9d94a5a4403d673b WHIRLPOOL 3074fb2df0aa835d46d95a90a573bfe2afd1d316da6c9739d37d1eafb85b987ef12c3113f2bc51afed014e151e5eb064922b46c16a92e3113480b1c5ec8dc50c +EBUILD beanstalkd-1.10.ebuild 1074 SHA256 400c08a247fd76f03c302753f68988ea7efac8d04c802c649efa7df2b463ab51 SHA512 193a42c77ad21219125c1ff7d0e9d7044e050cdec7538f63abd77e5cba8cbb7d9f920a9a74536a140a83945e00b5a3927420c83349731adabe2cad78203b3e65 WHIRLPOOL 5f1a229a7fa0de3389dfd815ed3a0b57f2a273d91b66cffb9fc6fef23b8ae7fd9fc32ee083bd2479870fb77efb57ed906a388245dfc1909884591f60554fcd69 +MISC ChangeLog 3050 SHA256 c1af20e4a81f443e18a02cdd7de446e3abeedef36083b85d642d114e046d8baa SHA512 e2eae3592822f13ccbb2b0253515a6f8065505c5a8c60fae846029210fd86a550acc9784a526443112640956b200f833ad537e56f5dfe5009fae7b744e382945 WHIRLPOOL 89b60cc75fd111e2134659f21e4dafb17274740d53508fc6d9aed4603e872312b47e8b68552206d02197149a8c2534c70ce7fc9fdc6c2fea312854ac6b0cc7bf +MISC ChangeLog-2015 5863 SHA256 e33dae1f4062b4108a7fccb9ce64f4328f3ddd105b97d4e37da16f8ffb74d219 SHA512 0af8b7fa8e907cb317de444da3ac317f285c6776fee083aeef24dd139d2431357e03b5114e47f6452fd51aae9261af94b4f72bcfb5691de81014a51eb9b14e05 WHIRLPOOL 4b0960c27e31fed8afcf0491942697ba27565a849571e24ae1bfb546e809c98d47516033ad16916776faa8450a1358e46a1043161a7ab917b665af44629566d5 +MISC metadata.xml 436 SHA256 056e10ec74d6e099d0e3f904f7a38963bc2a7cae11782f80368fa5c77beb1b3f SHA512 7766293e42fb4786e971b259480f4e697745d23db9b332e24c7edda52d8ccbc2ebdb1ed1b1c9265f22d9ec698fc144acd6e7576cef66f3a33db8a4f102b08140 WHIRLPOOL 3111fa95f72580a6739f191fd646a637dcf1f418425b446aa8917bd9871b8811ecc536e68d656aeb313105313ff9784f7431a96ca52d02ea0fd75681fa0980aa diff --git a/app-misc/beanstalkd/beanstalkd-1.10.ebuild b/app-misc/beanstalkd/beanstalkd-1.10.ebuild new file mode 100644 index 000000000000..425c18c7b37e --- /dev/null +++ b/app-misc/beanstalkd/beanstalkd-1.10.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils systemd toolchain-funcs user + +DESCRIPTION="A simple, fast work queue" +HOMEPAGE="http://kr.github.io/beanstalkd/" +SRC_URI="https://github.com/kr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~mips x86 ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x64-macos ~x86-macos" + +RDEPEND="" +DEPEND="" + +IUSE="" + +DOCS=( README News docs/protocol.txt ) + +pkg_setup() { + enewuser beanstalk -1 -1 /var/lib/beanstalkd daemon +} + +src_prepare() { + sed -i -e "s/CFLAGS=/CFLAGS?=/" \ + -e "s/LDLIBS/LDFLAGS/" \ + -e "s/LDFLAGS=/LDFLAGS?=/" Makefile +} + +src_compile() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)" +} + +src_install() { + dobin beanstalkd + + DATADIR=/var/lib/${PN} + dodir ${DATADIR} + fowners beanstalk:daemon ${DATADIR} + + doman doc/"${PN}".1 + + newconfd "${FILESDIR}/conf-1.9" beanstalkd + newinitd "${FILESDIR}/init-1.9" beanstalkd + + systemd_dounit "${S}/adm/systemd/${PN}".{service,socket} +} diff --git a/app-misc/beanstalkd/files/conf b/app-misc/beanstalkd/files/conf new file mode 100644 index 000000000000..c646326bf271 --- /dev/null +++ b/app-misc/beanstalkd/files/conf @@ -0,0 +1,14 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +BEANSTALKD_BINARY="/usr/bin/beanstalkd" +PIDFILE="/var/run/beanstalkd.pid" + +# User to run as +USER="beanstalk" + +# Port to listen on +PORT="11300" + +# Address to listen on +ADDR="127.0.0.1" diff --git a/app-misc/beanstalkd/files/conf-1.9 b/app-misc/beanstalkd/files/conf-1.9 new file mode 100644 index 000000000000..0b35cb874076 --- /dev/null +++ b/app-misc/beanstalkd/files/conf-1.9 @@ -0,0 +1,20 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +BEANSTALKD_BINARY="/usr/bin/beanstalkd" +PIDFILE="/run/beanstalkd.pid" + +# User to run as +USER="beanstalk" + +# Port to listen on +PORT="11300" + +# Address to listen on +ADDR="127.0.0.1" + +# Datadir (where to store queue) +DATADIR="/var/lib/beanstalkd" + +# Max job size +JOB_SIZE="65536" diff --git a/app-misc/beanstalkd/files/init b/app-misc/beanstalkd/files/init new file mode 100644 index 000000000000..2dddc9d6d6f4 --- /dev/null +++ b/app-misc/beanstalkd/files/init @@ -0,0 +1,24 @@ +#!/sbin/openrc-run +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting beanstalkd" + /sbin/start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} \ + -- -d -p ${PORT} -l ${ADDR} -u ${USER} + eend $? +} + +stop() { + ebegin "Stopping beanstalkd" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} + eend $? +} diff --git a/app-misc/beanstalkd/files/init-1.9 b/app-misc/beanstalkd/files/init-1.9 new file mode 100644 index 000000000000..14dae315e170 --- /dev/null +++ b/app-misc/beanstalkd/files/init-1.9 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of MIT + +depend() { + need net +} + +start() { + ebegin "Starting beanstalkd" + /sbin/start-stop-daemon --start \ + --background \ + --pidfile ${PIDFILE} --make-pidfile \ + --exec ${BEANSTALKD_BINARY} \ + -- -b ${DATADIR} -p ${PORT} -l ${ADDR} -u ${USER} -z ${JOB_SIZE} + eend $? +} + +stop() { + ebegin "Stopping beanstalkd" + start-stop-daemon --stop --quiet \ + --pidfile ${PIDFILE} \ + --exec ${BEANSTALKD_BINARY} + eend $? +} diff --git a/app-misc/beanstalkd/metadata.xml b/app-misc/beanstalkd/metadata.xml new file mode 100644 index 000000000000..f0352343e9be --- /dev/null +++ b/app-misc/beanstalkd/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>patrick@gentoo.org</email> + <name>Patrick Lauer</name> + </maintainer> + <longdescription lang="en"> +beanstalked is a fast distributed workqueue service +</longdescription> + <upstream> + <remote-id type="github">kr/beanstalkd</remote-id> + </upstream> +</pkgmetadata> |