diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-08-20 11:45:47 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-08-20 11:45:47 -0500 |
commit | 8726723031e226fd28b2172c090aa15f01f30c39 (patch) | |
tree | be31bdd7131746cf1f4fe853e657bfb139a31761 | |
parent | app-emulation/cloud-init: don't use argparse or hacking (diff) | |
download | gentoo-8726723031e226fd28b2172c090aa15f01f30c39.tar.gz gentoo-8726723031e226fd28b2172c090aa15f01f30c39.tar.bz2 gentoo-8726723031e226fd28b2172c090aa15f01f30c39.zip |
net-misc/memcached: bup
Package-Manager: portage-2.2.28
-rw-r--r-- | net-misc/memcached/Manifest | 1 | ||||
-rw-r--r-- | net-misc/memcached/memcached-1.4.31.ebuild | 83 |
2 files changed, 84 insertions, 0 deletions
diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest index 38bff0b5527b..612d990344e2 100644 --- a/net-misc/memcached/Manifest +++ b/net-misc/memcached/Manifest @@ -8,3 +8,4 @@ DIST memcached-1.4.26.tar.gz 373384 SHA256 4a67800277eec2e523c51d5f620c416e7d0ac 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 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 diff --git a/net-misc/memcached/memcached-1.4.31.ebuild b/net-misc/memcached/memcached-1.4.31.ebuild new file mode 100644 index 000000000000..53f09846f643 --- /dev/null +++ b/net-misc/memcached/memcached-1.4.31.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 +} |