commit:     f96f12285aa7c9eb92848bb20ab9ad80d372d177
Author:     Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 14 23:36:26 2016 +0000
Commit:     Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Fri Oct 14 23:36:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f96f1228

net-misc/memcached: bup

Package-Manager: portage-2.3.0

 net-misc/memcached/Manifest                |  1 +
 net-misc/memcached/memcached-1.4.32.ebuild | 83 ++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest
index 612d990..aae0b1a 100644
--- a/net-misc/memcached/Manifest
+++ b/net-misc/memcached/Manifest
@@ -9,3 +9,4 @@ DIST memcached-1.4.27.tar.gz 377793 SHA256 
96a90e7abec041a3c03258b6ce01ab21be16a
 DIST memcached-1.4.29.tar.gz 383966 SHA256 
c61a3a7f9c82e574559797bbf4bb01ad8b79e436ca80b8e46f5b51ae39b03d0b SHA512 
fa44a2599f9cfea6002fa6b9b12e8ecf64820f87b164c9e98e0c25800c79473de5db6a9040967c1b8e436d75eede7318308275479d046e33129a6fdc7882e21f
 WHIRLPOOL 
51c9e00a72fa0efe2b198fb70bc9aee4d54901fcc4eb1fce124730e688a5b408af9449a9920a621dab795820dbeab63a8b1a072caf277bd3fb5fe325236c807d
 DIST memcached-1.4.30.tar.gz 384231 SHA256 
e0bea597c9082557f3357f63db08c3d5121ccc8502f300a48d4cb84d22e8be5f SHA512 
cf41832d6a112778d06cdbaa780bbcf8d7d07850c592e3ce1573a4561d9146e7081407f726bd49be8a08130e7ac42a86bed984290d4a19c4a173671698587bb7
 WHIRLPOOL 
b434a342da56933ccbe5e70dd303d13338a01a1359d7225534d65ac78483229a13de9685ff7740ac9116fceec79dfc44bc505618c60118cdb45d80e5b8c87430
 DIST memcached-1.4.31.tar.gz 389502 SHA256 
77ce5f820bafe94c33bf7bd86268d9bcdb3b76f68128d795b106db53d528707f SHA512 
0e3faf7f574599d06df6764c98e0f01f3ed64c480efdc59ed01975e6149a836a1d47844ed9c1824a596ae1c42c1c5e36fd64692399d1073c120ea97a655c3532
 WHIRLPOOL 
51b7cbe3dca71895b8702af527644f671e6e5683b2af6b85abf9f73ccea41d5ea2e6a2ecb034f0e932a64cd9eee06225ea584d04ca02c49efbde4322de1f6899
+DIST memcached-1.4.32.tar.gz 389771 SHA256 
54bb9acd5fbbb73cd1fbfa67cbc6b301009a2835a26c8a4c3dba634a0c3d875d SHA512 
60e1d7f76df34cc1d822fcba680c98e2f4933b8c51c0bf0510b68afbd73f97579ad211806220121b1d9c4fb1417cee7e8db85ef7e222243679a0530974a23e37
 WHIRLPOOL 
423fccb730a48b2af7473aa244ef036c1d8d9dafd563cfafa23acd56d9abcd75e98a6f9d4c842fdb5358f4060b77e9591e9ea3ff5c6dcbbbf4387dea033bc67f

diff --git a/net-misc/memcached/memcached-1.4.32.ebuild 
b/net-misc/memcached/memcached-1.4.32.ebuild
new file mode 100644
index 00000000..53f0984
--- /dev/null
+++ b/net-misc/memcached/memcached-1.4.32.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils flag-o-matic systemd user
+
+MY_PV="${PV/_rc/-rc}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="High-performance, distributed memory object caching system"
+HOMEPAGE="http://memcached.org/";
+SRC_URI="http://www.memcached.org/files/${MY_P}.tar.gz";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh 
~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux 
~ppc-macos ~x64-macos ~x86-macos"
+IUSE="test slabs-reassign debug sasl selinux" # hugetlbfs later
+
+RDEPEND=">=dev-libs/libevent-1.4
+                dev-lang/perl
+                sasl? ( dev-libs/cyrus-sasl )
+                selinux? ( sec-policy/selinux-memcached )"
+DEPEND="${RDEPEND}
+               test? ( virtual/perl-Test-Harness 
>=dev-perl/Cache-Memcached-1.24 )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
+       # Handled different upstream
+       #epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
+       epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch"
+       epatch "${FILESDIR}/${PN}-1.4.4-as-needed.patch"
+       epatch "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.patch"
+       sed -i -e 's,-Werror,,g' configure.ac || die
+       sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die
+       eautoreconf
+       use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
+}
+
+src_configure() {
+       econf \
+               --disable-docs \
+               $(use_enable sasl)
+       # The xml2rfc tool to build the additional docs requires TCL :-(
+       # `use_enable doc docs`
+}
+
+src_compile() {
+       # There is a heavy degree of per-object compile flags
+       # Users do NOT know better than upstream. Trying to compile the testapp 
and
+       # the -debug version with -DNDEBUG _WILL_ fail.
+       append-flags -UNDEBUG -pthread
+       emake testapp memcached-debug CFLAGS="${CFLAGS}"
+       filter-flags -UNDEBUG
+       emake
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       dobin scripts/memcached-tool
+       use debug && dobin memcached-debug
+
+       dodoc AUTHORS ChangeLog NEWS README.md doc/{CONTRIBUTORS,*.txt}
+
+       newconfd "${FILESDIR}/memcached.confd" memcached
+       newinitd "${FILESDIR}/memcached.init2" memcached
+       systemd_dounit "${FILESDIR}/memcached.service"
+}
+
+pkg_postinst() {
+       enewuser memcached -1 -1 /dev/null daemon
+
+       elog "With this version of Memcached Gentoo now supports multiple 
instances."
+       elog "To enable this you should create a symlink in /etc/init.d/ for 
each instance"
+       elog "to /etc/init.d/memcached and create the matching conf files in 
/etc/conf.d/"
+       elog "Please see Gentoo bug #122246 for more info"
+}
+
+src_test() {
+       emake -j1 test
+}

Reply via email to