summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2016-11-01 09:22:05 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2016-11-01 09:22:05 -0500
commitb86e3458ffa5820bfe7c5c29c1451e93780b1ff7 (patch)
tree2640110034bc592c9c4692dbeb898bf9233dd549 /net-misc/memcached
parentkde-misc/kcm-grub2: fix grub2 paths (diff)
downloadgentoo-b86e3458ffa5820bfe7c5c29c1451e93780b1ff7.tar.gz
gentoo-b86e3458ffa5820bfe7c5c29c1451e93780b1ff7.tar.bz2
gentoo-b86e3458ffa5820bfe7c5c29c1451e93780b1ff7.zip
net-misc/memcached: bup
Package-Manager: portage-2.3.0
Diffstat (limited to 'net-misc/memcached')
-rw-r--r--net-misc/memcached/Manifest1
-rw-r--r--net-misc/memcached/memcached-1.4.33.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest
index aae0b1afb766..3e7370291082 100644
--- a/net-misc/memcached/Manifest
+++ b/net-misc/memcached/Manifest
@@ -10,3 +10,4 @@ DIST memcached-1.4.29.tar.gz 383966 SHA256 c61a3a7f9c82e574559797bbf4bb01ad8b79e
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
+DIST memcached-1.4.33.tar.gz 389813 SHA256 83726c8d68258c56712373072abb25a449c257398075a39ec0867fd8ba69771d SHA512 00af5a2f46702fb8e606b1035cdaad125445d8eb701927a3ccccd7cd6c12e0811efb3ad917e3118043fd993b5c313f1aa0c4b2a471218e971a21fed7c896e136 WHIRLPOOL 05ee1d4ea931a1f1792283b1d947ffa48752cb6ad1417d06221f967b00e638f5fa21448080efc1de1adf7457bd202b6102ae1495ba1e01368fcba04565c95299
diff --git a/net-misc/memcached/memcached-1.4.33.ebuild b/net-misc/memcached/memcached-1.4.33.ebuild
new file mode 100644
index 000000000000..53f09846f643
--- /dev/null
+++ b/net-misc/memcached/memcached-1.4.33.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
+}