summaryrefslogtreecommitdiff
path: root/app-crypt
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt')
-rw-r--r--app-crypt/Manifest.gzbin25248 -> 25252 bytes
-rw-r--r--app-crypt/aescrypt/Manifest3
-rw-r--r--app-crypt/aescrypt/aescrypt-3.16.ebuild74
-rw-r--r--app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch24
4 files changed, 101 insertions, 0 deletions
diff --git a/app-crypt/Manifest.gz b/app-crypt/Manifest.gz
index c9d8874f1efd..52799b70eb5e 100644
--- a/app-crypt/Manifest.gz
+++ b/app-crypt/Manifest.gz
Binary files differ
diff --git a/app-crypt/aescrypt/Manifest b/app-crypt/aescrypt/Manifest
index 6e0910b71ef3..bc5a528f8402 100644
--- a/app-crypt/aescrypt/Manifest
+++ b/app-crypt/aescrypt/Manifest
@@ -1,5 +1,8 @@
AUX aescrypt-3.14-iconv.patch 1104 BLAKE2B a6b9a8f41e86c9ac6fe16427752ae20da7177e5c1aec9f42373f94606954732632d84dc06a1425508115b3fc94f54f895c671eca691442c4d3d3b9163a27934e SHA512 fb3dd6a459e1378c44ffcd6a5b109f4bd178ee2e3190eed334bbfa4387fb11c4d070105598b4f0b989428f00a28f2064cf5f5064b71c49db269f4f4b55283960
AUX aescrypt-3.14-ldflags.patch 632 BLAKE2B 76f47200abc65e747a60e28d5870296d0bbf0292ed34143afc0e4a9afd9ce75225f321dba92c71bf67fd9fe95b72d572080e97a6e1f6bca50604995634584351 SHA512 8ad8c9454b3865f8fcbab9463713bd7e6638a09df792a5d001e0fc2d0d11cc1f50235206d363300e977f6ce6f512c3911e02c9b706ac85069e1536c2734b73ac
+AUX aescrypt-3.16-iconv.patch 585 BLAKE2B a4d2670f61c142987fdd286dff3af7abd90a4e89b0e40551d42f4fce5f3e1016a1be8d677c84f71f37bc6f33d69a5bf94d8d7d7f190fbc85c4ed4ee3ef03d253 SHA512 fed8bc78992e2daa9b024bb1b0ba610c2fd5d428f88dd036a7a0e914f582e9e006882986f9dde257bc70ad9935009908c2c6748b1337a950e51ac8e8734099b6
DIST aescrypt-3.14.tgz 38742 BLAKE2B 7122cb0246e28fd1301c58c13145c47ea3e20c8af61efc4115eec8a7ade720ecf2093f2e0156c05eb6cbb6e403bbeb3624745609f0ec1f2fd477edbd876e3373 SHA512 ac06604e2121f0c0f098e87d43c493b7285c58ac7419c284e6a93218dfa7381d4ca69ee775842fde89226092e05978d662eddefe734afe38f67b28df68d87b68
+DIST aescrypt-3.16.tgz 39167 BLAKE2B 622976f55e33e98ede6488ee874d2f3371f928a8827d7973d967ddf253112eeb96036d2a7d4f8df7c1c9013e104d39fa5df9c28a7fce121cd11590a98e960c3a SHA512 b6d4fda92bb465c36a9930de0d86777111d2da67f2aa274fb98fcd99629c7ff2d88d8faffdbeeae25c44dc99f0f29b2872867128b7e3a384deada744ce21cdd0
EBUILD aescrypt-3.14.ebuild 1640 BLAKE2B 0a93b28537ca729fef75787a17549d1b6e9cfa4b6ac5458f336916e7013ece2deb3a47768b5cf794043d499e9e5047e8265e5bb4303c28651a3e4e8412fd0f11 SHA512 986a09e671d1eb8aa559728bbcb04f6edf158999d771b48753bdbda58165c879258acb36c11779522daca63eff83fa1593764e6f4b5fad4072ca7cb434d4bfc4
+EBUILD aescrypt-3.16.ebuild 1603 BLAKE2B 2e6aad714a21d298d23ca12a05ee3dd54ce7cd39bd1693b74bd0dd8c7068685fe18daa11d8cec5d2d21b63cf1324f8a3374e591d565b6d6b14620b5c7568727f SHA512 562e335e1580c548d88ba9c0a2510276f6bff3a341f315395705bb076fbc82052203796b1b572b6346fe0a98f48859341b275a24a036cb99258f4c2e47974a27
MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3
diff --git a/app-crypt/aescrypt/aescrypt-3.16.ebuild b/app-crypt/aescrypt/aescrypt-3.16.ebuild
new file mode 100644
index 000000000000..8c924a8ec2b4
--- /dev/null
+++ b/app-crypt/aescrypt/aescrypt-3.16.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic desktop xdg
+
+DESCRIPTION="Advanced file encryption using AES"
+HOMEPAGE="https://www.aescrypt.com/"
+SRC_URI="https://www.aescrypt.com/download/v$(ver_cut 1)/linux/${P}.tgz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="static X"
+
+RDEPEND="
+ X? (
+ || ( gnome-extra/zenity kde-apps/kdialog )
+ dev-lang/perl
+ )
+ "
+
+PATCHES=(
+ "${FILESDIR}/${P}-iconv.patch"
+)
+
+src_prepare() {
+ sed -i \
+ -e 's:Icon=/usr/share/aescrypt/SmallLock.png:Icon=SmallLock:' \
+ -e 's|Categories=Application;Utility;TextEditor;|Categories=Utility;TextEditor;|' \
+ gui/AESCrypt.desktop || die
+
+ default
+}
+
+src_compile() {
+ if use static; then
+ append-cflags "-DDISABLE_ICONV"
+ append-ldflags "-static"
+ fi
+ cd src || die
+ emake \
+ CFLAGS="${CFLAGS} -Wall -Wextra -pedantic -std=c99 -D_FILE_OFFSET_BITS=64" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)"
+}
+
+src_test() {
+ cd src || die
+ emake -j1 test \
+ CFLAGS="${CFLAGS} -Wall -Wextra -pedantic -std=c99 -D_FILE_OFFSET_BITS=64" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin src/{aescrypt,aescrypt_keygen}
+ doman man/*
+ doicon gui/SmallLock.png
+ domenu gui/AESCrypt.desktop
+ dobin gui/aescrypt-gui
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ if use X; then
+ einfo 'The .desktop file for aescrypt is only supposed to be used with "Open With"'
+ einfo 'to encrypt and decrypt files.'
+ einfo 'See:'
+ einfo ' https://www.aescrypt.com/linux_aes_crypt.html'
+ einfo 'for more information'
+ fi
+}
diff --git a/app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch b/app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch
new file mode 100644
index 000000000000..1993e1133e1b
--- /dev/null
+++ b/app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch
@@ -0,0 +1,24 @@
+--- a/src/password.c
++++ b/src/password.c
+@@ -300,6 +300,15 @@
+ size_t ic_inbytesleft,
+ ic_outbytesleft;
+
++#ifdef DISABLE_ICONV
++ /* support only latin */
++ int i;
++ for (i=0;i<length+1;i++) {
++ out_passwd[i*2] = in_passwd[i];
++ out_passwd[i*2+1] = 0;
++ }
++ return length*2;
++#else
+ // Max length is specified in character, but this function deals
+ // with bytes. So, multiply by two since we are going to create a
+ // UTF-16 string.
+@@ -349,4 +358,5 @@
+ iconv_close(condesc);
+
+ return (max_length - ic_outbytesleft);
++#endif
+ }