1 |
commit: cc2e409f76d4cc355d8c5609737c1a48327e8aa4 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 26 15:19:41 2021 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 26 15:19:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc2e409f |
7 |
|
8 |
net-misc/memcached: 1.6.10 bump |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
net-misc/memcached/Manifest | 1 + |
14 |
net-misc/memcached/memcached-1.6.10.ebuild | 104 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 105 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest |
18 |
index 0ac5f7fa2ee..73ac96d0ebc 100644 |
19 |
--- a/net-misc/memcached/Manifest |
20 |
+++ b/net-misc/memcached/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST memcached-1.6.10.tar.gz 609630 BLAKE2B 1b4d632cb57e1f49d6e667aea5a4d2a1c74bbac038db329d84f2b9229e6db8204c2c0b55075ef238a5c3fa3751de5a0fb843a2ee0e71a648a194aed832d6dd36 SHA512 46d41c87afd0fb3a15bd418d757a25f93bee7d052653a488b4bc29a795826b9c238590cd9ee602ca4e5f645ece74685c644a9bb12bb58ff79b098c4fcf5b3835 |
23 |
DIST memcached-1.6.9.tar.gz 556137 BLAKE2B 429d0d5de480d0a17a2c9942f595fab125d60ef1f3ff88754ab6e97eb9acdb71b26e40323babc7197e41d1605a82d2f094ce5638d2f4442467c8f652e20aaa44 SHA512 2169225aefe6bd7481d919ae3ef95ed85d2ed595f49daceeb13d2dc268097d4aee98cf604824fca103efcdffa7461bb26814209906a5dabf1a5d30af43f6a66c |
24 |
|
25 |
diff --git a/net-misc/memcached/memcached-1.6.10.ebuild b/net-misc/memcached/memcached-1.6.10.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..16eba892a14 |
28 |
--- /dev/null |
29 |
+++ b/net-misc/memcached/memcached-1.6.10.ebuild |
30 |
@@ -0,0 +1,104 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit autotools flag-o-matic systemd |
37 |
+ |
38 |
+MY_PV="${PV/_rc/-rc}" |
39 |
+MY_P="${PN}-${MY_PV}" |
40 |
+ |
41 |
+DESCRIPTION="High-performance, distributed memory object caching system" |
42 |
+HOMEPAGE="http://memcached.org/" |
43 |
+SRC_URI="https://www.memcached.org/files/${MY_P}.tar.gz |
44 |
+ https://www.memcached.org/files/old/${MY_P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
49 |
+IUSE="debug sasl seccomp selinux slabs-reassign test" # hugetlbfs later |
50 |
+ |
51 |
+RDEPEND=">=dev-libs/libevent-1.4:= |
52 |
+ dev-lang/perl |
53 |
+ sasl? ( dev-libs/cyrus-sasl ) |
54 |
+ seccomp? ( sys-libs/libseccomp ) |
55 |
+ selinux? ( sec-policy/selinux-memcached )" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ acct-user/memcached |
58 |
+ test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )" |
59 |
+ |
60 |
+S="${WORKDIR}/${MY_P}" |
61 |
+ |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${PN}-1.2.2-fbsd.patch" |
66 |
+ "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch" |
67 |
+ "${FILESDIR}/${PN}-1.4.4-as-needed.patch" |
68 |
+ "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.patch" |
69 |
+) |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ |
74 |
+ sed -i -e 's,-Werror,,g' configure.ac || die |
75 |
+ sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die |
76 |
+ |
77 |
+ eautoreconf |
78 |
+ |
79 |
+ use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN |
80 |
+ |
81 |
+ # Tweak upstream systemd unit to use Gentoo variables/envfile. |
82 |
+ # As noted by bug #587440 |
83 |
+ sed -i -e '/^ExecStart/{ |
84 |
+ s,{USER},{MEMCACHED_RUNAS},g; |
85 |
+ s,{CACHESIZE},{MEMUSAGE},g; |
86 |
+ s,OPTIONS,MISC_OPTS,g; |
87 |
+ }; |
88 |
+ /Environment=/{s,OPTIONS,MISC_OPTS,g;}; |
89 |
+ /EnvironmentFile=/{s,/sysconfig/,/conf.d/,g;}; |
90 |
+ ' \ |
91 |
+ "${S}"/scripts/memcached.service |
92 |
+} |
93 |
+ |
94 |
+src_configure() { |
95 |
+ econf \ |
96 |
+ --disable-docs \ |
97 |
+ $(use_enable sasl) |
98 |
+ # The xml2rfc tool to build the additional docs requires TCL :-( |
99 |
+ # `use_enable doc docs` |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ # There is a heavy degree of per-object compile flags |
104 |
+ # Users do NOT know better than upstream. Trying to compile the testapp and |
105 |
+ # the -debug version with -DNDEBUG _WILL_ fail. |
106 |
+ append-flags -UNDEBUG -pthread |
107 |
+ emake testapp memcached-debug CFLAGS="${CFLAGS}" |
108 |
+ |
109 |
+ filter-flags -UNDEBUG |
110 |
+ emake |
111 |
+} |
112 |
+ |
113 |
+src_test() { |
114 |
+ emake -j1 test |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ emake DESTDIR="${D}" install |
119 |
+ dobin scripts/memcached-tool |
120 |
+ use debug && dobin memcached-debug |
121 |
+ |
122 |
+ dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt} |
123 |
+ |
124 |
+ newconfd "${FILESDIR}/memcached.confd" memcached |
125 |
+ newinitd "${FILESDIR}/memcached.init2" memcached |
126 |
+ systemd_dounit "${S}/scripts/memcached.service" |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ elog "With this version of Memcached Gentoo now supports multiple instances." |
131 |
+ elog "To enable this you should create a symlink in /etc/init.d/ for each instance" |
132 |
+ elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/" |
133 |
+ elog "Please see Gentoo bug #122246 for more info" |
134 |
+} |