summaryrefslogtreecommitdiff
path: root/net-misc/memcached
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/memcached')
-rw-r--r--net-misc/memcached/Manifest2
-rw-r--r--net-misc/memcached/memcached-1.6.31.ebuild114
2 files changed, 116 insertions, 0 deletions
diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest
index c96fc6f7c2b1..2bef3f76fbd2 100644
--- a/net-misc/memcached/Manifest
+++ b/net-misc/memcached/Manifest
@@ -4,5 +4,7 @@ AUX memcached.confd 872 BLAKE2B d57dfb6da370f5e980b9e7143323a6cf51fecea802e5d034
AUX memcached.init2 2200 BLAKE2B 9bc5fe76047b7559aec93030829963111353fb5adc3ba558cb672bb96aa642c7e8df87a49d5081d7a33892c6896e91a291a497d74d6985767a364c9697713391 SHA512 873a0bb0ef7eb31f8749e040b7a4db0188367f3c5f953984a98ca21877ddde440085e338cacceb45dc80f4e833129056525143dab1efae4a838c72143f2ae61a
AUX memcached.service 273 BLAKE2B bfe217d2ec7fd9aead468f4f5b100843287a49bef163dd106349f3275acbffaca60e09c8b723a566a96065d8208eb52f44f7c3ad24a8aaf3980471e8d0478b77 SHA512 647f06160142c5e38e4009203609bf2152dd1bdd4b94be9e2bf3c5741e631419fc9cf300575a65a905956eec916d736c4e3b3d3e3c80438f1b33cd10fe4dcd95
DIST memcached-1.6.27.tar.gz 1189608 BLAKE2B 056f9555dda758ebb46f62c7eb65712107b1e50b4e4e9696ad4962abdd584df0e0d398590b0e6bfabad33ca18f2a7596d9410d8b35fe069bce6f812ecedd3c35 SHA512 d9de26887339d456e1cace60bf5b2cc2a78231a52ec6f6f36ed7d3ad373eaf231419601be46e80963a3a0254638d03198141647f81fa530b85dbdc4a6071c4cd
+DIST memcached-1.6.31.tar.gz 1216497 BLAKE2B effa03d952e3c9fa9bb8c2ad2bb1c47dc23b8c828d915ded042c0ec468bc13ae6162501feb8bc9c924c717b895385070f407bb42d8d90b67d5d837aa4bd18470 SHA512 6531e161d31ac27addf65fb925c3db54c9dca5782220bc4725b6e6829c59a54a4c1ff364ad271c34de29298fbbc7cb13d67e05e1bf165e9c582d975d3404947d
EBUILD memcached-1.6.27.ebuild 2857 BLAKE2B c83426340f777cbd6183bf56b424d6f325ba6511d116f2e66ec871eefc24f318ee913afac147c6d41d0750ab4a70d96866b5e6ef65ccce40c62f52b5949ade0c SHA512 a2465bfd68498ea1484712f6f42b3814c9df382a8dca1ab102a97744cc6bafc1e833ccc7fed086b4163c5577000b4713cbc7f5c8e806e80b172a854230c0bc58
+EBUILD memcached-1.6.31.ebuild 2870 BLAKE2B b55b9fd50ff1fd2e554a4fd32a28f7b6f3300a465cbb9613fa1f032ddb64aa06d1ed3d4adf301c7ccf0494c692bc81327b1119062f90f0ecfd7665cb38e63f16 SHA512 3040aa80ecce2f7367e3bce1e7ab4376f17de0ffa4c4a418d3ad32c9092ad1aca9aca7d709915d0ec51379232a3d24e04a4a27202aaf211f89cb8440fa6939d4
MISC metadata.xml 1135 BLAKE2B d16930abfea735bd634c90e0add475eab661c6309c83f418586f0fb3a23e001888bb9c455d886a074d652da98bdaf99c2292357d6241b06c33bd046aac67b0ce SHA512 7bc61552d088369f7ad0204444371140dbd75aa10e9340bdafd2046c0dbfe1921edf8806ff8f96dde8e1e9a9239e82f1d8019e386b44c1e916aa39157c29b6de
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"
+}