diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-13 22:21:26 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-13 22:21:26 -0500 |
| commit | f997c3ee588099e4f43e9ec845935868e3e60b8e (patch) | |
| tree | 07f0967cda575ee2edf2d62ed8c0f67855ae6bd3 /dev-db/sqlcipher | |
| parent | b589bc93e15b300c3e5318fe97241d57e464bea1 (diff) | |
| download | baldeagleos-repo-f997c3ee588099e4f43e9ec845935868e3e60b8e.tar.gz baldeagleos-repo-f997c3ee588099e4f43e9ec845935868e3e60b8e.tar.xz baldeagleos-repo-f997c3ee588099e4f43e9ec845935868e3e60b8e.zip | |
Adding metadata
Diffstat (limited to 'dev-db/sqlcipher')
| -rw-r--r-- | dev-db/sqlcipher/Manifest | 3 | ||||
| -rw-r--r-- | dev-db/sqlcipher/files/patch-autosetup_sqlite-config_tcl | 12 | ||||
| -rw-r--r-- | dev-db/sqlcipher/files/patch-src_crypto_openssl_c | 94 | ||||
| -rw-r--r-- | dev-db/sqlcipher/metadata.xml | 11 | ||||
| -rw-r--r-- | dev-db/sqlcipher/sqlcipher-4.15.0.ebuild | 80 | ||||
| -rw-r--r-- | dev-db/sqlcipher/sqlcipher-4.16.0.ebuild | 80 | ||||
| -rw-r--r-- | dev-db/sqlcipher/sqlcipher-4.6.1.ebuild | 73 |
7 files changed, 279 insertions, 74 deletions
diff --git a/dev-db/sqlcipher/Manifest b/dev-db/sqlcipher/Manifest index 8a1f6c638d41..e4ef361058f5 100644 --- a/dev-db/sqlcipher/Manifest +++ b/dev-db/sqlcipher/Manifest @@ -1 +1,2 @@ -DIST sqlcipher-4.6.1.tar.gz 19115004 BLAKE2B 792e3342eba78ed8aee49265fcb9e216edaeb7d4c68fd9a95ac9abe60093a8baeb755e32e736a7af98811921d1bfd93f882418864bf5785952ffc2bbae1fc649 SHA512 023b2fc7248fe38b758ef93dd8436677ff0f5d08b1061e7eab0adb9e38ad92d523e0ab69016ee69bd35c1fd53c10f61e99b01f7a2987a1f1d492e1f7216a0a9c +DIST sqlcipher-4.15.0.tar.gz 19310855 BLAKE2B fb3dc45ec76560bc13fb8d43e11f4d17a5da52c5da849120c3c5e8677c6e778077397a9428ede1c8f379502ee96ad6139fa84f7c7593287e8a04de81d46b881d SHA512 c88a581d07c3bcd8af18ec0c5767ec81448998de20d395d6adcd7bf144a06319bb6a89068b951bb90828f90b59fd0415b2417e335a5a017fe0948e2ecce74998 +DIST sqlcipher-4.16.0.tar.gz 19314061 BLAKE2B fdb018bb870efb78d3e69b7c848c22586c2cf7595c8812f46a8b01514fee81df5c74f05e21faf30ad23a17eb3aaa141aa1239c77d2c81a92d75bac9d22f8c132 SHA512 498fcc9d94d808a4734cef20eb8932a20e5de838740c25b4daf7c17096243e2c381243c5ac88174e098378459d66b24ed7dcae770e20d8a34f7970f20005f6f4 diff --git a/dev-db/sqlcipher/files/patch-autosetup_sqlite-config_tcl b/dev-db/sqlcipher/files/patch-autosetup_sqlite-config_tcl new file mode 100644 index 000000000000..4b98527fb5ef --- /dev/null +++ b/dev-db/sqlcipher/files/patch-autosetup_sqlite-config_tcl @@ -0,0 +1,12 @@ +Index: autosetup/sqlite-config.tcl +--- autosetup/sqlite-config.tcl.orig ++++ autosetup/sqlite-config.tcl +@@ -792,7 +792,7 @@ proc sqlite-handle-soname {} { + # use it as-is + } else { + # Assume it's a suffix +- set soname "libsqlite3.so.${soname}" ++ set soname "libsqlcipher.so.${soname}" + } + } + } diff --git a/dev-db/sqlcipher/files/patch-src_crypto_openssl_c b/dev-db/sqlcipher/files/patch-src_crypto_openssl_c new file mode 100644 index 000000000000..6745e2d1cf8d --- /dev/null +++ b/dev-db/sqlcipher/files/patch-src_crypto_openssl_c @@ -0,0 +1,94 @@ +LibreSSL does not support the OpenSSL 3 EVP_MAC API + +Partial revert of +https://github.com/sqlcipher/sqlcipher/commit/801b81a8d0c42c13f66de89805c3bfa0d1d450aa + +Index: src/crypto_openssl.c +--- src/crypto_openssl.c.orig ++++ src/crypto_openssl.c +@@ -156,6 +156,76 @@ static int sqlcipher_openssl_hmac( + ) { + int rc = 0; + ++#if (defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x30000000L) ++ unsigned int outlen; ++ HMAC_CTX* hctx = NULL; ++ ++ if(in == NULL) goto error; ++ ++ hctx = HMAC_CTX_new(); ++ if(hctx == NULL) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_CTX_new() failed"); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ ++ switch(algorithm) { ++ case SQLCIPHER_HMAC_SHA1: ++ if(!(rc = HMAC_Init_ex(hctx, hmac_key, key_sz, EVP_sha1(), NULL))) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_Init_ex() with key size %d and EVP_sha1() returned %d", key_sz, rc); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ break; ++ case SQLCIPHER_HMAC_SHA256: ++ if(!(rc = HMAC_Init_ex(hctx, hmac_key, key_sz, EVP_sha256(), NULL))) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_Init_ex() with key size %d and EVP_sha256() returned %d", key_sz, rc); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ break; ++ case SQLCIPHER_HMAC_SHA512: ++ if(!(rc = HMAC_Init_ex(hctx, hmac_key, key_sz, EVP_sha512(), NULL))) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_Init_ex() with key size %d and EVP_sha512() returned %d", key_sz, rc); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ break; ++ default: ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: invalid algorithm %d", algorithm); ++ goto error; ++ } ++ ++ if(!(rc = HMAC_Update(hctx, in, in_sz))) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_Update() on 1st input buffer of %d bytes using algorithm %d returned %d", in_sz, algorithm, rc); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ ++ if(in2 != NULL) { ++ if(!(rc = HMAC_Update(hctx, in2, in2_sz))) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_Update() on 2nd input buffer of %d bytes using algorithm %d returned %d", in2_sz, algorithm, rc); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ } ++ ++ if(!(rc = HMAC_Final(hctx, out, &outlen))) { ++ sqlcipher_log(SQLCIPHER_LOG_ERROR, SQLCIPHER_LOG_PROVIDER, "sqlcipher_openssl_hmac: HMAC_Final() using algorithm %d returned %d", algorithm, rc); ++ sqlcipher_openssl_log_errors(); ++ goto error; ++ } ++ ++ rc = SQLITE_OK; ++ goto cleanup; ++ ++error: ++ rc = SQLITE_ERROR; ++ ++cleanup: ++ if(hctx) HMAC_CTX_free(hctx); ++ ++#else + size_t outlen; + EVP_MAC *mac = NULL; + EVP_MAC_CTX *hctx = NULL; +@@ -241,6 +311,8 @@ error: + cleanup: + if(hctx) EVP_MAC_CTX_free(hctx); + if(mac) EVP_MAC_free(mac); ++ ++#endif + + return rc; + } diff --git a/dev-db/sqlcipher/metadata.xml b/dev-db/sqlcipher/metadata.xml index 5f33304011d5..f7609c76cf7a 100644 --- a/dev-db/sqlcipher/metadata.xml +++ b/dev-db/sqlcipher/metadata.xml @@ -1,5 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="project"> + <email>dev@liguros.net</email> + <name>Development</name> + </maintainer> + <maintainer type="person"> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> + <upstream> + <remote-id type="cpe">cpe:/a:zetetic:sqlcipher</remote-id> + </upstream> <origin>baldeagleos-repo</origin> </pkgmetadata> diff --git a/dev-db/sqlcipher/sqlcipher-4.15.0.ebuild b/dev-db/sqlcipher/sqlcipher-4.15.0.ebuild new file mode 100644 index 000000000000..d1a3f954c188 --- /dev/null +++ b/dev-db/sqlcipher/sqlcipher-4.15.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Full Database Encryption for SQLite" +HOMEPAGE=" + https://www.zetetic.net/sqlcipher/ + https://github.com/sqlcipher/sqlcipher +" +SRC_URI="https://github.com/sqlcipher/sqlcipher/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug libedit readline tcl test" +# Testsuite requires compilation with TCL, bug #582584 +REQUIRED_USE=" + ?? ( libedit readline ) + test? ( tcl ) +" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/openssl-3.0:= + + sys-libs/zlib + libedit? ( dev-libs/libedit ) + readline? ( sys-libs/readline:= ) + tcl? ( dev-lang/tcl:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/tcl" + +src_prepare() { + append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown -DSQLITE_TEMP_STORE=3 + append-ldflags -lssl -lcrypto + eapply -p0 $FILESDIR/patch-autosetup_sqlite-config_tcl + + + default +} + +src_configure() { + local myeconfargs=( + --enable-fts3 + --enable-fts4 + --enable-fts5 + --enable-geopoly + --enable-memsys5 + --enable-rtree + --enable-session + --with-tempstore=yes + $(use_enable debug) + $(use_enable libedit editline) + $(use_enable readline) + $(use_enable tcl) + ) + ECONF_SOURCE=${S} \ + econf "${myeconfargs[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + + # Rename files from sqlite3 to sqlcipher to prevent file collisons + mv ${ED}/usr/bin/{sqlite3,sqlcipher} + mv ${ED}/usr/include/{sqlite3,sqlcipher}.h + mv ${ED}/usr/include/{sqlite3ext,sqlcipherext}.h + mv ${ED}/usr/lib64/lib{sqlite3,sqlcipher}.a + rm ${ED}/usr/lib64/libsqlite3.so{,.0} + mv ${ED}/usr/lib64/libsqlite3.so.* \ + ${ED}/usr/lib64/libsqlcipher.so.${PV} + mv ${ED}/usr/lib64/pkgconfig/{sqlite3,sqlcipher}.pc + mv ${ED}/usr/share/man/man1/{sqlite3,sqlcipher}.1 + sed -i s/-lsqlite3/-lsqlcipher/ ${ED}/usr/lib64/pkgconfig/sqlcipher.pc + einstalldocs + find "${D}" -name '*.la' -type f -delete || die +} diff --git a/dev-db/sqlcipher/sqlcipher-4.16.0.ebuild b/dev-db/sqlcipher/sqlcipher-4.16.0.ebuild new file mode 100644 index 000000000000..d1a3f954c188 --- /dev/null +++ b/dev-db/sqlcipher/sqlcipher-4.16.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 2021-2026 Liguros Authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Full Database Encryption for SQLite" +HOMEPAGE=" + https://www.zetetic.net/sqlcipher/ + https://github.com/sqlcipher/sqlcipher +" +SRC_URI="https://github.com/sqlcipher/sqlcipher/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug libedit readline tcl test" +# Testsuite requires compilation with TCL, bug #582584 +REQUIRED_USE=" + ?? ( libedit readline ) + test? ( tcl ) +" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/openssl-3.0:= + + sys-libs/zlib + libedit? ( dev-libs/libedit ) + readline? ( sys-libs/readline:= ) + tcl? ( dev-lang/tcl:= ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-lang/tcl" + +src_prepare() { + append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA -DSQLITE_EXTRA_INIT=sqlcipher_extra_init -DSQLITE_EXTRA_SHUTDOWN=sqlcipher_extra_shutdown -DSQLITE_TEMP_STORE=3 + append-ldflags -lssl -lcrypto + eapply -p0 $FILESDIR/patch-autosetup_sqlite-config_tcl + + + default +} + +src_configure() { + local myeconfargs=( + --enable-fts3 + --enable-fts4 + --enable-fts5 + --enable-geopoly + --enable-memsys5 + --enable-rtree + --enable-session + --with-tempstore=yes + $(use_enable debug) + $(use_enable libedit editline) + $(use_enable readline) + $(use_enable tcl) + ) + ECONF_SOURCE=${S} \ + econf "${myeconfargs[@]}" +} + +src_install() { + emake DESTDIR="${D}" install + + # Rename files from sqlite3 to sqlcipher to prevent file collisons + mv ${ED}/usr/bin/{sqlite3,sqlcipher} + mv ${ED}/usr/include/{sqlite3,sqlcipher}.h + mv ${ED}/usr/include/{sqlite3ext,sqlcipherext}.h + mv ${ED}/usr/lib64/lib{sqlite3,sqlcipher}.a + rm ${ED}/usr/lib64/libsqlite3.so{,.0} + mv ${ED}/usr/lib64/libsqlite3.so.* \ + ${ED}/usr/lib64/libsqlcipher.so.${PV} + mv ${ED}/usr/lib64/pkgconfig/{sqlite3,sqlcipher}.pc + mv ${ED}/usr/share/man/man1/{sqlite3,sqlcipher}.1 + sed -i s/-lsqlite3/-lsqlcipher/ ${ED}/usr/lib64/pkgconfig/sqlcipher.pc + einstalldocs + find "${D}" -name '*.la' -type f -delete || die +} diff --git a/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild b/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild deleted file mode 100644 index 2dad943a6daa..000000000000 --- a/dev-db/sqlcipher/sqlcipher-4.6.1.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit edo flag-o-matic multilib-minimal - -DESCRIPTION="Full Database Encryption for SQLite" -HOMEPAGE=" - https://www.zetetic.net/sqlcipher/ - https://github.com/sqlcipher/sqlcipher -" -SRC_URI="https://github.com/sqlcipher/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm64 x86" -IUSE="debug libedit readline tcl test" -# Testsuite requires compilation with TCL, bug #582584 -REQUIRED_USE=" - ?? ( libedit readline ) - test? ( tcl ) -" -# Extra flags are needed like -DSQLCIPHER_TEST which add undesirable -# test-only code into the main binary. multibuild for tests? -RESTRICT="!test? ( test ) test" - -RDEPEND=" - dev-libs/openssl:=[${MULTILIB_USEDEP}] - virtual/zlib:=[${MULTILIB_USEDEP}] - libedit? ( dev-libs/libedit[${MULTILIB_USEDEP}] ) - readline? ( sys-libs/readline:=[${MULTILIB_USEDEP}] ) - tcl? ( dev-lang/tcl:=[${MULTILIB_USEDEP}] ) -" -DEPEND="${RDEPEND}" -BDEPEND="dev-lang/tcl" - -src_configure() { - # Column metadata added due to bug #670346 - append-cflags -DSQLITE_HAS_CODEC -DSQLITE_ENABLE_COLUMN_METADATA - - multilib-minimal_src_configure -} - -multilib_src_configure() { - local myeconfargs=( - --enable-fts3 - --enable-fts4 - --enable-fts5 - --enable-geopoly - --enable-memsys5 - --enable-rtree - --enable-session - --enable-tempstore - $(use_enable debug) - $(use_enable libedit editline) - $(use_enable readline) - $(use_enable tcl) - ) - ECONF_SOURCE="${S}" \ - econf "${myeconfargs[@]}" -} - -multilib_src_test() { - # https://github.com/sqlcipher/sqlcipher#testing - emake testfixture - edo ./testfixture "${S}"/test/sqlcipher.test -} - -multilib_src_install_all() { - einstalldocs - find "${ED}" -name '*.la' -type f -delete || die -} |
