From f9d8ddaae80afb8fa0924cd3f769f9b37dd373e1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 10 Jan 2025 06:41:31 +0000 Subject: gentoo auto-resync : 10:01:2025 - 06:41:30 --- dev-db/redict/Manifest | 4 +- dev-db/redict/redict-7.3.1.ebuild | 160 -------------------------------------- dev-db/redict/redict-7.3.2.ebuild | 160 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+), 162 deletions(-) delete mode 100644 dev-db/redict/redict-7.3.1.ebuild create mode 100644 dev-db/redict/redict-7.3.2.ebuild (limited to 'dev-db/redict') diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest index 5777dda8966e..1ddfe97fd5d8 100644 --- a/dev-db/redict/Manifest +++ b/dev-db/redict/Manifest @@ -9,6 +9,6 @@ AUX redict.initd 730 BLAKE2B 6754f6fb672f134d22e6849433459f0d369b218f12992206a2e AUX redict.logrotate 108 BLAKE2B ed7c2f04a7994b88a18fee851775bb2fb964bd835b26a7498ea27e57bf275a3f5b4bf6bd9642f390f5d42159f242d0f83ffac10b5f36ec8cdbab64d4ff6fe9cf SHA512 63f1af50b7e9e7e90cf2c3f83013c6484c8020c14c519161d7d0bf3045ca9f90d1032d40bebf59aba906ad5929cd84ec9ef45556d60a83dc75cd148ef4984a88 AUX redict.service 261 BLAKE2B 0dd1a9fb7adae63f794602cca9a913f1c41e706e603e33870ebbe13d9bf794a7b73f8e528a17f16002891263ff7a20a322950d6ff9f274fc5916cc457a96e574 SHA512 b80670424709577f946d3a063032011690aff1aa3b55849f143370c61703fbc6bdb02561f04bf20864addcca8ee5491e95d971bf37458939daa9bc54f8f57ab8 AUX redict.tmpfiles 60 BLAKE2B 79f15e360cb2fbdc07a676a17a438fb5d85cb0252505e5fb86d52294eb5f6fc304c5dde98149e344223b11e599901fdd2f0cba6dbb09400b5afbbb3c0190e7c7 SHA512 4e81318de5760e152403b44ec3ee0b18a9be602501143bb2d2b0841608ea5460fc890fb211264d7c80ac363b2295e14bd06d51ea7bd6259f28c9b947d322a30a -DIST redict-7.3.1.tar.gz 3414766 BLAKE2B ff4a4078683ec6e4f236e605e29711d1033c8632cd6c12035d7fdf1566d75d375daa61383fd8a6c098444e1cf382f5934f961e67a2041351fb4c9aaa6a7635c0 SHA512 79d174c0f58c73a52f3b0225280f69f92790f8d43cdf70a2353cefd06d73030ffb5e3eb30e06dcd9c47161f2d43a09cca6dc815e9dd83b620716c2ae3243d3bc -EBUILD redict-7.3.1.ebuild 3824 BLAKE2B 297cbfd40782e3b102bf0a86c25bbb8a67830ce39fd36cd61b9a66b2b1887595697b8c04973ef0085d486fe755afcedf005585486d562eeb50bdd8c88dbc57ad SHA512 1601142e3daac812f6294a6e501b89febaac7a6dd5a1cfb88c0fd42bbeb972fdbb21def11d8d6ec89ee7e3162edcb1bab13f253cb7d35f0a4b9931a7e55d942c +DIST redict-7.3.2.tar.gz 3415089 BLAKE2B 3507586d4e752e1f98755e8f0e2291ea37a27af84b7980ecde0342826dd41b46eb2f3a9ca3f0231bc49771829b7584b6f2f529ab11cb5af39ecdb3cde4f6416a SHA512 fb14f9c1bb43e69f5479fd9944b2865d0696330d244b8eb88865370756f580a9e5826f9041cd91478ccfeb22ec1304ab9cdff6736e2a623e71c58e785db9eb4a +EBUILD redict-7.3.2.ebuild 3829 BLAKE2B 52b1d1771dbe3b37d932956f457d6c0a006cbba1a82f2731af9821ae9aa90cee7aea2bbb502b16ec6d33de897393386738cdb267f0cdeb07b4f1a35c0b58cb16 SHA512 f3e486b90b9a11d6c576d0801fdbcff580b973e78b22e5ade86fa33a81b3c8e89701c484c0010b643ec3c8d3d3341cf03c3ee1076ef6e4c70a672837b217a3f1 MISC metadata.xml 610 BLAKE2B 0c61950ab5459b6122247c049a2f18373fa5bd21496882d4478f7e9d91683d6978f23997cbe3ce11bde346d9ad0bcad810a358f719aea6355c86466f0299f08e SHA512 65141d43ca54cf57962b24a5d5cacb3894675994a0b87b561216a6c7a26526bf5f9b4952c23eadd1e4598c56d9b147b219ef010fe62e0cc8f500f8bc4cb40366 diff --git a/dev-db/redict/redict-7.3.1.ebuild b/dev-db/redict/redict-7.3.1.ebuild deleted file mode 100644 index 8218bbe76716..000000000000 --- a/dev-db/redict/redict-7.3.1.ebuild +++ /dev/null @@ -1,160 +0,0 @@ -# Copyright 2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated -# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable - -inherit edo multiprocessing systemd tmpfiles toolchain-funcs - -DESCRIPTION="A persistent caching system, key-value, and data structures database" -HOMEPAGE="https://redict.io" - -SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" - -S=${WORKDIR}/${PN} - -LICENSE="BSD Boost-1.0 LGPL-3" -SLOT="0/$(ver_cut 1-2)" -KEYWORDS="~amd64" -IUSE="+jemalloc ssl systemd tcmalloc test" -RESTRICT="!test? ( test )" - -REQUIRED_USE="?? ( jemalloc tcmalloc )" - -RDEPEND=" - acct-group/redict - acct-user/redict - dev-libs/hiredict:0=[ssl?] - jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] ) - ssl? ( dev-libs/openssl:0= ) - systemd? ( sys-apps/systemd:= ) - tcmalloc? ( dev-util/google-perftools ) -" - -DEPEND="${RDEPEND}" - -BDEPEND=" - virtual/pkgconfig - test? ( - dev-lang/tcl:0= - ssl? ( dev-tcltk/tls ) - ) -" - -PATCHES=( - "${FILESDIR}"/redict-7.3.0-config.patch - "${FILESDIR}"/redict-sentinel-7.3.0-config.patch - "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch - "${FILESDIR}"/redict-7.3.0-system-hiredict.patch -) - -src_prepare() { - default - - # Respect user CFLAGS in bundled lua - sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die -} - -_build() { - tc-export AR CC RANLIB - local myconf=( - AR="${AR}" - CC="${CC}" - RANLIB="${RANLIB}" - CFLAGS="${CFLAGS}" - LDFLAGS="${LDFLAGS}" - V=1 # verbose - OPTIMIZATION= - DEBUG= - DEBUG_FLAGS= - BUILD_TLS=$(usex ssl) - USE_SYSTEMD=$(usex systemd) - USE_SYSTEM_HIREDICT=yes - ) - - if use jemalloc; then - myconf+=( - MALLOC=jemalloc - USE_SYSTEM_JEMALLOC=yes - ) - elif use tcmalloc; then - myconf+=( MALLOC=tcmalloc ) - else - myconf+=( MALLOC=libc ) - fi - - emake -C src "${myconf[@]}" "$@" -} - -src_compile() { - _build -} - -src_test() { - local runtestargs=( - --clients "$(makeopts_jobs)" # see bug #649868 - - --skiptest "Active defrag eval scripts" # see bug #851654 - --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump - ) - - if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then - ewarn "oom-score-adj related tests will be skipped." \ - "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382." - - runtestargs+=( - # unit/oom-score-adj was introduced in version 6.2.0 - --skipunit unit/oom-score-adj # see bug #756382 - - # Following test was added in version 7.0.0 to unit/introspection. - # It also tries to adjust OOM score. - --skiptest "CONFIG SET rollback on apply error" - ) - fi - - if use ssl; then - edo ./utils/gen-test-certs.sh - runtestargs+=( --tls ) - fi - - edo ./runtest "${runtestargs[@]}" -} - -src_install() { - insinto /etc/redict - doins redict.conf sentinel.conf - use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf - - newconfd "${FILESDIR}/redict.confd" redict - newinitd "${FILESDIR}/redict.initd" redict - - systemd_newunit "${FILESDIR}/redict.service" redict.service - newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf - - newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel - newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel - - insinto /etc/logrotate.d/ - newins "${FILESDIR}/redict.logrotate" "${PN}" - - _build DESTDIR="${ED}" PREFIX="/usr" install - - if use prefix; then - diropts -m0750 - else - diropts -m0750 -o redict -g redict - fi - keepdir /var/{log,lib}/redict -} - -pkg_postinst() { - tmpfiles_process redict.conf - - if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then - ewarn "Redict uses different configuration files than redis:" - ewarn "/etc/redict/{redict,sentinel}.conf" - ewarn "Please apply your changes to the new configuration files." - fi -} diff --git a/dev-db/redict/redict-7.3.2.ebuild b/dev-db/redict/redict-7.3.2.ebuild new file mode 100644 index 000000000000..002e106a3641 --- /dev/null +++ b/dev-db/redict/redict-7.3.2.ebuild @@ -0,0 +1,160 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# N.B.: It is no clue in porting to Lua eclasses, as upstream have deviated +# too far from vanilla Lua, adding their own APIs like lua_enablereadonlytable + +inherit edo multiprocessing systemd tmpfiles toolchain-funcs + +DESCRIPTION="A persistent caching system, key-value, and data structures database" +HOMEPAGE="https://redict.io" + +SRC_URI="https://codeberg.org/redict/redict/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz" + +S=${WORKDIR}/${PN} + +LICENSE="BSD Boost-1.0 LGPL-3" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64" +IUSE="+jemalloc ssl systemd tcmalloc test" +RESTRICT="!test? ( test )" + +REQUIRED_USE="?? ( jemalloc tcmalloc )" + +RDEPEND=" + acct-group/redict + acct-user/redict + dev-libs/hiredict:0=[ssl?] + jemalloc? ( >=dev-libs/jemalloc-5.1:=[stats] ) + ssl? ( dev-libs/openssl:0= ) + systemd? ( sys-apps/systemd:= ) + tcmalloc? ( dev-util/google-perftools ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lang/tcl:0= + ssl? ( dev-tcltk/tls ) + ) +" + +PATCHES=( + "${FILESDIR}"/redict-7.3.0-config.patch + "${FILESDIR}"/redict-sentinel-7.3.0-config.patch + "${FILESDIR}"/redict-7.3.0-system-jemalloc.patch + "${FILESDIR}"/redict-7.3.0-system-hiredict.patch +) + +src_prepare() { + default + + # Respect user CFLAGS in bundled lua + sed -i '/LUA_CFLAGS/s: -O2::g' deps/Makefile || die +} + +_build() { + tc-export AR CC RANLIB + local myconf=( + AR="${AR}" + CC="${CC}" + RANLIB="${RANLIB}" + CFLAGS="${CFLAGS}" + LDFLAGS="${LDFLAGS}" + V=1 # verbose + OPTIMIZATION= + DEBUG= + DEBUG_FLAGS= + BUILD_TLS=$(usex ssl) + USE_SYSTEMD=$(usex systemd) + USE_SYSTEM_HIREDICT=yes + ) + + if use jemalloc; then + myconf+=( + MALLOC=jemalloc + USE_SYSTEM_JEMALLOC=yes + ) + elif use tcmalloc; then + myconf+=( MALLOC=tcmalloc ) + else + myconf+=( MALLOC=libc ) + fi + + emake -C src "${myconf[@]}" "$@" +} + +src_compile() { + _build +} + +src_test() { + local runtestargs=( + --clients "$(makeopts_jobs)" # see bug #649868 + + --skiptest "Active defrag eval scripts" # see bug #851654 + --skiptest "FUNCTION - redict version api" # test fails due to release mishap on 7.3.1, remove on bump + ) + + if has usersandbox ${FEATURES} || ! has userpriv ${FEATURES}; then + ewarn "oom-score-adj related tests will be skipped." \ + "They are known to fail with FEATURES usersandbox or -userpriv. See bug #756382." + + runtestargs+=( + # unit/oom-score-adj was introduced in version 6.2.0 + --skipunit unit/oom-score-adj # see bug #756382 + + # Following test was added in version 7.0.0 to unit/introspection. + # It also tries to adjust OOM score. + --skiptest "CONFIG SET rollback on apply error" + ) + fi + + if use ssl; then + edo ./utils/gen-test-certs.sh + runtestargs+=( --tls ) + fi + + edo ./runtest "${runtestargs[@]}" +} + +src_install() { + insinto /etc/redict + doins redict.conf sentinel.conf + use prefix || fowners -R redict:redict /etc/redict /etc/redict/{redict,sentinel}.conf + + newconfd "${FILESDIR}/redict.confd" redict + newinitd "${FILESDIR}/redict.initd" redict + + systemd_newunit "${FILESDIR}/redict.service" redict.service + newtmpfiles "${FILESDIR}/redict.tmpfiles" redict.conf + + newconfd "${FILESDIR}/redict-sentinel.confd" redict-sentinel + newinitd "${FILESDIR}/redict-sentinel.initd" redict-sentinel + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/redict.logrotate" "${PN}" + + _build DESTDIR="${ED}" PREFIX="/usr" install + + if use prefix; then + diropts -m0750 + else + diropts -m0750 -o redict -g redict + fi + keepdir /var/{log,lib}/redict +} + +pkg_postinst() { + tmpfiles_process redict.conf + + if has_version dev-db/redis && [[ -z "${REPLACING_VERSIONS}" ]]; then + ewarn "Redict uses different configuration files than redis:" + ewarn "/etc/redict/{redict,sentinel}.conf" + ewarn "Please apply your changes to the new configuration files." + fi +} -- cgit v1.2.3