1 |
commit: 9dc843d04bd7146dfe6a7021536bdbc2839e5874 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 18 11:44:26 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 18 16:17:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dc843d0 |
7 |
|
8 |
app-misc/beanstalkd: migrate to GLEP 81 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/781257 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild | 43 +++++++++++++++++++++++++++ |
15 |
1 file changed, 43 insertions(+) |
16 |
|
17 |
diff --git a/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild b/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..489bb2fc14e |
20 |
--- /dev/null |
21 |
+++ b/app-misc/beanstalkd/beanstalkd-1.10-r1.ebuild |
22 |
@@ -0,0 +1,43 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit systemd toolchain-funcs |
29 |
+ |
30 |
+DESCRIPTION="A simple, fast work queue" |
31 |
+HOMEPAGE="https://kr.github.io/beanstalkd/" |
32 |
+SRC_URI="https://github.com/kr/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="MIT" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x64-macos" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ acct-group/beanstalk |
40 |
+ acct-user/beanstalk |
41 |
+" |
42 |
+ |
43 |
+DOCS=( README News docs/protocol.txt ) |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ sed -e "s/CFLAGS=/CFLAGS?=/" \ |
47 |
+ -e "s/LDLIBS/LDFLAGS/" \ |
48 |
+ -e "s/LDFLAGS=/LDFLAGS?=/" |
49 |
+ -i Makefile || die |
50 |
+} |
51 |
+ |
52 |
+src_compile() { |
53 |
+ emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" LD="$(tc-getLD)" |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ dobin beanstalkd |
58 |
+ |
59 |
+ doman doc/"${PN}".1 |
60 |
+ |
61 |
+ newconfd "${FILESDIR}/conf-1.9" beanstalkd |
62 |
+ newinitd "${FILESDIR}/init-1.9" beanstalkd |
63 |
+ |
64 |
+ systemd_dounit "${S}/adm/systemd/${PN}".{service,socket} |
65 |
+} |