From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 718AE1382C5 for ; Tue, 5 Jan 2021 08:40:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABE2CE0849; Tue, 5 Jan 2021 08:40:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 82C0DE0849 for ; Tue, 5 Jan 2021 08:40:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA43C340A98 for ; Tue, 5 Jan 2021 08:40:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE44748D for ; Tue, 5 Jan 2021 08:40:03 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1609835562.70d345eb10ba4285c0c198ddb6ef3ac3d7365eb5.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-crypt/aescrypt/, app-crypt/aescrypt/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-crypt/aescrypt/Manifest app-crypt/aescrypt/aescrypt-3.14.ebuild app-crypt/aescrypt/files/aescrypt-3.14-iconv.patch X-VCS-Directories: app-crypt/aescrypt/ app-crypt/aescrypt/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 70d345eb10ba4285c0c198ddb6ef3ac3d7365eb5 X-VCS-Branch: master Date: Tue, 5 Jan 2021 08:40:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ef7f4524-e048-449c-88ca-bf92fe96af35 X-Archives-Hash: 53828d53a49e1e6e7bc3ad33935efddc commit: 70d345eb10ba4285c0c198ddb6ef3ac3d7365eb5 Author: Peter Alfredsen icloud com> AuthorDate: Tue Dec 15 20:11:49 2020 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Jan 5 08:32:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70d345eb app-crypt/aescrypt: bump to 3.14 Closes: https://bugs.gentoo.org/702736 Closes: https://bugs.gentoo.org/722028 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Peter Alfredsen icloud.com> Closes: https://github.com/gentoo/gentoo/pull/18670 Signed-off-by: Joonas Niilola gentoo.org> app-crypt/aescrypt/Manifest | 1 + app-crypt/aescrypt/aescrypt-3.14.ebuild | 69 ++++++++++++++++++++++ app-crypt/aescrypt/files/aescrypt-3.14-iconv.patch | 40 +++++++++++++ 3 files changed, 110 insertions(+) diff --git a/app-crypt/aescrypt/Manifest b/app-crypt/aescrypt/Manifest index fea2cb86477..1980050f678 100644 --- a/app-crypt/aescrypt/Manifest +++ b/app-crypt/aescrypt/Manifest @@ -1 +1,2 @@ DIST aescrypt-3.0.6b.tar.gz 28272 BLAKE2B ce5347b77d974c76dadaa820b5b90a56015019f846bbc61560c33032adad08576d5e5ddd7d9e1020878e35b40173a2c5e29578e2f6e98631725442beac6f19ac SHA512 4c88abc9bff50ae5d310be7dad8f29843941843f9b484d9846b08dc76c605940adbb375f7e8ffefd6e8236f35ff860a745f89226e9c171bfa70c28c16aa6626a +DIST aescrypt-3.14.tgz 38742 BLAKE2B 7122cb0246e28fd1301c58c13145c47ea3e20c8af61efc4115eec8a7ade720ecf2093f2e0156c05eb6cbb6e403bbeb3624745609f0ec1f2fd477edbd876e3373 SHA512 ac06604e2121f0c0f098e87d43c493b7285c58ac7419c284e6a93218dfa7381d4ca69ee775842fde89226092e05978d662eddefe734afe38f67b28df68d87b68 diff --git a/app-crypt/aescrypt/aescrypt-3.14.ebuild b/app-crypt/aescrypt/aescrypt-3.14.ebuild new file mode 100644 index 00000000000..2349542d05c --- /dev/null +++ b/app-crypt/aescrypt/aescrypt-3.14.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" +IUSE="static X" +RDEPEND="X? ( + || ( gnome-extra/zenity kde-apps/kdialog ) + dev-lang/perl + ) + " + +PATCHES=( "${FILESDIR}/${P}-iconv.patch" ) +S="${WORKDIR}/${P}" + +src_prepare() { + xdg_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 +} + +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.14-iconv.patch b/app-crypt/aescrypt/files/aescrypt-3.14-iconv.patch new file mode 100644 index 00000000000..8232f80aebb --- /dev/null +++ b/app-crypt/aescrypt/files/aescrypt-3.14-iconv.patch @@ -0,0 +1,40 @@ +From 337cc9367a3cb4450eee245c6ceb615d0f05499d Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev +Date: Sat, 2 Feb 2013 01:18:08 +0200 +Subject: [PATCH 2/2] build: support disable iconv for static build + +Signed-off-by: Alon Bar-Lev +--- + password.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/password.c b/password.c +index 9a2c1f8..dee79da 100644 +--- a/src/password.c ++++ b/src/password.c +@@ -232,6 +232,15 @@ int passwd_to_utf16(unsigned char *in_passwd, + size_t ic_inbytesleft, + ic_outbytesleft; + ++#ifdef DISABLE_ICONV ++ /* support only latin */ ++ int i; ++ for (i=0;i