From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3479158046 for ; Sat, 12 Oct 2024 23:35:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7BD3E0824; Sat, 12 Oct 2024 23:35:34 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A799E0824 for ; Sat, 12 Oct 2024 23:35:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A31D342FF0 for ; Sat, 12 Oct 2024 23:35:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E6419AE7 for ; Sat, 12 Oct 2024 23:35:31 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1728776034.35add1a0b1e850f9b58c1cbc7bc0a8638b90e617.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/memcached/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/memcached/Manifest net-misc/memcached/memcached-1.6.31.ebuild X-VCS-Directories: net-misc/memcached/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 35add1a0b1e850f9b58c1cbc7bc0a8638b90e617 X-VCS-Branch: master Date: Sat, 12 Oct 2024 23:35:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: af7fed23-7792-43f0-95e2-d2ac527ff26a X-Archives-Hash: 84e9f75c44e88768d804901de736686d commit: 35add1a0b1e850f9b58c1cbc7bc0a8638b90e617 Author: Sam James gentoo org> AuthorDate: Sat Oct 12 23:33:54 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sat Oct 12 23:33:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35add1a0 net-misc/memcached: add 1.6.31 * EAPI 8 * Drop obsolete EWOULDBLOCK patch, seems to have been fixed upstream already but also AFAIK it only matteres for HPUX anyway * Use array for econf as it's less error-prone * Use more standard formatting Signed-off-by: Sam James gentoo.org> net-misc/memcached/Manifest | 1 + net-misc/memcached/memcached-1.6.31.ebuild | 114 +++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest index f18e2282e35d..ab0046e2aac0 100644 --- a/net-misc/memcached/Manifest +++ b/net-misc/memcached/Manifest @@ -1 +1,2 @@ DIST memcached-1.6.27.tar.gz 1189608 BLAKE2B 056f9555dda758ebb46f62c7eb65712107b1e50b4e4e9696ad4962abdd584df0e0d398590b0e6bfabad33ca18f2a7596d9410d8b35fe069bce6f812ecedd3c35 SHA512 d9de26887339d456e1cace60bf5b2cc2a78231a52ec6f6f36ed7d3ad373eaf231419601be46e80963a3a0254638d03198141647f81fa530b85dbdc4a6071c4cd +DIST memcached-1.6.31.tar.gz 1216497 BLAKE2B effa03d952e3c9fa9bb8c2ad2bb1c47dc23b8c828d915ded042c0ec468bc13ae6162501feb8bc9c924c717b895385070f407bb42d8d90b67d5d837aa4bd18470 SHA512 6531e161d31ac27addf65fb925c3db54c9dca5782220bc4725b6e6829c59a54a4c1ff364ad271c34de29298fbbc7cb13d67e05e1bf165e9c582d975d3404947d diff --git a/net-misc/memcached/memcached-1.6.31.ebuild b/net-misc/memcached/memcached-1.6.31.ebuild new file mode 100644 index 000000000000..79b68d40687f --- /dev/null +++ b/net-misc/memcached/memcached-1.6.31.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic systemd + +MY_PV="${PV/_rc/-rc}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="High-performance, distributed memory object caching system" +HOMEPAGE="https://memcached.org/" +SRC_URI=" + https://memcached.org/files/${MY_P}.tar.gz + https://memcached.org/files/old/${MY_P}.tar.gz +" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="debug sasl seccomp selinux slabs-reassign ssl test" # hugetlbfs later +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/libevent-1.4:= + dev-lang/perl + sasl? ( dev-libs/cyrus-sasl ) + seccomp? ( sys-libs/libseccomp ) + selinux? ( sec-policy/selinux-memcached ) + ssl? ( >=dev-libs/openssl-1.1.0g:= ) +" +DEPEND=" + ${RDEPEND} + acct-user/memcached + test? ( + virtual/perl-Test-Harness + >=dev-perl/Cache-Memcached-1.24 + ssl? ( dev-perl/IO-Socket-SSL ) + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch" +) + +src_prepare() { + default + + sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,' configure.ac || die + + eautoreconf + + use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN + + # Tweak upstream systemd unit to use Gentoo variables/envfile. + # As noted by bug #587440 + sed -i -e '/^ExecStart/{ + s,{USER},{MEMCACHED_RUNAS},g; + s,{CACHESIZE},{MEMUSAGE},g; + s,OPTIONS,MISC_OPTS,g; + }; + /Environment=/{s,OPTIONS,MISC_OPTS,g;}; + /EnvironmentFile=/{s,/sysconfig/,/conf.d/,g;}; + ' \ + "${S}"/scripts/memcached.service || die +} + +src_configure() { + local myeconfargs=( + --disable-docs + --disable-werror + $(use_enable sasl) + $(use_enable ssl tls) + # The xml2rfc tool to build the additional docs requires TCL :-( + # `use_enable doc docs` + ) + + econf "${myeconfargs[@]}" +} + +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_test() { + emake -j1 test +} + +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 "${S}/scripts/memcached.service" +} + +pkg_postinst() { + 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" +}