1 |
commit: 8d623b37d9f1c6153e2259982849a9887f0610f3 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 31 05:26:44 2019 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 31 05:27:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d623b37 |
7 |
|
8 |
net-misc/memcached: 1.5.17 bump |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.17 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
net-misc/memcached/Manifest | 1 + |
14 |
net-misc/memcached/memcached-1.5.17.ebuild | 95 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 96 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest |
18 |
index 4d5089de04a..56307b64b5e 100644 |
19 |
--- a/net-misc/memcached/Manifest |
20 |
+++ b/net-misc/memcached/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST memcached-1.5.14.tar.gz 485076 BLAKE2B 729b4b708e921184bfedadbb02b0304eb09dcebbbd1420605deb608dcd7dea25a8982ca0f387f237a1a6412b4682372018c593396ef9bff5aa0fa901c0fdafd6 SHA512 d06083d971d0a40195b4dfb252a3bf7c3a0d20b2dcad56726ff9e0b87ba84024309300516dad40181f1b7af4d9c4f35924383977c5e1ff9b5f13d2ef05f684ed |
23 |
DIST memcached-1.5.16.tar.gz 487868 BLAKE2B b9889866b8adbbbf23785f0da35f6f6b3cd5c842c6167beab3dd5385d6ed53e4607a2ffc18cd815005f2a1d67a3a549c780411b93d34335c541f4999d793b8a0 SHA512 999872c4c68e0210feab76f74c9487fbfb652cf3e6b7fa347f882767aad41ea6d8ba3ee056494409c054d673fc209032d8a890605810b2c6c9048d26d50751a0 |
24 |
+DIST memcached-1.5.17.tar.gz 490891 BLAKE2B a971083ec29452755de953537ff9c23fc872496d4746420c9c20e91c226481bd3818c00495cb7a5d85f2bd38683061e57a9e92cbfe0e4cd28bcafde37f05cabf SHA512 533c916015d738ff4c7ba8420654ae15b19370b3e959b89d43bc60cae1bda65d36906be05fad44a025ea1878570a8c1a36041c4e4c0cdf0cea84e6bb0e7ba325 |
25 |
|
26 |
diff --git a/net-misc/memcached/memcached-1.5.17.ebuild b/net-misc/memcached/memcached-1.5.17.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8d046a22030 |
29 |
--- /dev/null |
30 |
+++ b/net-misc/memcached/memcached-1.5.17.ebuild |
31 |
@@ -0,0 +1,95 @@ |
32 |
+# Copyright 1999-2019 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+inherit autotools eutils flag-o-matic systemd user |
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 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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 |
+ test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )" |
58 |
+ |
59 |
+S="${WORKDIR}/${MY_P}" |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch" |
63 |
+ epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch" |
64 |
+ epatch "${FILESDIR}/${PN}-1.4.4-as-needed.patch" |
65 |
+ epatch "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.patch" |
66 |
+ sed -i -e 's,-Werror,,g' configure.ac || die |
67 |
+ sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die |
68 |
+ eautoreconf |
69 |
+ use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN |
70 |
+ |
71 |
+ # Tweak upstream systemd unit to use Gentoo variables/envfile. |
72 |
+ # As noted by bug #587440 |
73 |
+ sed -i -e '/^ExecStart/{ |
74 |
+ s,{USER},{MEMCACHED_RUNAS},g; |
75 |
+ s,{CACHESIZE},{MEMUSAGE},g; |
76 |
+ s,OPTIONS,MISC_OPTS,g; |
77 |
+ }; |
78 |
+ /Environment=/{s,OPTIONS,MISC_OPTS,g;}; |
79 |
+ /EnvironmentFile=/{s,/sysconfig/,/conf.d/,g;}; |
80 |
+ ' \ |
81 |
+ "${S}"/scripts/memcached.service |
82 |
+ default |
83 |
+} |
84 |
+ |
85 |
+src_configure() { |
86 |
+ econf \ |
87 |
+ --disable-docs \ |
88 |
+ $(use_enable sasl) |
89 |
+ # The xml2rfc tool to build the additional docs requires TCL :-( |
90 |
+ # `use_enable doc docs` |
91 |
+} |
92 |
+ |
93 |
+src_compile() { |
94 |
+ # There is a heavy degree of per-object compile flags |
95 |
+ # Users do NOT know better than upstream. Trying to compile the testapp and |
96 |
+ # the -debug version with -DNDEBUG _WILL_ fail. |
97 |
+ append-flags -UNDEBUG -pthread |
98 |
+ emake testapp memcached-debug CFLAGS="${CFLAGS}" |
99 |
+ filter-flags -UNDEBUG |
100 |
+ emake |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ emake DESTDIR="${D}" install |
105 |
+ dobin scripts/memcached-tool |
106 |
+ use debug && dobin memcached-debug |
107 |
+ |
108 |
+ dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt} |
109 |
+ |
110 |
+ newconfd "${FILESDIR}/memcached.confd" memcached |
111 |
+ newinitd "${FILESDIR}/memcached.init2" memcached |
112 |
+ systemd_dounit "${S}/scripts/memcached.service" |
113 |
+} |
114 |
+ |
115 |
+pkg_postinst() { |
116 |
+ enewuser memcached -1 -1 /dev/null daemon |
117 |
+ |
118 |
+ elog "With this version of Memcached Gentoo now supports multiple instances." |
119 |
+ elog "To enable this you should create a symlink in /etc/init.d/ for each instance" |
120 |
+ elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/" |
121 |
+ elog "Please see Gentoo bug #122246 for more info" |
122 |
+} |
123 |
+ |
124 |
+src_test() { |
125 |
+ emake -j1 test |
126 |
+} |