From dbd6eaafcce6a59fa9b3323124c38fa17aa88e26 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 20 Mar 2024 19:00:10 +0000 Subject: gentoo auto-resync : 20:03:2024 - 19:00:10 --- net-misc/Manifest.gz | Bin 54963 -> 54960 bytes net-misc/freerdp/Manifest | 4 +- net-misc/freerdp/freerdp-3.4.0-r10.ebuild | 181 ----------------------------- net-misc/freerdp/freerdp-3.4.0-r11.ebuild | 181 +++++++++++++++++++++++++++++ net-misc/freerdp/freerdp-9999.ebuild | 2 +- net-misc/memcached/Manifest | 2 + net-misc/memcached/memcached-1.6.25.ebuild | 104 +++++++++++++++++ 7 files changed, 290 insertions(+), 184 deletions(-) delete mode 100644 net-misc/freerdp/freerdp-3.4.0-r10.ebuild create mode 100644 net-misc/freerdp/freerdp-3.4.0-r11.ebuild create mode 100644 net-misc/memcached/memcached-1.6.25.ebuild (limited to 'net-misc') diff --git a/net-misc/Manifest.gz b/net-misc/Manifest.gz index 43c874267409..b28a65407923 100644 Binary files a/net-misc/Manifest.gz and b/net-misc/Manifest.gz differ diff --git a/net-misc/freerdp/Manifest b/net-misc/freerdp/Manifest index 64847919c9a1..3680165bdd6a 100644 --- a/net-misc/freerdp/Manifest +++ b/net-misc/freerdp/Manifest @@ -5,6 +5,6 @@ DIST freerdp-3.4.0.tar.gz 9331562 BLAKE2B 888d6c5786c7b3c5eea89e41bca23ef2b32337 EBUILD freerdp-2.11.5-r10.ebuild 3669 BLAKE2B 77e04414dba8a816cc751244e16a8266274fbc3f4ba2d79a12bac8c3aaa94b72c507b7090aaa1f92bed2596213d6ef799e19c60d08399b93250ef69755f748a3 SHA512 f940b8f6b59eadcf68d6fa146832feb30e1a7a24e58d03218231917a577cb86ae4694c349ac6e0e6f397c399df75bcceb130684bda08f089ad6e21e9dac75e39 EBUILD freerdp-2.11.5-r2.ebuild 3470 BLAKE2B 738dfd8ac8d02cf814ee17ca07a593b0c4394862aa8c5ac5a4a59f5aaf4f58f8d28c4069a7d2726a8a5a2bceace3497c18a6f93f894e02f8af997fa257799194 SHA512 cf303673f413fe5d404d98ba0dc8d08fbe1a67175f20b00fd5f857a0674baaa62c439e1a88158aa204e0498fab5a7a326521b630d73c8b72de74a6417a434812 EBUILD freerdp-2.9999.ebuild 3535 BLAKE2B beec173d3aab0eaa21c85235b2c859853796dab2e285ca91f961514044bd0bb23f444118953ae114c451113de8bfb4d316d576890d7c49b543b64d8166ea0868 SHA512 7e6baae43145d324583f77275449626f40c2f63a1f12d862edc260bbf4dcfa644d384ece41cb6e6cd9399a3d79b12445207a92f2f95b0db7a117549a8b316edd -EBUILD freerdp-3.4.0-r10.ebuild 4095 BLAKE2B e0f810af5cc837d8c8880bd08141ec001bed660ab16c8031f6951cf531c0bc87c2e316c9eef65834925c685d90c40cc809c3cf7f6ca30c97c1c030f19adc8395 SHA512 e716e445d6355b31c12f32b7b89cdcf4891e4f4d4effab50d920939ad2e7740130e10331babcc3e4b4e7baa1c400ca544c1b7ceaa65609753804fb8ee05c983d -EBUILD freerdp-9999.ebuild 4095 BLAKE2B e0f810af5cc837d8c8880bd08141ec001bed660ab16c8031f6951cf531c0bc87c2e316c9eef65834925c685d90c40cc809c3cf7f6ca30c97c1c030f19adc8395 SHA512 e716e445d6355b31c12f32b7b89cdcf4891e4f4d4effab50d920939ad2e7740130e10331babcc3e4b4e7baa1c400ca544c1b7ceaa65609753804fb8ee05c983d +EBUILD freerdp-3.4.0-r11.ebuild 4096 BLAKE2B 17233f00d185e600c88a24a9dd606cb35747cf314f1e690166620da318c82a66cc44811f8ea2d168441f738e3de3faed3e4820df282119a42294004829b0b588 SHA512 870744c2e32703ca45a026717a3f41c0c7ae57812599e61a9510a8925ce70540f5aeeb17fea97c2dcffe35e31ea2adb32ddd9cdf8504034d18bb237efb7bb66f +EBUILD freerdp-9999.ebuild 4096 BLAKE2B 17233f00d185e600c88a24a9dd606cb35747cf314f1e690166620da318c82a66cc44811f8ea2d168441f738e3de3faed3e4820df282119a42294004829b0b588 SHA512 870744c2e32703ca45a026717a3f41c0c7ae57812599e61a9510a8925ce70540f5aeeb17fea97c2dcffe35e31ea2adb32ddd9cdf8504034d18bb237efb7bb66f MISC metadata.xml 650 BLAKE2B 619e236cb4c4b249beafc2e4772c5321e5c912242a0e69d7e181867a83078ebfadd639aa5b7cf2a0da58572ade2ae374bfd61f41d83e333065bbfde2c06533ed SHA512 f9ec3e33c342c2a364be4d780c0fc69800617896bda40e473175f0b98f39925ea7bcc1896993782470fd9aad1b04edc2848baf5db2a8dd4e2c4099c062e657ae diff --git a/net-misc/freerdp/freerdp-3.4.0-r10.ebuild b/net-misc/freerdp/freerdp-3.4.0-r10.ebuild deleted file mode 100644 index ec750331ad4d..000000000000 --- a/net-misc/freerdp/freerdp-3.4.0-r10.ebuild +++ /dev/null @@ -1,181 +0,0 @@ -# Copyright 2011-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit cmake flag-o-matic - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/FreeRDP/FreeRDP.git" - case ${PV} in - 2.*) EGIT_BRANCH="stable-2.0";; - esac -else - MY_P=${P/_/-} - S="${WORKDIR}/${MY_P}" - SRC_URI="https://pub.freerdp.com/releases/${MY_P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" -fi - -DESCRIPTION="Free implementation of the Remote Desktop Protocol" -HOMEPAGE="https://www.freerdp.com/" - -LICENSE="Apache-2.0" -SLOT="3" -IUSE="aad alsa cpu_flags_arm_neon +client cups debug +ffmpeg +fuse gstreamer +icu jpeg kerberos openh264 pulseaudio sdl server smartcard systemd test usb valgrind wayland X xinerama xv" -RESTRICT="!test? ( test )" - -BDEPEND=" - virtual/pkgconfig - app-text/docbook-xsl-stylesheets - dev-libs/libxslt -" -COMMON_DEPEND=" - dev-libs/openssl:0= - sys-libs/zlib:0 - aad? ( dev-libs/cJSON ) - alsa? ( media-libs/alsa-lib ) - cups? ( net-print/cups ) - usb? ( - virtual/libudev:0= - sys-apps/util-linux:0= - dev-libs/dbus-glib:0= - virtual/libusb:1= - ) - X? ( - x11-libs/libXcursor - x11-libs/libXext - x11-libs/libXi - x11-libs/libXrender - xinerama? ( x11-libs/libXinerama ) - xv? ( x11-libs/libXv ) - ) - ffmpeg? ( media-video/ffmpeg:0= ) - !ffmpeg? ( - x11-libs/cairo:0= - ) - fuse? ( sys-fs/fuse:3 ) - gstreamer? ( - media-libs/gstreamer:1.0 - media-libs/gst-plugins-base:1.0 - X? ( x11-libs/libXrandr ) - ) - icu? ( dev-libs/icu:0= ) - jpeg? ( media-libs/libjpeg-turbo:0= ) - kerberos? ( virtual/krb5 ) - openh264? ( media-libs/openh264:0= ) - pulseaudio? ( media-libs/libpulse ) - sdl? ( - media-libs/libsdl2[haptic(+),joystick(+),sound(+),video(+)] - media-libs/sdl2-ttf - ) - server? ( - X? ( - x11-libs/libXcursor - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libXrandr - x11-libs/libXtst - xinerama? ( x11-libs/libXinerama ) - ) - ) - smartcard? ( - dev-libs/pkcs11-helper - sys-apps/pcsc-lite - ) - systemd? ( sys-apps/systemd:0= ) - client? ( - wayland? ( - dev-libs/wayland - x11-libs/libxkbcommon - ) - ) - X? ( - x11-libs/libX11 - x11-libs/libxkbfile - ) -" -DEPEND="${COMMON_DEPEND} - valgrind? ( dev-debug/valgrind ) -" -RDPEND="${COMMON_DEPEND} - !net-misc/freerdp:0 - client? ( !net-misc/freerdp:2[client] ) - server? ( !net-misc/freerdp:2[server] ) -" - -option() { - usex "$1" ON OFF -} - -option_client() { - if use client; then - option "$1" - else - echo OFF - fi -} - -src_configure() { - # bug #881695 - filter-lto - - local mycmakeargs=( - -Wno-dev - - # https://bugs.gentoo.org/927037 - -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF - - -DBUILD_TESTING=$(option test) - -DCHANNEL_URBDRC=$(option usb) - -DWITH_AAD=$(option aad) - -DWITH_ALSA=$(option alsa) - -DWITH_CCACHE=OFF - -DWITH_CLIENT=$(option client) - -DWITH_CLIENT_SDL=$(option sdl) - -DWITH_SAMPLE=OFF - -DWITH_CUPS=$(option cups) - -DWITH_DEBUG_ALL=$(option debug) - -DWITH_MANPAGES=ON - -DWITH_FFMPEG=$(option ffmpeg) - -DWITH_FREERDP_DEPRECATED_COMMANDLINE=ON - -DWITH_SWSCALE=$(option ffmpeg) - -DWITH_CAIRO=$(option !ffmpeg) - -DWITH_DSP_FFMPEG=$(option ffmpeg) - -DWITH_FUSE=$(option fuse) - -DWITH_GSTREAMER_1_0=$(option gstreamer) - -DWITH_JPEG=$(option jpeg) - -DWITH_KRB5=$(option kerberos) - -DWITH_NEON=$(option cpu_flags_arm_neon) - -DWITH_OPENH264=$(option openh264) - -DWITH_OSS=OFF - -DWITH_PCSC=$(option smartcard) - -DWITH_PKCS11=$(option smartcard) - -DWITH_PULSE=$(option pulseaudio) - -DWITH_SERVER=$(option server) - -DWITH_LIBSYSTEMD=$(option systemd) - -DWITH_UNICODE_BUILTIN=$(option !icu) - -DWITH_VALGRIND_MEMCHECK=$(option valgrind) - -DWITH_X11=$(option X) - -DWITH_XINERAMA=$(option xinerama) - -DWITH_XV=$(option xv) - -DWITH_WAYLAND=$(option_client wayland) - -DWITH_WEBVIEW=OFF - -DWITH_WINPR_TOOLS=$(option server) - ) - cmake_src_configure -} - -src_test() { - local myctestargs=() - use elibc_musl && myctestargs+=( -E TestBacktrace ) - has network-sandbox ${FEATURES} && myctestargs+=( -E TestConnect ) - cmake_src_test -} - -src_install() { - cmake_src_install - mv "${ED}"/usr/share/man/man7/wlog{,3}.7 || die -} diff --git a/net-misc/freerdp/freerdp-3.4.0-r11.ebuild b/net-misc/freerdp/freerdp-3.4.0-r11.ebuild new file mode 100644 index 000000000000..8285a658a86c --- /dev/null +++ b/net-misc/freerdp/freerdp-3.4.0-r11.ebuild @@ -0,0 +1,181 @@ +# Copyright 2011-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic + +if [[ ${PV} == *9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/FreeRDP/FreeRDP.git" + case ${PV} in + 2.*) EGIT_BRANCH="stable-2.0";; + esac +else + MY_P=${P/_/-} + S="${WORKDIR}/${MY_P}" + SRC_URI="https://pub.freerdp.com/releases/${MY_P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="Free implementation of the Remote Desktop Protocol" +HOMEPAGE="https://www.freerdp.com/" + +LICENSE="Apache-2.0" +SLOT="3" +IUSE="aad alsa cpu_flags_arm_neon +client cups debug +ffmpeg +fuse gstreamer +icu jpeg kerberos openh264 pulseaudio sdl server smartcard systemd test usb valgrind wayland X xinerama xv" +RESTRICT="!test? ( test )" + +BDEPEND=" + virtual/pkgconfig + app-text/docbook-xsl-stylesheets + dev-libs/libxslt +" +COMMON_DEPEND=" + dev-libs/openssl:0= + sys-libs/zlib:0 + aad? ( dev-libs/cJSON ) + alsa? ( media-libs/alsa-lib ) + cups? ( net-print/cups ) + usb? ( + virtual/libudev:0= + sys-apps/util-linux:0= + dev-libs/dbus-glib:0= + virtual/libusb:1= + ) + X? ( + x11-libs/libXcursor + x11-libs/libXext + x11-libs/libXi + x11-libs/libXrender + xinerama? ( x11-libs/libXinerama ) + xv? ( x11-libs/libXv ) + ) + ffmpeg? ( media-video/ffmpeg:0= ) + !ffmpeg? ( + x11-libs/cairo:0= + ) + fuse? ( sys-fs/fuse:3 ) + gstreamer? ( + media-libs/gstreamer:1.0 + media-libs/gst-plugins-base:1.0 + X? ( x11-libs/libXrandr ) + ) + icu? ( dev-libs/icu:0= ) + jpeg? ( media-libs/libjpeg-turbo:0= ) + kerberos? ( virtual/krb5 ) + openh264? ( media-libs/openh264:0= ) + pulseaudio? ( media-libs/libpulse ) + sdl? ( + media-libs/libsdl2[haptic(+),joystick(+),sound(+),video(+)] + media-libs/sdl2-ttf + ) + server? ( + X? ( + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXtst + xinerama? ( x11-libs/libXinerama ) + ) + ) + smartcard? ( + dev-libs/pkcs11-helper + sys-apps/pcsc-lite + ) + systemd? ( sys-apps/systemd:0= ) + client? ( + wayland? ( + dev-libs/wayland + x11-libs/libxkbcommon + ) + ) + X? ( + x11-libs/libX11 + x11-libs/libxkbfile + ) +" +DEPEND="${COMMON_DEPEND} + valgrind? ( dev-debug/valgrind ) +" +RDEPEND="${COMMON_DEPEND} + !net-misc/freerdp:0 + client? ( !net-misc/freerdp:2[client] ) + server? ( !net-misc/freerdp:2[server] ) +" + +option() { + usex "$1" ON OFF +} + +option_client() { + if use client; then + option "$1" + else + echo OFF + fi +} + +src_configure() { + # bug #881695 + filter-lto + + local mycmakeargs=( + -Wno-dev + + # https://bugs.gentoo.org/927037 + -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF + + -DBUILD_TESTING=$(option test) + -DCHANNEL_URBDRC=$(option usb) + -DWITH_AAD=$(option aad) + -DWITH_ALSA=$(option alsa) + -DWITH_CCACHE=OFF + -DWITH_CLIENT=$(option client) + -DWITH_CLIENT_SDL=$(option sdl) + -DWITH_SAMPLE=OFF + -DWITH_CUPS=$(option cups) + -DWITH_DEBUG_ALL=$(option debug) + -DWITH_MANPAGES=ON + -DWITH_FFMPEG=$(option ffmpeg) + -DWITH_FREERDP_DEPRECATED_COMMANDLINE=ON + -DWITH_SWSCALE=$(option ffmpeg) + -DWITH_CAIRO=$(option !ffmpeg) + -DWITH_DSP_FFMPEG=$(option ffmpeg) + -DWITH_FUSE=$(option fuse) + -DWITH_GSTREAMER_1_0=$(option gstreamer) + -DWITH_JPEG=$(option jpeg) + -DWITH_KRB5=$(option kerberos) + -DWITH_NEON=$(option cpu_flags_arm_neon) + -DWITH_OPENH264=$(option openh264) + -DWITH_OSS=OFF + -DWITH_PCSC=$(option smartcard) + -DWITH_PKCS11=$(option smartcard) + -DWITH_PULSE=$(option pulseaudio) + -DWITH_SERVER=$(option server) + -DWITH_LIBSYSTEMD=$(option systemd) + -DWITH_UNICODE_BUILTIN=$(option !icu) + -DWITH_VALGRIND_MEMCHECK=$(option valgrind) + -DWITH_X11=$(option X) + -DWITH_XINERAMA=$(option xinerama) + -DWITH_XV=$(option xv) + -DWITH_WAYLAND=$(option_client wayland) + -DWITH_WEBVIEW=OFF + -DWITH_WINPR_TOOLS=$(option server) + ) + cmake_src_configure +} + +src_test() { + local myctestargs=() + use elibc_musl && myctestargs+=( -E TestBacktrace ) + has network-sandbox ${FEATURES} && myctestargs+=( -E TestConnect ) + cmake_src_test +} + +src_install() { + cmake_src_install + mv "${ED}"/usr/share/man/man7/wlog{,3}.7 || die +} diff --git a/net-misc/freerdp/freerdp-9999.ebuild b/net-misc/freerdp/freerdp-9999.ebuild index ec750331ad4d..8285a658a86c 100644 --- a/net-misc/freerdp/freerdp-9999.ebuild +++ b/net-misc/freerdp/freerdp-9999.ebuild @@ -100,7 +100,7 @@ COMMON_DEPEND=" DEPEND="${COMMON_DEPEND} valgrind? ( dev-debug/valgrind ) " -RDPEND="${COMMON_DEPEND} +RDEPEND="${COMMON_DEPEND} !net-misc/freerdp:0 client? ( !net-misc/freerdp:2[client] ) server? ( !net-misc/freerdp:2[server] ) diff --git a/net-misc/memcached/Manifest b/net-misc/memcached/Manifest index 62ae7feb31f4..2739f1d1766c 100644 --- a/net-misc/memcached/Manifest +++ b/net-misc/memcached/Manifest @@ -7,8 +7,10 @@ DIST memcached-1.6.21.tar.gz 1127623 BLAKE2B 13feb4872f5d196c1c3ded0159c16c2b096 DIST memcached-1.6.22.tar.gz 1135926 BLAKE2B 872594e087e2302ac7901481797aa6fda98a73e39b8ad64e084c87834e86d7026abcdc3a87b016d0c7eb80bc96621ac9a0da8fcc0b46fc93e7c042cc30848cac SHA512 a30adc4f14c32051d2fc112eaa71de96f7ba614bd7f940ab5dd86365fe5e4df1399fa6fe6591cee903c8b914f2156050edef3139bafe38cd4a2b6424ba973e8e DIST memcached-1.6.23.tar.gz 1166511 BLAKE2B 4e0d4cc49781a78e6900d843750d495d87f72829eabf6dcb1b959725a4f1df388a4cb44e87677f80ca19ea76102df997bb292137f626e8829113ec01e0b26e06 SHA512 b531a58f8fd1ff9ae821319302093ccf44a6c911ad680a15cc29390144a153340814f45c0a1ea9eebf999743399579e655abea671b27b85c1202d70945ce902a DIST memcached-1.6.24.tar.gz 1168521 BLAKE2B f68b9111c179865dba8ec126775195bc1dc0efb1ad76b121a06ca019a8fba675866b6d6c243d91412db259bc79cf54ef126b7c7c800198d5c980e1c48f6307a2 SHA512 e43386c2a6c0b95cefdccfe7f6b3890c59ca8b5c2636efc2e910b9617b20a5cf6de9bfedaafe0fb05c91bebb175fbdf033f5e0e512cb041b73af5af0d1854265 +DIST memcached-1.6.25.tar.gz 1178044 BLAKE2B a00fb61cf6fbad07d18ecf878c08b250bcc2206f5bc1bbf91d2d1524ba14bba15743a3cc2d919fbdf0388d01ec26671dcfd0e4511b477747497ee564d796828f SHA512 70b11244fdedbea29cceda0f6db94fcd3723f70643f614db1163bae90d9b9792fe247233aa08b894869252f7b8340e85e41213cd04195b5f4ba288901ede80f7 EBUILD memcached-1.6.21-r1.ebuild 2869 BLAKE2B 671e6a2585b7f33af492f4e41bab77fc2e44df35010ec6e0b072b2b4ceab4f40ac869e0a3e458e32f78b377cf972fb83d16d4e873ecb1da76e0e3c9bd9d24d04 SHA512 2323da15f73225ef28c5598f5c54fa268884f628cb3cbeca1c72c92c6f53de3a8c0b6b83f453b71c4337c30bf12c6f49af7faa4ddc00091e46e84d8909b09ab5 EBUILD memcached-1.6.22.ebuild 2869 BLAKE2B 671e6a2585b7f33af492f4e41bab77fc2e44df35010ec6e0b072b2b4ceab4f40ac869e0a3e458e32f78b377cf972fb83d16d4e873ecb1da76e0e3c9bd9d24d04 SHA512 2323da15f73225ef28c5598f5c54fa268884f628cb3cbeca1c72c92c6f53de3a8c0b6b83f453b71c4337c30bf12c6f49af7faa4ddc00091e46e84d8909b09ab5 EBUILD memcached-1.6.23.ebuild 2876 BLAKE2B 6492511f677ae751ec42bd0d8c01db45bb95a264fd9d3eb9c4639c185ed6b40a2696746b5527d9fd951b444ebf7041ee784f016e1a2261cc053932059b9aa007 SHA512 817edbb2ec16159672cf1bb9926a06325af8d1afe09ca52c7950cc6b67e7d1a3ef6e21850f1200a3afc97a7fb4ec0d43142250aff70ebc7ef3cf66eb3ad0cdba EBUILD memcached-1.6.24.ebuild 2876 BLAKE2B 6492511f677ae751ec42bd0d8c01db45bb95a264fd9d3eb9c4639c185ed6b40a2696746b5527d9fd951b444ebf7041ee784f016e1a2261cc053932059b9aa007 SHA512 817edbb2ec16159672cf1bb9926a06325af8d1afe09ca52c7950cc6b67e7d1a3ef6e21850f1200a3afc97a7fb4ec0d43142250aff70ebc7ef3cf66eb3ad0cdba +EBUILD memcached-1.6.25.ebuild 2876 BLAKE2B 6492511f677ae751ec42bd0d8c01db45bb95a264fd9d3eb9c4639c185ed6b40a2696746b5527d9fd951b444ebf7041ee784f016e1a2261cc053932059b9aa007 SHA512 817edbb2ec16159672cf1bb9926a06325af8d1afe09ca52c7950cc6b67e7d1a3ef6e21850f1200a3afc97a7fb4ec0d43142250aff70ebc7ef3cf66eb3ad0cdba MISC metadata.xml 1135 BLAKE2B d16930abfea735bd634c90e0add475eab661c6309c83f418586f0fb3a23e001888bb9c455d886a074d652da98bdaf99c2292357d6241b06c33bd046aac67b0ce SHA512 7bc61552d088369f7ad0204444371140dbd75aa10e9340bdafd2046c0dbfe1921edf8806ff8f96dde8e1e9a9239e82f1d8019e386b44c1e916aa39157c29b6de diff --git a/net-misc/memcached/memcached-1.6.25.ebuild b/net-misc/memcached/memcached-1.6.25.ebuild new file mode 100644 index 000000000000..9561a6bf3beb --- /dev/null +++ b/net-misc/memcached/memcached-1.6.25.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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="http://memcached.org/" +SRC_URI="https://www.memcached.org/files/${MY_P}.tar.gz + https://www.memcached.org/files/old/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="debug sasl seccomp selinux slabs-reassign ssl test" # hugetlbfs later + +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 ) )" + +S="${WORKDIR}/${MY_P}" + +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch" + "${FILESDIR}/${PN}-1.4.17-EWOULDBLOCK.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 +} + +src_configure() { + econf \ + --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` +} + +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" +} -- cgit v1.2.3