summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2016-07-14 13:24:20 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2016-07-14 13:24:20 -0500
commit707a96672fbcab36bc9dcfd361db159473604429 (patch)
tree5843205918d7b1417503f11918a6e9558c984358 /net-misc
parentapp-crypt/gnupg: New upstream version 2.1.14 (diff)
downloadgentoo-707a96672fbcab36bc9dcfd361db159473604429.tar.gz
gentoo-707a96672fbcab36bc9dcfd361db159473604429.tar.bz2
gentoo-707a96672fbcab36bc9dcfd361db159473604429.zip
net-misc/memcached: bup
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/memcached/Manifest1
-rw-r--r--net-misc/memcached/memcached-1.4.29.ebuild83
2 files changed, 84 insertions, 0 deletions
diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest
index eeb4ae2edb1e..960b49c17b93 100644
--- a/net-misc/memcached/Manifest
+++ b/net-misc/memcached/Manifest
@@ -6,3 +6,4 @@ DIST memcached-1.4.24.tar.gz 354917 SHA256 08a426c504ecf64633151eec1058584754d2f
DIST memcached-1.4.25.tar.gz 359709 SHA256 f058437b3c224d321919a9a6bb4e3eedb2312ed718c0caf087ff2f04ab795dda SHA512 e037c3bbb68c4077f814f855663501af418ce3b1f8bc20f8e7eba3249aea378e55b3291457952fa4511779ec3702496fdaab5799edae7d59bc64eb6fd54ee14e WHIRLPOOL 213bb95d9b814e446dce31073701d997ac6b994bca655bf38eb7b8f552c4bd7e87bd36d5f9a802a965649306fe5e1ea3f093b4ce274119b23fe7aaf22a55f2ca
DIST memcached-1.4.26.tar.gz 373384 SHA256 4a67800277eec2e523c51d5f620c416e7d0acfde90beacaa26d8e4f6976b43f6 SHA512 b9346e5fd60407133d2d1eb1a6fadfe455607b6b9ba4434a00ec9c8ce480dffddf19a4965dfed92a6a10d46b98f1a6754851fd4c20d55c4a19200879db5baf9c WHIRLPOOL 9b03018914b11eadb9af2c7f67af9a298e2fc3d4139af615951f94114e0c099b600f859c08d2230c919888d288b3b80a7d2df188a95e4d73ec781ae6965a7910
DIST memcached-1.4.27.tar.gz 377793 SHA256 96a90e7abec041a3c03258b6ce01ab21be16a9c594b7891a55567428392e8fe7 SHA512 54572e5d18e71d5c03cc3ed9a13c822800eeef7b7779132aa72f685177884c10f783a4c8fa88b6af7aef51dc230df7f351f2fa2b317ddd9b495007be89aefcea WHIRLPOOL ba7ff04d92a1cc42a4873406fe20ae771411294aa312d002af7f2921584589c1e1811dac7cdd57d0525990861e00d8840377e7e319ff1b6fa9892af921d1e7c7
+DIST memcached-1.4.29.tar.gz 383966 SHA256 c61a3a7f9c82e574559797bbf4bb01ad8b79e436ca80b8e46f5b51ae39b03d0b SHA512 fa44a2599f9cfea6002fa6b9b12e8ecf64820f87b164c9e98e0c25800c79473de5db6a9040967c1b8e436d75eede7318308275479d046e33129a6fdc7882e21f WHIRLPOOL 51c9e00a72fa0efe2b198fb70bc9aee4d54901fcc4eb1fce124730e688a5b408af9449a9920a621dab795820dbeab63a8b1a072caf277bd3fb5fe325236c807d
diff --git a/net-misc/memcached/memcached-1.4.29.ebuild b/net-misc/memcached/memcached-1.4.29.ebuild
new file mode 100644
index 000000000000..53f09846f643
--- /dev/null
+++ b/net-misc/memcached/memcached-1.4.29.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
+}