diff options
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/Manifest.gz | bin | 17460 -> 17451 bytes | |||
-rw-r--r-- | dev-db/apgdiff/Manifest | 4 | ||||
-rw-r--r-- | dev-db/apgdiff/apgdiff-2.4.ebuild | 51 | ||||
-rw-r--r-- | dev-db/apgdiff/apgdiff-2.7.0.ebuild | 55 | ||||
-rwxr-xr-x[-rw-r--r--] | dev-db/henplus/files/henplus.pre | 0 | ||||
-rw-r--r-- | dev-db/lmdb/Manifest | 2 | ||||
-rw-r--r-- | dev-db/lmdb/lmdb-0.9.29.ebuild | 2 | ||||
-rw-r--r-- | dev-db/pgbouncer/Manifest | 2 | ||||
-rw-r--r-- | dev-db/pgbouncer/pgbouncer-1.16.0.ebuild | 81 | ||||
-rwxr-xr-x[-rw-r--r--] | dev-db/postgresql/files/postgresql.init-9.3-r1 | 0 | ||||
-rw-r--r-- | dev-db/qdbm/Manifest | 2 | ||||
-rw-r--r-- | dev-db/qdbm/qdbm-1.8.78-r3.ebuild | 2 | ||||
-rw-r--r-- | dev-db/redis/Manifest | 12 | ||||
-rw-r--r-- | dev-db/redis/redis-5.0.13.ebuild | 2 | ||||
-rw-r--r-- | dev-db/redis/redis-5.0.14.ebuild | 164 | ||||
-rw-r--r-- | dev-db/redis/redis-6.0.15.ebuild | 2 | ||||
-rw-r--r-- | dev-db/redis/redis-6.0.16.ebuild | 189 | ||||
-rw-r--r-- | dev-db/redis/redis-6.2.5.ebuild | 2 | ||||
-rw-r--r-- | dev-db/redis/redis-6.2.6.ebuild | 189 | ||||
-rwxr-xr-x[-rw-r--r--] | dev-db/slony1/files/slony1.init | 0 |
20 files changed, 698 insertions, 63 deletions
diff --git a/dev-db/Manifest.gz b/dev-db/Manifest.gz Binary files differindex 4afe9b1a750b..b0717fb0d514 100644 --- a/dev-db/Manifest.gz +++ b/dev-db/Manifest.gz diff --git a/dev-db/apgdiff/Manifest b/dev-db/apgdiff/Manifest index e610b25c0897..5ba967673257 100644 --- a/dev-db/apgdiff/Manifest +++ b/dev-db/apgdiff/Manifest @@ -1,3 +1,3 @@ -DIST apgdiff-2.4-src.zip 227714 BLAKE2B 1c62c94592b28a7caf5a56f4ef4206cc2655f2da278d5a71e165f409587d1573dd44b62261817f0b994ed95a398555190dee6a2873fe493f695e91c6cf9dd22c SHA512 f37e0f86ff8a8bc53a43cac1748ab3a2c96ab6c972b37ee63f281ee397b31a7b48986cbc963d89ea773f1bb7b10b798de74a4c88a03f2db7672501b93355261b -EBUILD apgdiff-2.4.ebuild 1093 BLAKE2B 424bd47dbdcd0ab3c1cd8a2023d5e1ca1d9d4079f0881bcc1866607d7dd25c00efb14c9661619a28a30378d1a0d516af32efd021c8ea782382f919533392a3f6 SHA512 67ab1f76df9459c8dd91f207a65849d27202751210290e68506b55d69042d747c2267793c318320502664b7166fe8039856206d47f3f4882fc6f8c0064f2176b +DIST apgdiff-2.7.0-sources.tar.gz 365759 BLAKE2B 6a43bea29fa77a6a07b8599b150769e42480e656d7930faf56dd5db89a2281e10baee596e78d245411879ca99e143d3ebfb6144ea68b5d2f56f7f939004897dc SHA512 db52bcf5af78339ab08cd6a5225d7df9d55cf4eb1bcefaf9e9b12f8ac06f7babb2261ac92b7aa49a6f43a39f9e7894f4dea88b1b794f0a87681ab872c5d1d430 +EBUILD apgdiff-2.7.0.ebuild 1438 BLAKE2B 11fadfe58847598d374689b85644f75c3c055b6b9ed99021db27725f5eeb81b7e6aa04cc6b40cb1d7529a9c70a9efa5206935fc99a7136a9a44754b86fd317eb SHA512 c34b4767f170f31a8c5dbc16458a5f43f39001e3fd55e882a00907513aed8fad4e9b32f0acc9b0d608a820d801773978ab080e61a9437ea732d6e236e31e737d MISC metadata.xml 302 BLAKE2B 919daabbb1bd47c74c25ca82a10d1658a79fee2ccd811da21b0208288ee2c0ace315c8e4322a4a025253f2cdf8ed4829b23ca4e4277e9877a3603880f6114888 SHA512 680951f51e23e4c0533b1d12ebf47ecd3e3ea2c3c793fe4c2f03c24de6cc270cec93270641893a1ca420636de3d7804c405d4c38b917c731f8dcbb223fe3d4c1 diff --git a/dev-db/apgdiff/apgdiff-2.4.ebuild b/dev-db/apgdiff/apgdiff-2.4.ebuild deleted file mode 100644 index eed28c458186..000000000000 --- a/dev-db/apgdiff/apgdiff-2.4.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" -JAVA_PKG_IUSE="doc source" -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="A simple PostgreSQL diff tool that is useful for schema upgrades" -HOMEPAGE="https://apgdiff.com" -SRC_URI="https://apgdiff.com/download/${P}-src.zip" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=">=virtual/jdk-1.6 - >=dev-java/ant-core-1.7.0:0 - >=dev-java/ant-junit-1.7.0:0 - app-arch/unzip:0 - test? ( - dev-java/hamcrest-core:0 - >=dev-java/junit-4.4:4 - )" - -RDEPEND=">=virtual/jre-1.6" - -java_prepare() { - mkdir "${S}"/lib - cd "${S}"/lib - if use test ; then - java-pkg_jar-from --build-only hamcrest-core - java-pkg_jar-from --build-only junit-4 - fi -} - -src_compile() { - eant -Dnoget=true jar $(use_doc) -} - -src_install() { - java-pkg_newjar dist/${P}.jar ${PN}.jar - java-pkg_dolauncher apgdiff --jar ${PN}.jar - - use doc && java-pkg_dojavadoc dist/javadoc - use source && java-pkg_dosrc src/main/java/* -} - -src_test() { - ANT_TASKS="ant-junit" eant -Dnoget=true test -} diff --git a/dev-db/apgdiff/apgdiff-2.7.0.ebuild b/dev-db/apgdiff/apgdiff-2.7.0.ebuild new file mode 100644 index 000000000000..40a2fdce9033 --- /dev/null +++ b/dev-db/apgdiff/apgdiff-2.7.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/fordfrog/apgdiff/archive/refs/tags/release_2.7.0.tar.gz --slot 0 --keywords "~amd64 ~x86" --ebuild apgdiff-2.7.0.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="cz.startnet:apgdiff:2.7.0" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A simple PostgreSQL diff tool that is useful for schema upgrades" +HOMEPAGE="https://github.com/fordfrog/apgdiff https://www.apgdiff.com/" +SRC_URI="https://github.com/fordfrog/${PN}/archive/refs/tags/release_${PV}.tar.gz -> ${P}-sources.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +# Compile dependencies +# POM: pom.xml +# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 +# test? org.hamcrest:hamcrest-all:1.3 -> !!!artifactId-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} + test? ( + dev-java/hamcrest-core:0 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND}" + +RESTRICT="!test? ( test )" + +S="${WORKDIR}/${PN}-release_${PV}" + +JAVA_LAUNCHER_FILENAME="${PN}" + +JAVA_SRC_DIR="src/main/java" +JAVA_MAIN_CLASS="cz.startnet.utils.pgdiff.Main" +JAVA_RESOURCE_DIRS=( + "src/main/resources" +) + +JAVA_TEST_GENTOO_CLASSPATH="hamcrest-core,junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "src/test/resources" +) diff --git a/dev-db/henplus/files/henplus.pre b/dev-db/henplus/files/henplus.pre index c29585e369fa..c29585e369fa 100644..100755 --- a/dev-db/henplus/files/henplus.pre +++ b/dev-db/henplus/files/henplus.pre diff --git a/dev-db/lmdb/Manifest b/dev-db/lmdb/Manifest index 467ce5e320ea..041ab34e8d46 100644 --- a/dev-db/lmdb/Manifest +++ b/dev-db/lmdb/Manifest @@ -3,5 +3,5 @@ AUX lmdb.pc 295 BLAKE2B 29c1cc5a70eb3d7f5c9dc4b1646644045514929428f164894ece93a4 DIST openldap-LMDB_0.9.28.tar.gz 144520 BLAKE2B 3466da1ffde7350056fb3b16fc0068d78139c578fdf79cd6456ca0d98e2d7b3d899849ae42a7224335a4680e52b5f0feb2c4233eaf00ee3d9ee648ae10c3114a SHA512 0cdf9a2ce35617a3135cde96491fbbb73be9362de2b94d23eda44b65ce48362ff9dbdfe921c3255ed486aceb385fcb62b81f560b1037476f4741291b29ba0dce DIST openldap-LMDB_0.9.29.tar.gz 144545 BLAKE2B b7e55e4fa03e878a95b8f7c583684727a81d51a3acf2ec064d8fe26475bf9ffe4dddf16c2bccbda901b94b7c8d57f41fa63f7c09bcab46401bd000958a5b87b3 SHA512 b41ba5b139375d23617a79f4d322399df55745c5a4a63159ddbe0f1ded4707f0eb7f71acf3d1a4928f8fcab30a7b5db17e3e165441a61ec1dbd29f8d9efa65d1 EBUILD lmdb-0.9.28.ebuild 2423 BLAKE2B 636c329e7b7b25836eab23957eb79511cbe0e8d0a77f3d05628b7b0947772e07f287e802d682eadb95e6bf358dfdbe5eecb3ac95aa92e98c649cc7981958aa7d SHA512 32b293b7667938b1a79752904e7a42e73a1391aa7d89c3cfa3fffe350d3fc6aa246837ef0d0de6728e0255cea64c560b34ab9a6e382ec105833b0eccdd403bef -EBUILD lmdb-0.9.29.ebuild 2366 BLAKE2B 8c0dd9081b6b427a775ddff22a341f2d5814133946643ffb27a45e6e22e66167bd0f0db9d59188aa284e3087e9aad66eff88a180332ee5baa45a220e811c27b2 SHA512 20e616de78ed27b15549f72e4d08ae12fd0c233f3471fb5e73e4e39e54b698eda3fa6204893ddfe3cb4ed4f82d22738031606708854eccc9bb2284291b9d0c31 +EBUILD lmdb-0.9.29.ebuild 2365 BLAKE2B c866c7d85d39d8a4a99baf2d36bef664225527c182280cfc36e187e0b2aa2d040744f795d2e9a5b32fd51a656b8fb03a5c327ff3f3221b06a1d44b36c945be4b SHA512 b0328350ff390b7f7560dbc1aa4febd8088fd99ca709d11a526359d7090c3896066a23cca842af2af21419580a9cf95e91045b172247512ecee6c87a5de6524a MISC metadata.xml 433 BLAKE2B cf3186fe7876aa15283c1d2154469b7f8451e99b3a36637e67820703a576fa1297ac7804ef7df660aaa63a44b1c18a3d2298dac12159a3b3268526e10d7bdaf9 SHA512 f526eb14df23a1b9e92bec0b643e8dc993ad489e8776641aa330d1db878dcf4fb1b7dbb8b62e0c88a4ea484a393e5b396902abb2d035b8a311555e1e69fe387a diff --git a/dev-db/lmdb/lmdb-0.9.29.ebuild b/dev-db/lmdb/lmdb-0.9.29.ebuild index 23a29fb5b0ae..b4031a6ac0a5 100644 --- a/dev-db/lmdb/lmdb-0.9.29.ebuild +++ b/dev-db/lmdb/lmdb-0.9.29.ebuild @@ -12,7 +12,7 @@ SRC_URI="https://git.openldap.org/openldap/openldap/-/archive/${MY_P}/openldap-$ LICENSE="OPENLDAP" SLOT="0/${PV}" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" IUSE="static-libs" DEPEND="" diff --git a/dev-db/pgbouncer/Manifest b/dev-db/pgbouncer/Manifest index 40234e63ed19..c93e89c8e47e 100644 --- a/dev-db/pgbouncer/Manifest +++ b/dev-db/pgbouncer/Manifest @@ -3,5 +3,7 @@ AUX pgbouncer-1.12-dirs.patch 804 BLAKE2B fba4fbc1a9c01b2d43f74719cbc4b285817c30 AUX pgbouncer.confd-r1 457 BLAKE2B 0b2e33b57ee33eac42742a8f9fe7c0f090bad53c5d7c29d86fd3047307bd05d62f922fc66a0805ba3396934f6e2e7060f810f1c71c5b07d887edf2763cc0f40d SHA512 0642b12236e944b6b5086b593dfd4a5d7c04c8347fc286835381945a50a421e87805900d63d84d12dcb1fad667fc81f21c8644c63af33388a71048ec6e024ab5 AUX pgbouncer.initd-r2 2204 BLAKE2B 9c417188d4a762906c7631f1ae8fc7c7b8f6c52805acf6bfc12d580c53b2faa4e36b7c0662852feaf78aebcc29498bb8ae441d749a710793508c6950a448862f SHA512 dd9e8f7487affcc46b359e6d07a4c2fd698626d7360d2b2929389bbd7a340059eb27f0e0e9a648b7005c446d65762edbb02b865fa68194ebb822c01fba19fd7e DIST pgbouncer-1.15.0.tar.gz 588042 BLAKE2B 3dac09303e1c86126dd9cb44823c6f3fca4195e3155b360719c736c6e1327cc10d05e7f1e45c08d14c1dd0cb5c074b32263eee3be9e6350db9a8c5cbdfe61aa1 SHA512 5f78018ab80ab8d81f20ef3df1314ffc9557f1c6469d485d11ac822f596e3d4b554743fd9e9fe19b008a8aaf93bcf3673b42a8fb82bbd9611bd735cd2cbb98c6 +DIST pgbouncer-1.16.0.tar.gz 592136 BLAKE2B 752d5cfa18dacfdb72e9e9f12d5a1ac5346649e3a0c49ef530dd29ca16039949af0993d54080a7cf558c6eb6a919254c1dc4a36ab22f38992e790469ecd973bf SHA512 3b6f23052ca3b8af40a618da6bed2577b92ffe27b627f8980cda2d645991434bf298f720c1d423a272961c9f3f52a9d1b28154ed7f355d539f71dc68c028b617 EBUILD pgbouncer-1.15.0-r1.ebuild 1934 BLAKE2B a683d31bd0b0a2a002d37fae0f728862050b7a785fad1041ea1eb1da9ef06ad4df23289ab65bb4cfe900ea61be1325a929018ae12fd916b5eaf9a16cf008ba98 SHA512 720770f595979da91cebc28ebbccca227ccca566911f5edd3ebd8e929c4cc63ff9d2f5737d213dfeaba16e1ea45655b39a538c03a231c3581bfa1441f51d2159 +EBUILD pgbouncer-1.16.0.ebuild 1936 BLAKE2B 885194e4c45ea7b29ad86aa01d35cb3c7cdcbd0284ee909a3b918cebef78aedf2dd9753be9041c055373ff007f5e8537a5c550fa07f221b5c84455a45b384317 SHA512 7c23ffa5fd0e26cbfae6ceb0274871f01c1da4b5f4014eb41bed779f418aa26a192f953f63f26fd83352fc9a043d78d1cabda054366de094616bf76c01a13d6a MISC metadata.xml 473 BLAKE2B 9a55701f54f80f87559e57543574c98ad69eb8af4f6f93df3f115d55f3f3a8abf712a42e6f7b36dccb9813ec37d03924f001f4dce2b626f80658d29618068bbe SHA512 82f8d497578074d070bd0ee269ad49f58809524e17f444fb557a7a2dfd7f143d40700208a66c074d508d33be94efa4c021486642624fb416e6da735855ecd66e diff --git a/dev-db/pgbouncer/pgbouncer-1.16.0.ebuild b/dev-db/pgbouncer/pgbouncer-1.16.0.ebuild new file mode 100644 index 000000000000..abad489902b4 --- /dev/null +++ b/dev-db/pgbouncer/pgbouncer-1.16.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +DESCRIPTION="Lightweight connection pooler for PostgreSQL" +HOMEPAGE="https://www.pgbouncer.org/" +SRC_URI="https://www.pgbouncer.org/downloads/files/${PV}/pgbouncer-${PV}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+c-ares debug doc pam ssl systemd udns" + +# At-most-one-of, one can be enabled but not both +REQUIRED_USE="?? ( c-ares udns )" + +RDEPEND=" + >=dev-libs/libevent-2.0:= + >=sys-libs/glibc-2.10 + acct-user/pgbouncer + c-ares? ( >=net-dns/c-ares-1.10 ) + ssl? ( >=dev-libs/openssl-1.0.1:=[-bindist(-)] ) + systemd? ( sys-apps/systemd ) + udns? ( >=net-libs/udns-0.1 ) +" + +DEPEND="${RDEPEND}" + +# Tests require a local database server, wants to fiddle with iptables, +# and doesn't support overriding. +RESTRICT="test" + +src_prepare() { + eapply "${FILESDIR}"/pgbouncer-1.12-dirs.patch + + default +} + +src_configure() { + # --enable-debug is only used to disable stripping + econf \ + --docdir=/usr/share/doc/${PF} \ + --enable-debug \ + $(use_with c-ares cares) \ + $(use_enable debug cassert) \ + $(use_with pam) \ + $(use_with ssl openssl) \ + $(use_with systemd) \ + $(use_with udns) +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc AUTHORS + use doc && dodoc doc/*.rst + + newconfd "${FILESDIR}/${PN}.confd-r1" "${PN}" + newinitd "${FILESDIR}/${PN}.initd-r2" "${PN}" + + insinto /etc + doins etc/pgbouncer.ini + + insinto /etc/logrotate.d + newins "${FILESDIR}/logrotate" pgbouncer +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]] ; then + einfo "Please read the config.txt for Configuration Directives" + einfo + einfo "For Administration Commands, see:" + einfo " man pgbouncer" + einfo + einfo "By default, PgBouncer does not have access to any database." + einfo "GRANT the permissions needed for your application and make sure that it" + einfo "exists in PgBouncer's auth_file." + fi +} diff --git a/dev-db/postgresql/files/postgresql.init-9.3-r1 b/dev-db/postgresql/files/postgresql.init-9.3-r1 index d3d3ea13be64..d3d3ea13be64 100644..100755 --- a/dev-db/postgresql/files/postgresql.init-9.3-r1 +++ b/dev-db/postgresql/files/postgresql.init-9.3-r1 diff --git a/dev-db/qdbm/Manifest b/dev-db/qdbm/Manifest index 1d5aeac11b63..c3f19a889e95 100644 --- a/dev-db/qdbm/Manifest +++ b/dev-db/qdbm/Manifest @@ -5,5 +5,5 @@ AUX qdbm-ruby19.patch 10116 BLAKE2B 9a15c5d2e0cf8237edb78e68b2f9fde4868841bcca6a AUX qdbm-runpath.patch 1133 BLAKE2B 9b1c8c211d8e4075a77a34f3d79ca15cb3d833801777bdb328293047539bdd1a51c08031b3400c11d10732aa7864078ca8db02713a95cd90704e1a9e26f5bd10 SHA512 de8bde4a614617d742131e8025fd661019ec81b803817ef32ffca461b2c8b60c20756f6e6f84d6f23124eed3947ab3573b8c4a05b254f8b4d3e53f0cf7bc8452 DIST qdbm-1.8.78.tar.gz 1015429 BLAKE2B 1b985d856ff18ddfeb2d779694ba9a76006908b4b2a7509d4e3668aded80e08bbde28bcc24762ec27048cdc01dc84f9872dbfc221e8eea6f1c68f5e81cdc69d3 SHA512 480549c56071bf82edf714a611aef863599c858ed63702820ae0890fd2c0029d1a231ed94a8090c74420dd648bd3625d270a5c078b113cbb86a12ef509e19037 EBUILD qdbm-1.8.78-r2.ebuild 3681 BLAKE2B 888a4b4312742a380bb6e7e5cca9f9114dac0579bd71a1c5435ecfc6b098669c66bd4ed77d1c5f2808cb386ebae17f25909c016ec42b74aad71e9984cac233b6 SHA512 c7ef0976be36d203048a7bd2190dd6fa6d34f0ebc56fef67eac4569f07b6731e1b73b0a2f5658ab585139239e4dd64f209e4f44597012fbe7edadcd56d06264a -EBUILD qdbm-1.8.78-r3.ebuild 3689 BLAKE2B 43e1b26a3b4e1508562675dcc6cc90159faa6485ab16ea673501be9e93e8f00b14a017826ec139a7f5a65228f727123e6cbedabf50d0d87ceb52bda1e1f4332d SHA512 5f9726aefae23bc29f93c7fa69b60b8c51b1c3d96b397bdc6a3948ee2228d72af6bbffc66a247b811dd156cf5c513a3d345a07c994f69245409fe01faad3c18d +EBUILD qdbm-1.8.78-r3.ebuild 3688 BLAKE2B a4de1a8685d829e2b679a329aaad802c45bbe51eb69e6f7cfff32684d92fbef9b6b2e6e16b0567b15b12f9efcd47e73ecad3fa9152ca3484858d67fbbcb1eb0e SHA512 71ce6fa65f3eb71c85d25aa201ba3794f758a9a5087ef596cb9b2b72899890ce8b6af44551c39c3bf3f9a55bf3f4008f5882b85554ba986ae539523ca3792ece MISC metadata.xml 222 BLAKE2B 425bba0db7c4bc483eddcb51bb4151324b62afc42496047413bf9d0480fd731ea78201a8b99c42d9adfa9b20614f9507e8e89a87e9afce32aa9db82f42f827ed SHA512 7ae4d3d64e85fb01194d31b41843c10e3bf6a782e9f308cbe3f0a75c0a07d6af2a88013549b5840b3cd5e766d5044f0da290c31a4800d1823f6eca4028b082da diff --git a/dev-db/qdbm/qdbm-1.8.78-r3.ebuild b/dev-db/qdbm/qdbm-1.8.78-r3.ebuild index 2d5ced540e56..826283f03b2b 100644 --- a/dev-db/qdbm/qdbm-1.8.78-r3.ebuild +++ b/dev-db/qdbm/qdbm-1.8.78-r3.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://fallabs.com/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86" IUSE="bzip2 cxx debug java lzo perl ruby static-libs zlib" RDEPEND="bzip2? ( app-arch/bzip2 ) diff --git a/dev-db/redis/Manifest b/dev-db/redis/Manifest index bd0eea41517a..2f5446d3c940 100644 --- a/dev-db/redis/Manifest +++ b/dev-db/redis/Manifest @@ -22,9 +22,15 @@ AUX redis.service-4 255 BLAKE2B e51cfbb7ce6586e7c16003e3b470be036e9c28b408c4ad71 AUX redis.tmpfiles 61 BLAKE2B 1c3bf8aa105940c408163f61c63ed16b86de7a979cb5143d15700cac329970f351cb9b9377aa82e6f4dae377b00c1710a1e0f54334f007cfed64551f761034d4 SHA512 741ff5a4df5b04e7af4e81357812bf5b6cf992bc18b6052074aef134401d0a92703a2e41f52966012c05ea80fac5636435c8d3e6ed55e62a5711526ba67ee738 AUX redis.tmpfiles-2 57 BLAKE2B 1e0577c1828bb693cf820f3ba5e77d7d748adf4df2d1910d465ce097765308c7b7ea729526404120d04a79b547e865df93f7bfce1e63341c73563496f1dce691 SHA512 3de050ce044b7daf71219ec61dee2bc31acef161319b87ec2963b23c72e8a4807f1302c4932897664a63ef94507449f6ab75ce18d59f5e1a4558c330a7042e43 DIST redis-5.0.13.tar.gz 1995566 BLAKE2B 1020b26162d212f980fd07bfe1879120306c7e796cde7e48dfcc1c3aa555a0a25299c17ad65515cc54be3c354bff58cefe67bba5dfc26f6b24d56a46debfa267 SHA512 9784193a53b459a2e4937e8f0d18652a0677d29746e359e5f8ffddeea4cea305f10c8eeae9007e49c0ba9ebedb9b603aced61592ba3302e5b64be78020b3b4bf +DIST redis-5.0.14.tar.gz 2000179 BLAKE2B 77d3ed09a81450dbf806edd017785b82c50bb059aab44c82bc4ab784b7f03d5c58f9372b96c857831f84d278771dcf223f42ca05af790f0dc10ecdde211fd149 SHA512 513299ae8b967a659d54812fab4dfdfaf0081b20136a3d89b6a761e93548583c96436fedb84baa4d23385b42110ef615527efc3690b873f5bec7793403fe7eaf DIST redis-6.0.15.tar.gz 2282471 BLAKE2B b7f37a76d2a16e0f84f51a737e2c23ebc27750ece790cf800a0f70bfd481db01d82dc68511f80e5935dc73d70f02716a4f9005d4d177ecf3f2a0c5290ecd41ff SHA512 e7ba123798a11e1c68dd6d3ebb0586bed4f2bb33755871f1577f7e0229f826b468c2130c31bcc85a64ce7ff54e280df0a7c60e0882f3ed2a11d43e7819fe8b9e +DIST redis-6.0.16.tar.gz 2288647 BLAKE2B f3552cc0d27cbc5cf6556792da9a75d01ff70d372484c95d2af8b24ec902a8086b9c3f4e53513df982fe135963432bfb527334926dd494e50d2cc618ab813f39 SHA512 83bb72448f9943e3d015cb4d961eb2eae21602ef1f90ca52ca8ab7c6918b0ab979db9f61f3981df27b2286894f4864f4588c3a52fa988e30e9419b0967998845 DIST redis-6.2.5.tar.gz 2465302 BLAKE2B 51cc672ab432bb87560151521289d04e8fefb8e4df820f58a9b742131a0f1960c0019dec42a601bad827ec2a172375b88b6cf32a19aef42964e18f5a7a911c40 SHA512 8c54451032cbb627ec2827251556cba2010e56544baca7ea117b5afd2c2add484acbedd3baf21bdb8fd10672602cf52294a4e26b135c1406d7a723c048275e3a -EBUILD redis-5.0.13.ebuild 4665 BLAKE2B d73dc631c2ee11c63c5333a2f87998ce36d20e2a368211d085ae13ecfbe80988976832fdc9afa2d8e33a5ce4b80103d1f005af14630055199d29bde5afc42148 SHA512 e9e7eb1ddf6c024cfdf98d9f765603dc27422d836f2d0e52bdf30b059db78672d5a80261647b52ec3eeb94b03dc31756d663533213ff519913ae2f9a9215d192 -EBUILD redis-6.0.15.ebuild 5122 BLAKE2B 404341bf27355e08d34e15296c4d69fd30f91615d2f8ec2ea3357cf199398aa772b5f6faf009da179d6907407292f5390dfcfc2e91e27d503e85f16fbb2e0f26 SHA512 5c3388fb008e47e738f97c76c2c43e8870b415ea4efa3a67d5c63c7d063cfab721fe35eac18818fe2b38282c4533b39ea3a8682ab6273407ccf9b14af8b84df4 -EBUILD redis-6.2.5.ebuild 5128 BLAKE2B b1f9da0f33a4bd54b2d7031cd78f8961b65161ad739744b83db5ff49a60c46019f1461f8d5d890c2449dd4ea5917cca39a60ba26357b7555b8f9dc3c65a95ca4 SHA512 6bfb83e5c843a63fcc4a8d35517afc2ebd44b18cb062f9f5092ee6c02d1b8be3e13f8777844d33c81daf7e3475acf5366bb14524449ae2aaba91b5655e2bfadf +DIST redis-6.2.6.tar.gz 2476542 BLAKE2B d139479432171294911d99e7e8c2327dbbc6682ea49de761c4bb4089a2efd814926f2f8823dca1826b4a61dd9ccf79abb22878c9463ac92870481b43d8a7fff7 SHA512 9b947d26fd9e208627ed22d318ab3d0775ab0be46d98db1c1d158feac671b984e75ce33e647d196face9643f80768af47e678be1b4e1ddd3eb56dff467c46022 +EBUILD redis-5.0.13.ebuild 4665 BLAKE2B cf9e076f373a99384e49a4f411aa7e34a692b94dbbb4b58e2465735efe55fbd05ea10152373a14ac115f4f08b41b5eff580d3b457bff596ff29af9981433ffda SHA512 6fc35519713d68a57fd18dd3a6b36f1ed109481be47c988c5335469fe760a63f8f976c9834df0f25d9fb35d1c9b634c60316d64e0fd3ae32460d819ecbed2216 +EBUILD redis-5.0.14.ebuild 4667 BLAKE2B e0dc1a2ee0edfbd6422d908ee29adc27125d9bfcae5f5ffd9d3801060e3d9b0fd8a184ede300ca6f457cde027db16429a68fa37020db807779ffa95bb1605c06 SHA512 93a8d01868180f443ac192420902b7a34bf84998e864c0e96b008f421d43dd3f469931ba6eb1fc56b665ffb4282fe51b7194825becde7fcdf6dc53e798ea3784 +EBUILD redis-6.0.15.ebuild 5122 BLAKE2B b6a0e8a15dba59fb7614ab9f0747f26165ce1ec96e735e783450c2a1eed9fa767a35d5ad172483b620da1dc0bb8b368643f692bb57c72c31deb4245774f60dfc SHA512 831b3fa61caad327c61e1132f53a35ae47efb1b5986142cdaf348aad0c6e885b9e36e1c4be2bfe99777270ef4f4074b2350913a435156b657dc01c71eaa31be1 +EBUILD redis-6.0.16.ebuild 5124 BLAKE2B 0e4f450765059a026c82224d91e585ddf2e3b14bfe2a8d395a2ec8760cdf7a93aa4e2e6971f5a83509b387d9f54c75c44c5126f16956d2f42619143666d4fbca SHA512 28997a913a386c568eb82051ff3e3c256b00d7f01734d24b7459312ce9ccd3c43e3a893c5cf90993cb288700340ca5c99d0a7bedb8431237c037ae0fdd067433 +EBUILD redis-6.2.5.ebuild 5128 BLAKE2B 5c13e1c15456d1038ba306e6a59c26fc56dc9558aa15e846becc56a950864203d85ef03f8c2e3d41fa24cb62fca0963bcb253c0badf49052e3b0f6f25cd297f9 SHA512 c89904640ef675c807f673a4100058bb7443895272fd73a9bd9b6d749275be3124d25203603b9459178df9c58c25a9ffcb13c330b5daaa50a4cd53d1702e12d9 +EBUILD redis-6.2.6.ebuild 5130 BLAKE2B 3565f578329569756ad67ebff767d3c2463705d19f41b4efc595490f8eb043cd8eea6753cc5a5decda4cc748015320997e345190fde310e448b879ae43bc931a SHA512 4af5a863a3865caf81d7c210054393b27394f4e02b9b63f693e2b13557943fcba57f0f8ea2ac0d2f25ca6493a5e6ce638fbfee0f29e49c39861f25013cb47550 MISC metadata.xml 365 BLAKE2B a2a33da17b877c0e66732b18af4c41e78ad7f60403f7d63b43d16797228c2fe0b3e2af2d0ff56af23baa944ae489163732d84e0921335919f5cea26c589e12ea SHA512 54a8b9cb42305881b12ef37c4da78ba3760ab2de4b8f2663b099eba7188deaeae08f5649a0c101d6acae63cf20c20d4c5d33274dc3ec6ced80bed68114f32db2 diff --git a/dev-db/redis/redis-5.0.13.ebuild b/dev-db/redis/redis-5.0.13.ebuild index e3e81cea542e..a8ec106eeb4d 100644 --- a/dev-db/redis/redis-5.0.13.ebuild +++ b/dev-db/redis/redis-5.0.13.ebuild @@ -10,10 +10,10 @@ HOMEPAGE="https://redis.io" SRC_URI="http://download.redis.io/releases/${P}.tar.gz" LICENSE="BSD" +SLOT="0" KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris" IUSE="+jemalloc tcmalloc luajit test" RESTRICT="!test? ( test )" -SLOT="0" # Redis does NOT build with Lua 5.2 or newer at this time. COMMON_DEPEND=" diff --git a/dev-db/redis/redis-5.0.14.ebuild b/dev-db/redis/redis-5.0.14.ebuild new file mode 100644 index 000000000000..8895f4972586 --- /dev/null +++ b/dev-db/redis/redis-5.0.14.ebuild @@ -0,0 +1,164 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic systemd toolchain-funcs tmpfiles + +DESCRIPTION="A persistent caching system, key-value and data structures database" +HOMEPAGE="https://redis.io" +SRC_URI="http://download.redis.io/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ppc64 x86 ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="+jemalloc tcmalloc luajit test" +RESTRICT="!test? ( test )" + +# Redis does NOT build with Lua 5.2 or newer at this time. +COMMON_DEPEND=" + luajit? ( dev-lang/luajit:2 ) + !luajit? ( dev-lang/lua:5.1 ) + tcmalloc? ( dev-util/google-perftools ) + jemalloc? ( >=dev-libs/jemalloc-5.1:= )" + +RDEPEND=" + ${COMMON_DEPEND} + acct-group/redis + acct-user/redis" + +BDEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig" + +# Tcl is only needed in the CHOST test env +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-lang/tcl:0= )" + +REQUIRED_USE="?? ( tcmalloc jemalloc )" + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.3-config.patch + "${FILESDIR}"/${PN}-5.0-shared.patch + "${FILESDIR}"/${PN}-5.0-sharedlua.patch + "${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch + "${FILESDIR}"/${PN}-sentinel-5.0-config.patch +) + +src_prepare() { + default + + # don't call ar directly + sed -e '/^STLIB_MAKE_CMD/s/ar/$(AR)/g' \ + -i deps/hiredis/Makefile || die + + # Copy lua modules into build dir + cp deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c src/ || die + cp deps/lua/src/{fpconv,strbuf}.h src/ || die + # Append cflag for lua_cjson + # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61 + append-cflags "-DENABLE_CJSON_GLOBAL" + + # now we will rewrite present Makefiles + local makefiles="" MKF + for MKF in $(find -name 'Makefile' | cut -b 3-); do + mv "${MKF}" "${MKF}.in" + sed -i -e 's:$(CC):@CC@:g' \ + -e 's:$(CFLAGS):@AM_CFLAGS@:g' \ + -e 's: $(DEBUG)::g' \ + -e 's:$(OBJARCH)::g' \ + -e 's:ARCH:TARCH:g' \ + -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ + "${MKF}.in" \ + || die "Sed failed for ${MKF}" + makefiles+=" ${MKF}" + done + # autodetection of compiler and settings; generates the modified Makefiles + cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die + + # Use the correct pkgconfig name for Lua + if false && has_version 'dev-lang/lua:5.3'; then + # Lua5.3 gives: + #lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h" + LUAPKGCONFIG=lua5.3 + elif false && has_version 'dev-lang/lua:5.2'; then + # Lua5.2 fails with: + # scripting.c:(.text+0x1f9b): undefined reference to `lua_open' + # Because lua_open because lua_newstate in 5.2 + LUAPKGCONFIG=lua5.2 + elif has_version 'dev-lang/lua:5.1'; then + LUAPKGCONFIG=lua5.1 + else + LUAPKGCONFIG=lua + fi + # The upstream configure script handles luajit specially, and is not + # effected by these changes. + einfo "Selected LUAPKGCONFIG=${LUAPKGCONFIG}" + sed -i \ + -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \ + -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ + -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${LUAPKGCONFIG},g" \ + configure.ac || die "Sed failed for configure.ac" + eautoreconf +} + +src_configure() { + econf $(use_with luajit) + + # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 + # also, don't define ANSI/c99 for lua twice + sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die +} + +src_compile() { + local myconf="" + + if use tcmalloc; then + myconf="${myconf} USE_TCMALLOC=yes" + elif use jemalloc; then + myconf="${myconf} JEMALLOC_SHARED=yes" + else + myconf="${myconf} MALLOC=yes" + fi + + tc-export AR CC RANLIB + emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}" +} + +src_install() { + insinto /etc/ + doins redis.conf sentinel.conf + use prefix || fowners redis:redis /etc/{redis,sentinel}.conf + fperms 0644 /etc/{redis,sentinel}.conf + + newconfd "${FILESDIR}/redis.confd-r1" redis + newinitd "${FILESDIR}/redis.initd-5" redis + + systemd_newunit "${FILESDIR}/redis.service-3" redis.service + newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf + + newconfd "${FILESDIR}/redis-sentinel.confd" redis-sentinel + newinitd "${FILESDIR}/redis-sentinel.initd" redis-sentinel + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md + + dobin src/redis-cli + dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb + fperms 0750 /usr/sbin/redis-benchmark + dosym redis-server /usr/sbin/redis-sentinel + + if use prefix; then + diropts -m0750 + else + diropts -m0750 -o redis -g redis + fi + keepdir /var/{log,lib}/redis +} + +pkg_postinst() { + tmpfiles_process redis.conf +} diff --git a/dev-db/redis/redis-6.0.15.ebuild b/dev-db/redis/redis-6.0.15.ebuild index b61d5886247a..347c229d7386 100644 --- a/dev-db/redis/redis-6.0.15.ebuild +++ b/dev-db/redis/redis-6.0.15.ebuild @@ -18,10 +18,10 @@ HOMEPAGE="https://redis.io" SRC_URI="https://download.redis.io/releases/${P}.tar.gz" LICENSE="BSD" +SLOT="0" KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" IUSE="+jemalloc ssl systemd tcmalloc test" RESTRICT="!test? ( test )" -SLOT="0" COMMON_DEPEND=" ${LUA_DEPS} diff --git a/dev-db/redis/redis-6.0.16.ebuild b/dev-db/redis/redis-6.0.16.ebuild new file mode 100644 index 000000000000..1c21ca033b32 --- /dev/null +++ b/dev-db/redis/redis-6.0.16.ebuild @@ -0,0 +1,189 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Redis does NOT build with Lua 5.2 or newer at this time: +# - 5.3 and 5.4 give: +# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h" +# - 5.2 fails with: +# scripting.c:(.text+0x1f9b): undefined reference to `lua_open' +# because lua_open became lua_newstate in 5.2 +LUA_COMPAT=( lua5-1 luajit ) + +inherit autotools flag-o-matic lua-single systemd toolchain-funcs tmpfiles + +DESCRIPTION="A persistent caching system, key-value and data structures database" +HOMEPAGE="https://redis.io" +SRC_URI="https://download.redis.io/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="+jemalloc ssl systemd tcmalloc test" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + ${LUA_DEPS} + jemalloc? ( >=dev-libs/jemalloc-5.1:= ) + ssl? ( dev-libs/openssl:0= ) + systemd? ( sys-apps/systemd:= ) + tcmalloc? ( dev-util/google-perftools ) +" + +RDEPEND=" + ${COMMON_DEPEND} + acct-group/redis + acct-user/redis +" + +BDEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" + +# Tcl is only needed in the CHOST test env +DEPEND=" + ${COMMON_DEPEND} + test? ( + dev-lang/tcl:0= + ssl? ( dev-tcltk/tls ) + )" + +REQUIRED_USE="?? ( jemalloc tcmalloc ) + ${LUA_REQUIRED_USE}" + +PATCHES=( + "${FILESDIR}"/${PN}-3.2.3-config.patch + "${FILESDIR}"/${PN}-5.0-shared.patch + "${FILESDIR}"/${PN}-6.0.12-sharedlua.patch + "${FILESDIR}"/${PN}-5.0.8-ppc-atomic.patch + "${FILESDIR}"/${PN}-sentinel-5.0-config.patch +) + +src_prepare() { + default + + # unstable on jemalloc + > tests/unit/memefficiency.tcl || die + + # Copy lua modules into build dir + cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die + cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die + # Append cflag for lua_cjson + # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61 + append-cflags "-DENABLE_CJSON_GLOBAL" + + # now we will rewrite present Makefiles + local makefiles="" MKF + for MKF in $(find -name 'Makefile' | cut -b 3-); do + mv "${MKF}" "${MKF}.in" + sed -i -e 's:$(CC):@CC@:g' \ + -e 's:$(CFLAGS):@AM_CFLAGS@:g' \ + -e 's: $(DEBUG)::g' \ + -e 's:$(OBJARCH)::g' \ + -e 's:ARCH:TARCH:g' \ + -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ + "${MKF}.in" \ + || die "Sed failed for ${MKF}" + makefiles+=" ${MKF}" + done + # autodetection of compiler and settings; generates the modified Makefiles + cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die + + # Use the correct pkgconfig name for Lua. + # The upstream configure script handles luajit specially, and is not + # effected by these changes. + sed -i \ + -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \ + -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ + -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \ + configure.ac || die "Sed failed for configure.ac" + eautoreconf +} + +src_configure() { + econf $(use_with lua_single_target_luajit luajit) + + # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 + # also, don't define ANSI/c99 for lua twice + sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die +} + +src_compile() { + local myconf="" + + if use jemalloc; then + myconf+="MALLOC=jemalloc" + elif use tcmalloc; then + myconf+="MALLOC=tcmalloc" + else + myconf+="MALLOC=libc" + fi + + if use ssl; then + myconf+=" BUILD_TLS=yes" + fi + + export USE_SYSTEMD=$(usex systemd) + + tc-export AR CC RANLIB + emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}" +} + +src_test() { + # Known to fail with FEATURES=usersandbox + if has usersandbox ${FEATURES}; then + ewarn "You are emerging ${P} with 'usersandbox' enabled." \ + "Expect some test failures or emerge with 'FEATURES=-usersandbox'!" + fi + + if use ssl; then + ./utils/gen-test-certs.sh + ./runtest --tls + else + ./runtest + fi +} + +src_install() { + insinto /etc/redis + doins redis.conf sentinel.conf + use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf + fperms 0750 /etc/redis + fperms 0644 /etc/redis/{redis,sentinel}.conf + + newconfd "${FILESDIR}/redis.confd-r2" redis + newinitd "${FILESDIR}/redis.initd-6" redis + + systemd_newunit "${FILESDIR}/redis.service-4" redis.service + newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf + + newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel + newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md + + dobin src/redis-cli + dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb + fperms 0750 /usr/sbin/redis-benchmark + dosym redis-server /usr/sbin/redis-sentinel + + if use prefix; then + diropts -m0750 + else + diropts -m0750 -o redis -g redis + fi + keepdir /var/{log,lib}/redis +} + +pkg_postinst() { + tmpfiles_process redis.conf + + ewarn "The default redis configuration file location changed to:" + ewarn " /etc/redis/{redis,sentinel}.conf" + ewarn "Please apply your changes to the new configuration files." +} diff --git a/dev-db/redis/redis-6.2.5.ebuild b/dev-db/redis/redis-6.2.5.ebuild index 76be65d5e4b4..ebe779b0841d 100644 --- a/dev-db/redis/redis-6.2.5.ebuild +++ b/dev-db/redis/redis-6.2.5.ebuild @@ -18,10 +18,10 @@ HOMEPAGE="https://redis.io" SRC_URI="https://download.redis.io/releases/${P}.tar.gz" LICENSE="BSD" +SLOT="0" KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" IUSE="+jemalloc ssl systemd tcmalloc test" RESTRICT="!test? ( test )" -SLOT="0" COMMON_DEPEND=" ${LUA_DEPS} diff --git a/dev-db/redis/redis-6.2.6.ebuild b/dev-db/redis/redis-6.2.6.ebuild new file mode 100644 index 000000000000..4317e3e01089 --- /dev/null +++ b/dev-db/redis/redis-6.2.6.ebuild @@ -0,0 +1,189 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Redis does NOT build with Lua 5.2 or newer at this time: +# - 5.3 and 5.4 give: +# lua_bit.c:83:2: error: #error "Unknown number type, check LUA_NUMBER_* in luaconf.h" +# - 5.2 fails with: +# scripting.c:(.text+0x1f9b): undefined reference to `lua_open' +# because lua_open became lua_newstate in 5.2 +LUA_COMPAT=( lua5-1 luajit ) + +inherit autotools flag-o-matic lua-single systemd toolchain-funcs tmpfiles + +DESCRIPTION="A persistent caching system, key-value and data structures database" +HOMEPAGE="https://redis.io" +SRC_URI="https://download.redis.io/releases/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" +IUSE="+jemalloc ssl systemd tcmalloc test" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + ${LUA_DEPS} + jemalloc? ( >=dev-libs/jemalloc-5.1:= ) + ssl? ( dev-libs/openssl:0= ) + systemd? ( sys-apps/systemd:= ) + tcmalloc? ( dev-util/google-perftools ) +" + +RDEPEND=" + ${COMMON_DEPEND} + acct-group/redis + acct-user/redis +" + +BDEPEND=" + ${COMMON_DEPEND} + virtual/pkgconfig +" + +# Tcl is only needed in the CHOST test env +DEPEND=" + ${COMMON_DEPEND} + test? ( + dev-lang/tcl:0= + ssl? ( dev-tcltk/tls ) + )" + +REQUIRED_USE="?? ( jemalloc tcmalloc ) + ${LUA_REQUIRED_USE}" + +PATCHES=( + "${FILESDIR}"/${PN}-6.2.1-config.patch + "${FILESDIR}"/${PN}-5.0-shared.patch + "${FILESDIR}"/${PN}-6.2.1-sharedlua.patch + "${FILESDIR}"/${PN}-6.2.3-ppc-atomic.patch + "${FILESDIR}"/${PN}-sentinel-5.0-config.patch +) + +src_prepare() { + default + + # unstable on jemalloc + > tests/unit/memefficiency.tcl || die + + # Copy lua modules into build dir + cp "${S}"/deps/lua/src/{fpconv,lua_bit,lua_cjson,lua_cmsgpack,lua_struct,strbuf}.c "${S}"/src || die + cp "${S}"/deps/lua/src/{fpconv,strbuf}.h "${S}"/src || die + # Append cflag for lua_cjson + # https://github.com/antirez/redis/commit/4fdcd213#diff-3ba529ae517f6b57803af0502f52a40bL61 + append-cflags "-DENABLE_CJSON_GLOBAL" + + # now we will rewrite present Makefiles + local makefiles="" MKF + for MKF in $(find -name 'Makefile' | cut -b 3-); do + mv "${MKF}" "${MKF}.in" + sed -i -e 's:$(CC):@CC@:g' \ + -e 's:$(CFLAGS):@AM_CFLAGS@:g' \ + -e 's: $(DEBUG)::g' \ + -e 's:$(OBJARCH)::g' \ + -e 's:ARCH:TARCH:g' \ + -e '/^CCOPT=/s:$: $(LDFLAGS):g' \ + "${MKF}.in" \ + || die "Sed failed for ${MKF}" + makefiles+=" ${MKF}" + done + # autodetection of compiler and settings; generates the modified Makefiles + cp "${FILESDIR}"/configure.ac-3.2 configure.ac || die + + # Use the correct pkgconfig name for Lua. + # The upstream configure script handles luajit specially, and is not + # effected by these changes. + sed -i \ + -e "/^AC_INIT/s|, [0-9].+, |, $PV, |" \ + -e "s:AC_CONFIG_FILES(\[Makefile\]):AC_CONFIG_FILES([${makefiles}]):g" \ + -e "/PKG_CHECK_MODULES.*\<LUA\>/s,lua5.1,${ELUA},g" \ + configure.ac || die "Sed failed for configure.ac" + eautoreconf +} + +src_configure() { + econf $(use_with lua_single_target_luajit luajit) + + # Linenoise can't be built with -std=c99, see https://bugs.gentoo.org/451164 + # also, don't define ANSI/c99 for lua twice + sed -i -e "s:-std=c99::g" deps/linenoise/Makefile deps/Makefile || die +} + +src_compile() { + local myconf="" + + if use jemalloc; then + myconf+="MALLOC=jemalloc" + elif use tcmalloc; then + myconf+="MALLOC=tcmalloc" + else + myconf+="MALLOC=libc" + fi + + if use ssl; then + myconf+=" BUILD_TLS=yes" + fi + + export USE_SYSTEMD=$(usex systemd) + + tc-export AR CC RANLIB + emake V=1 ${myconf} AR="${AR}" CC="${CC}" RANLIB="${RANLIB}" +} + +src_test() { + # Known to fail with FEATURES=usersandbox + if has usersandbox ${FEATURES}; then + ewarn "You are emerging ${P} with 'usersandbox' enabled." \ + "Expect some test failures or emerge with 'FEATURES=-usersandbox'!" + fi + + if use ssl; then + ./utils/gen-test-certs.sh + ./runtest --tls + else + ./runtest + fi +} + +src_install() { + insinto /etc/redis + doins redis.conf sentinel.conf + use prefix || fowners -R redis:redis /etc/redis /etc/redis/{redis,sentinel}.conf + fperms 0750 /etc/redis + fperms 0644 /etc/redis/{redis,sentinel}.conf + + newconfd "${FILESDIR}/redis.confd-r2" redis + newinitd "${FILESDIR}/redis.initd-6" redis + + systemd_newunit "${FILESDIR}/redis.service-4" redis.service + newtmpfiles "${FILESDIR}/redis.tmpfiles-2" redis.conf + + newconfd "${FILESDIR}/redis-sentinel.confd-r1" redis-sentinel + newinitd "${FILESDIR}/redis-sentinel.initd-r1" redis-sentinel + + insinto /etc/logrotate.d/ + newins "${FILESDIR}/${PN}.logrotate" ${PN} + + dodoc 00-RELEASENOTES BUGS CONTRIBUTING MANIFESTO README.md + + dobin src/redis-cli + dosbin src/redis-benchmark src/redis-server src/redis-check-aof src/redis-check-rdb + fperms 0750 /usr/sbin/redis-benchmark + dosym redis-server /usr/sbin/redis-sentinel + + if use prefix; then + diropts -m0750 + else + diropts -m0750 -o redis -g redis + fi + keepdir /var/{log,lib}/redis +} + +pkg_postinst() { + tmpfiles_process redis.conf + + ewarn "The default redis configuration file location changed to:" + ewarn " /etc/redis/{redis,sentinel}.conf" + ewarn "Please apply your changes to the new configuration files." +} diff --git a/dev-db/slony1/files/slony1.init b/dev-db/slony1/files/slony1.init index d85c99c733f0..d85c99c733f0 100644..100755 --- a/dev-db/slony1/files/slony1.init +++ b/dev-db/slony1/files/slony1.init |