From b3b92de25c3fc5f6bddc5e513027140591a0b2a5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 23 May 2024 00:06:40 +0100 Subject: gentoo auto-resync : 23:05:2024 - 00:06:39 --- dev-db/Manifest.gz | Bin 16615 -> 16626 bytes dev-db/kdb/Manifest | 2 +- dev-db/kdb/kdb-3.2.0-r2.ebuild | 1 + dev-db/redict/Manifest | 8 +- dev-db/redict/files/redict-sentinel.initd | 3 +- dev-db/redict/files/redict.initd | 3 +- dev-db/redict/files/redict.service | 2 +- dev-db/redict/redict-7.3.0-r1.ebuild | 159 ++++++++++++++++++++++++++++++ dev-db/redict/redict-7.3.0.ebuild | 159 ------------------------------ 9 files changed, 170 insertions(+), 167 deletions(-) create mode 100644 dev-db/redict/redict-7.3.0-r1.ebuild delete mode 100644 dev-db/redict/redict-7.3.0.ebuild (limited to 'dev-db') diff --git a/dev-db/Manifest.gz b/dev-db/Manifest.gz index 888253fc93f7..395547352012 100644 Binary files a/dev-db/Manifest.gz and b/dev-db/Manifest.gz differ diff --git a/dev-db/kdb/Manifest b/dev-db/kdb/Manifest index 3ce83d66ed4a..b9b7c4c5c376 100644 --- a/dev-db/kdb/Manifest +++ b/dev-db/kdb/Manifest @@ -1,5 +1,5 @@ AUX kdb-3.2.0-postgresql-gcc12.patch 1355 BLAKE2B 1884b7b1db9a60a625722a3d20cfc8aece7320675aaa627737edd841997859de9ac499f8c07101eed67d1190a66334a23a99562819f30466f5c56fc566f437a0 SHA512 c6527802b3c34661717fd190f11385d8a4338ec5e3757ebdbc48df36ef40d7f6bcf44cba221faeef95507045840a5652e996b1621890c25d3944df1a4089607a DIST kdb-3.2.0-patches.tar.xz 7448 BLAKE2B 924a3ac0db2fedfa6d757dcb96fefc48540d5bee7dd2e1239e0e7eca9765393e3b72b13365a66a8e336a655aa4c8978e800f3baa86b704e85134d0c7281b90d7 SHA512 4fe59f33059dcfe19a26bed93615ce152f321f040daa57a2e6747a397aebbc896cd6c964cd2cb1350762552173ff146e4e51b864aa098ec5ae77e0dd6c6d9a2f DIST kdb-3.2.0.tar.xz 650180 BLAKE2B 306152b37c2ecc670d26a2df2ae8acb950505ecb37c4994f4debd1b80c8b2ee94252658fe28b59255d9ad0d350375171f3b43dc9e94949417c3aa9ed167134fe SHA512 7df22f2c5b6e20ae3de71cb6c76b234d2f1f33b2abcdffa85be313c63d067a40a85ed102b6256207315db08ced5d69f8bc40afdf84a188463713a6b2ffdb2df7 -EBUILD kdb-3.2.0-r2.ebuild 1689 BLAKE2B 5a0f282825038ce7b8136a6d03dc92c0e2488878e67f38ebb3fb71b1cca0a1598e125da764326a76b89ab3f012eb2e455377ebc7a28d42696249bc2fa439219c SHA512 98a5a242e277b62e59b0946c6823b5dc03230fc9687417a0e06459b08afd1e5547d7ecd6edf44ecebfa3f9e2ee6f8e23d0e6e673a70c82c41e4ec1686e798c16 +EBUILD kdb-3.2.0-r2.ebuild 1715 BLAKE2B e27441f117a587ff185c0af67ac579090972129ded11b7620a2e3ad1795d27b8358e26a1b4e3f4bf447c8907d9056edf981df29dd4e8c80f684462112c1433d4 SHA512 3d4b195090ab903997d689343785b454fec8173e05d5e105dda036f0bb04936dfb480fc6aa8d9e9af740716a380929ac9f0124e8edbaf99afc4120481cac2da2 MISC metadata.xml 318 BLAKE2B 922a5e32e706b2976c5f359a14194d268d3f499398576c80ce5fad8c0fcea0fbf048de4480a80a6a1889c88b8b6c14147654a3ab4d5ffbcc258c2290da63f6d1 SHA512 614cb8dda7ad2088e5d6ef39b449bb4be0ac72cd0231c320188d76d1816dce6490c5114bb4798112c4b11d99d30a9e82ff8fcf08ffa8c049589682a5e38208f6 diff --git a/dev-db/kdb/kdb-3.2.0-r2.ebuild b/dev-db/kdb/kdb-3.2.0-r2.ebuild index 10bcdad1f64e..f62284ddcc1d 100644 --- a/dev-db/kdb/kdb-3.2.0-r2.ebuild +++ b/dev-db/kdb/kdb-3.2.0-r2.ebuild @@ -61,6 +61,7 @@ pkg_setup() { src_configure() { local mycmakeargs=( + -DCMAKE_CXX_STANDARD=17 -DKDB_DEBUG_GUI=$(usex debug) $(cmake_use_find_package mysql MySQL) $(cmake_use_find_package postgres PostgreSQL) diff --git a/dev-db/redict/Manifest b/dev-db/redict/Manifest index e93742e59c67..3ec023f58beb 100644 --- a/dev-db/redict/Manifest +++ b/dev-db/redict/Manifest @@ -3,12 +3,12 @@ AUX redict-7.3.0-system-hiredict.patch 7707 BLAKE2B c3169965031710fa10674f0b14c6 AUX redict-7.3.0-system-jemalloc.patch 5719 BLAKE2B 63f4fb05c6027677ed057acedf2e3b4bce9cf988147ca399c79e01322006eea67ebeee26761b2bcbc89ca926ed7bb736d51cb31eafc3d059ba47620cc7ee108b SHA512 9367d04cfc59216f1302599b999d8b5da25ccf2cf5dae8475629d81e79849a4006cc6736fe12b08f7c3603a91984c9cd5ba8c362fa04a74d0e686d399a42a503 AUX redict-sentinel-7.3.0-config.patch 964 BLAKE2B 5bed0c1fa1fcd6ca0dd3d2b5099080ceac59605c5f75624c9bdb502726894bbeba549f5a5d97ada32a5ee9905bc13ba8e4ab41aa43f6d5611af70a1ce251490b SHA512 d05ff11d77582c10d5f109d8f0b24ec0bf3deb056fd335d40201d36fd3fe344e86aa5d0b0ed2916e9d05679ca49f46b20a7e297c5e701063289c71dd55e99a37 AUX redict-sentinel.confd 487 BLAKE2B 9db09634f7f8aad966b281a4aa0a8b931fe59b52cd4f6c6ecedc20f705bfff408055c1fee6117380c14967af65c6e52db8ede4461bf6e4bd7e027496e031c49f SHA512 bc68b69eb79a01c7daea2e460844ac577415781eb4e947e7a0b2f8cd15a5f728345edef94a3838183c57b056945770e9eff7891e9d853c1a63746df5e16e42d7 -AUX redict-sentinel.initd 666 BLAKE2B d7161df83904c9247f8bda19f8521c035a0012535e42dc2ab532937333613f485d5347e4931d7226a5eb11fd1b684508b83d71bfba787aef10546e4852bd920f SHA512 c00335bd8f62da0b04302fc33f6bf8e36d5ef8e117cc61b1cb219eb6068837794fcf3d19657612efbc61c06a03ae6af36d471bc72831ec04e0d533f74eca9bc1 +AUX redict-sentinel.initd 689 BLAKE2B 9f8570c0778a1a91fce96b297ba5041eb2a71c89b7124fe64e50d4463a597cf7df02a0238a03f1b15de9232da9b001f07c40cbffff0fb500602b3366af6955e4 SHA512 078cf02831a37bcfc6f102e45e9c4a0f578cbf0c6efd5aa1b1007c27cdbc84204d1a9fc99638fccaab62620748ae23f6bb23dc5f8c7b3f70bc36fd1490671ede AUX redict.confd 535 BLAKE2B 3ac737e7d7f21cd32babf8be705dc494ffc9c0f8c92828cc4b39079477a8abdfb091e9b9d4cb53ae00706942ba4f80f303001bd2785d18f2952d331b979a967d SHA512 fac7aac54a312a561a52eb2c81b9160f9cd6cf0b29eb20aa6499b86ab89fd54ee65698e2df416fe90abd617ff18914526026685d3ff1d00344232aa9e2ba5e5b -AUX redict.initd 716 BLAKE2B b7aea41ba6f0124719a6f9be99b9f22233994d57829749542e581bdf1ee7fcb2bbe4303552ff7f0b5e2dc51c48272e98ab9d16b8feccba9d9d12e1b7bb11d4d4 SHA512 4e8c373dc617761ed7d45c672b4b571c9ee667029bf0c6c6b95f088947f8b035bfdba0e437c09ee5573e2285c787c323274d75a36536abd85805d0c2a52b5694 +AUX redict.initd 730 BLAKE2B 6754f6fb672f134d22e6849433459f0d369b218f12992206a2ed7895b92f6d54a3d49fbf1ebbd8c2252184d7be3ba5c09758fb799e542b7b4760d261af96c92d SHA512 e49782ef0866086a8224817a29ab25d72129eb41dfdd7dbfd2c07204070d26e3d68f0e28fb3a479a2fcf7f06e72964b1665abfeeaaa3438f769101e56e0a48e8 AUX redict.logrotate 108 BLAKE2B ed7c2f04a7994b88a18fee851775bb2fb964bd835b26a7498ea27e57bf275a3f5b4bf6bd9642f390f5d42159f242d0f83ffac10b5f36ec8cdbab64d4ff6fe9cf SHA512 63f1af50b7e9e7e90cf2c3f83013c6484c8020c14c519161d7d0bf3045ca9f90d1032d40bebf59aba906ad5929cd84ec9ef45556d60a83dc75cd148ef4984a88 -AUX redict.service 262 BLAKE2B 1e6eec3426fe0890a767ae8365313d4e28a5746d79aecf88a1bf26a5a9c8ee425bfb7726a4436e64d9c6a34d75f32903a1fe8359e61f509a8b226cf3013bf7d9 SHA512 131a06df2b4b0cd5a0ed5ad0b3022d698d21c4aa5a502d92508de64707f0a4cd41482c196eba83549aebfc193640530af945ebb6213eb0f30d6ee9d204acd4fe +AUX redict.service 261 BLAKE2B 0dd1a9fb7adae63f794602cca9a913f1c41e706e603e33870ebbe13d9bf794a7b73f8e528a17f16002891263ff7a20a322950d6ff9f274fc5916cc457a96e574 SHA512 b80670424709577f946d3a063032011690aff1aa3b55849f143370c61703fbc6bdb02561f04bf20864addcca8ee5491e95d971bf37458939daa9bc54f8f57ab8 AUX redict.tmpfiles 60 BLAKE2B 79f15e360cb2fbdc07a676a17a438fb5d85cb0252505e5fb86d52294eb5f6fc304c5dde98149e344223b11e599901fdd2f0cba6dbb09400b5afbbb3c0190e7c7 SHA512 4e81318de5760e152403b44ec3ee0b18a9be602501143bb2d2b0841608ea5460fc890fb211264d7c80ac363b2295e14bd06d51ea7bd6259f28c9b947d322a30a DIST redict-7.3.0.tar.gz 3414514 BLAKE2B dd2ce2fdd8fbede33ddea9fee34e81535b0948a8963fb0d3391aac32ddf786e5cce996d1d405d81182ef6098ab8389b3c71b95ff9d8cbc68637746538e36999d SHA512 d33f4dfaf728f5a22abe7a6223f3192c39dc41a32e7bcb0f453caaa859f35b512534979c26ced9f4458c19611debd282f37955e930151c0f827035f349647226 -EBUILD redict-7.3.0.ebuild 3719 BLAKE2B e374237bad6af40ff0ac618e6c73a18beaee7842147eac8d1d3e016aa84320dcc40903d7ef42a6841571f054bf9e439d99afaaaa76555d11a52b5a404e8443d9 SHA512 4bf94148055fa1fa6bb77a2acb9ef21564af2484d9a14d4c902769addf12d7a7232163f18867c78c022ce5c158b99f6511a5bf0c95db8f8487bbf000cd5d16c1 +EBUILD redict-7.3.0-r1.ebuild 3719 BLAKE2B e374237bad6af40ff0ac618e6c73a18beaee7842147eac8d1d3e016aa84320dcc40903d7ef42a6841571f054bf9e439d99afaaaa76555d11a52b5a404e8443d9 SHA512 4bf94148055fa1fa6bb77a2acb9ef21564af2484d9a14d4c902769addf12d7a7232163f18867c78c022ce5c158b99f6511a5bf0c95db8f8487bbf000cd5d16c1 MISC metadata.xml 610 BLAKE2B 0c61950ab5459b6122247c049a2f18373fa5bd21496882d4478f7e9d91683d6978f23997cbe3ce11bde346d9ad0bcad810a358f719aea6355c86466f0299f08e SHA512 65141d43ca54cf57962b24a5d5cacb3894675994a0b87b561216a6c7a26526bf5f9b4952c23eadd1e4598c56d9b147b219ef010fe62e0cc8f500f8bc4cb40366 diff --git a/dev-db/redict/files/redict-sentinel.initd b/dev-db/redict/files/redict-sentinel.initd index f2d4afcd3cad..e3417a33ee57 100644 --- a/dev-db/redict/files/redict-sentinel.initd +++ b/dev-db/redict/files/redict-sentinel.initd @@ -11,9 +11,10 @@ depend() { use localmount logger after keepalived redict + provide redis-sentinel } -command="/usr/sbin/redict-sentinel" +command="/usr/bin/redict-sentinel" command_args="${REDICT_SENTINEL_CONF}" command_background="true" command_user="${REDICT_SENTINEL_USER}:${REDICT_SENTINEL_GROUP}" diff --git a/dev-db/redict/files/redict.initd b/dev-db/redict/files/redict.initd index 80b086fbfce1..6d1916b3e83d 100644 --- a/dev-db/redict/files/redict.initd +++ b/dev-db/redict/files/redict.initd @@ -11,7 +11,7 @@ # https://bugs.gentoo.org/631002#c10 # Force '--daemonize no' to override the config file -command="/usr/sbin/redict-server" +command="/usr/bin/redict-server" command_args="${REDICT_OPTS} --daemonize no" command_background="true" command_user="${REDICT_USER}:${REDICT_GROUP}" @@ -22,4 +22,5 @@ start_stop_daemon_args="--chdir \"${REDICT_DIR}\"" depend() { use localmount logger after keepalived + provide redis } diff --git a/dev-db/redict/files/redict.service b/dev-db/redict/files/redict.service index 97fabd001d8e..2ec1cf7bff1d 100644 --- a/dev-db/redict/files/redict.service +++ b/dev-db/redict/files/redict.service @@ -5,7 +5,7 @@ After=syslog.target network.target [Service] Type=simple PIDFile=/run/redict/redict.pid -ExecStart=/usr/sbin/redict-server /etc/redict/redict.conf +ExecStart=/usr/bin/redict-server /etc/redict/redict.conf User=redict Group=redict diff --git a/dev-db/redict/redict-7.3.0-r1.ebuild b/dev-db/redict/redict-7.3.0-r1.ebuild new file mode 100644 index 000000000000..b53bf105c3a1 --- /dev/null +++ b/dev-db/redict/redict-7.3.0-r1.ebuild @@ -0,0 +1,159 @@ +# 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 + ) + + 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.0.ebuild b/dev-db/redict/redict-7.3.0.ebuild deleted file mode 100644 index b53bf105c3a1..000000000000 --- a/dev-db/redict/redict-7.3.0.ebuild +++ /dev/null @@ -1,159 +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 - ) - - 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