diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-crypt/aescrypt |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-crypt/aescrypt')
-rw-r--r-- | app-crypt/aescrypt/Manifest | 7 | ||||
-rw-r--r-- | app-crypt/aescrypt/aescrypt-3.0.6b.ebuild | 31 | ||||
-rw-r--r-- | app-crypt/aescrypt/files/aescrypt-3.0.6b-build.patch | 62 | ||||
-rw-r--r-- | app-crypt/aescrypt/files/aescrypt-3.0.6b-iconv.patch | 40 | ||||
-rw-r--r-- | app-crypt/aescrypt/metadata.xml | 8 |
5 files changed, 148 insertions, 0 deletions
diff --git a/app-crypt/aescrypt/Manifest b/app-crypt/aescrypt/Manifest new file mode 100644 index 000000000000..2d7789891559 --- /dev/null +++ b/app-crypt/aescrypt/Manifest @@ -0,0 +1,7 @@ +AUX aescrypt-3.0.6b-build.patch 1711 SHA256 cfdc935d2faa72a1eae6b48193541deb99c4b93a1df780a3f73cc5d62f1bc2f7 SHA512 b19e4eba11753bb8929d14eddc4ef391c8ec62b2bb57cf63b1a74b9a27250b4719ece8f1a6b790c1f662738b92bb37da96c973dd38cdf059c7482edb3dbd0f0e WHIRLPOOL 22c975f5eebd92b8826bc1b1c14c9101e124ec547e3cb4eebea1e872fbb07ad9f3d494e8aa41fe70c714e5c707dbb4ad9c82eae6899354b5204d5a5672cbabd1 +AUX aescrypt-3.0.6b-iconv.patch 1096 SHA256 f19b4ac404077503be19faf5425ba4d865a56ef71d6a85ec96fd184c58eb9cdf SHA512 bf8d564493ae9396f024c1e33a775a53833da9d984ff059f714362a2cc112c3e6bd575c5d64fc0f7118fd578af645f386d649483ab56c2a0cb8d9b0795161409 WHIRLPOOL 4c9e91f85ae9f240a43b874f6a4b37f7bda024889040c114d4155f4752530310525203dd08ddd81b398acc23469397e3cbb4280f9ea9ac372b340193e1b3854c +DIST aescrypt-3.0.6b.tar.gz 28272 SHA256 88a5efe11ede495688e409807c33c09d3df6595acbbf2639f5a93d0061ca3dfd SHA512 4c88abc9bff50ae5d310be7dad8f29843941843f9b484d9846b08dc76c605940adbb375f7e8ffefd6e8236f35ff860a745f89226e9c171bfa70c28c16aa6626a WHIRLPOOL b8fc56084af1b8296a531ff1bfbf5b70d2ea79cb3a2a0539f21e01d443f549016d52fc73f2e94033d82ec1f6a9e4ef2124d7fd9d1971a6364f91d4e35393db7a +EBUILD aescrypt-3.0.6b.ebuild 638 SHA256 0f37fbe6e9193517d324899e8f073d8cfc169879d7dcc48b18d1ad58217c00e0 SHA512 00bce3b1a9526fa1144e234cd4326ea4afdcaec7a9f29d62e1f532bfd2f6dec19ecf868fa92ce7c1dfbf66e5063d0762037c6b1b267857280158b57562842993 WHIRLPOOL c95d9a090cde62398f4d74641f0d9a8610695dc0d2ab7e4b4d090403c8d80f4dfbe8dd681c4b31aac7e589ba9b3830555a9a93c7fc764ff4ae11df2932397d26 +MISC ChangeLog 2507 SHA256 95e273b6b02b95583ddf09ec158d2f93e39b63ea51f2a176eb4b8f0caa94c2a0 SHA512 1a8d288ee8b643925109fbfa33d1e83e1febab6b3ce21521edb11036513e5798ab3608f3b3075b88eeb218faa1a5a5ddf1ad9f083e0cda019a58c36f22003ffa WHIRLPOOL 43bc9ad8abf70eae779761917b911035ed8ca195a6e44f10d275f4ea2417ad2d3a64539d4bde80de46e6465dcd92a229076b8a8c968c5b1ab3fe875108d13646 +MISC ChangeLog-2015 444 SHA256 e4d7f5eefec98572d26f1bca53df199d50e3c988b7f170e5480c6561c740a8aa SHA512 3a40dbbe1800d050d9ce2f8de757f1cb377a15137c65a3afb1305d198a51df48fe64380955078b357bdf36ec41469f57738052384dfaad4a234ef31c277143d2 WHIRLPOOL b76ccb975f88440b9c511f2d99118ec8b415ba439241d01a45628b618185c43f9ad36cece3effc1c3e5012c6428ac67c92a91f213008ce340eaedcc080494b0d +MISC metadata.xml 236 SHA256 dd25b46c95b0c63da84b7ff5778479e31449a385df066e9ee14bf0d7d176f42f SHA512 5f6cd6a85527534d5de7118de5af212ee3044c8c5530a7f7087a28074a2d4ab7be1728325bd985adc063dc795d3cf2b1c4e58a4c4c4ec02d739bd4bbc544ef08 WHIRLPOOL b15a2dfb001c41c8de2895842148b2531b74949e89e93ff8c366519c35792996e344918eaf9144fb081fc240796e47890be356d2339bea60b1e1d41830447d31 diff --git a/app-crypt/aescrypt/aescrypt-3.0.6b.ebuild b/app-crypt/aescrypt/aescrypt-3.0.6b.ebuild new file mode 100644 index 000000000000..73d76b66a2db --- /dev/null +++ b/app-crypt/aescrypt/aescrypt-3.0.6b.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="Advanced file encryption using AES" +HOMEPAGE="https://www.aescrypt.com/" +SRC_URI="https://www.aescrypt.com/download/v3/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="static" + +DEPEND="" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-build.patch" + "${FILESDIR}/${P}-iconv.patch" +) + +src_compile() { + if use static; then + append-cflags "-DDISABLE_ICONV" + append-ldflags "-static" + fi + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" +} diff --git a/app-crypt/aescrypt/files/aescrypt-3.0.6b-build.patch b/app-crypt/aescrypt/files/aescrypt-3.0.6b-build.patch new file mode 100644 index 000000000000..8dac5b4e6f47 --- /dev/null +++ b/app-crypt/aescrypt/files/aescrypt-3.0.6b-build.patch @@ -0,0 +1,62 @@ +From ab74ea544739ab044af1e9b398770d31add3b435 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Sat, 2 Feb 2013 01:16:03 +0200 +Subject: [PATCH 1/2] build: respect CFLAGS, DESTDIR and permissions + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> +--- + Makefile | 18 ++++++++++-------- + 1 file changed, 10 insertions(+), 8 deletions(-) + +diff --git a/Makefile b/Makefile +index ac661a8..abcdcc4 100644 +--- a/Makefile ++++ b/Makefile +@@ -17,7 +17,8 @@ CC=gcc + + #The below line is for debugging + #CFLAGS=-I. -ggdb -Wall -D_FILE_OFFSET_BITS=64 +-CFLAGS=-Wall -D_FILE_OFFSET_BITS=64 ++CFLAGS=-Wall ++EXTRA_CFLAGS=-D_FILE_OFFSET_BITS=64 + + LIBS= + +@@ -27,10 +28,10 @@ LIBS= + all: aescrypt aescrypt_keygen + + aescrypt: aescrypt.o aes.o sha256.o password.o keyfile.o +- $(CC) $(CFLAGS) $(LIBS) -o $@ $^ ++ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LIBS) $(LDFLAGS) -o $@ $^ + + aescrypt_keygen: aescrypt_keygen.o password.o +- $(CC) $(CFLAGS) $(LIBS) -o $@ $^ ++ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LIBS) $(LDFLAGS) -o $@ $^ + + test: + @$(CC) -DTEST -o sha.test sha256.c +@@ -48,15 +49,16 @@ testfile: aescrypt + cmp test.orig.txt test.txt + + %.o: %.c %.h +- $(CC) $(CFLAGS) -c $*.c ++ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $*.c + + install: aescrypt +- install -o root -g root -m 755 aescrypt /usr/bin +- install -o root -g root -m 755 aescrypt_keygen /usr/bin ++ install -m 755 -d $(DESTDIR)/usr/bin ++ install -m 755 aescrypt $(DESTDIR)/usr/bin ++ install -m 755 aescrypt_keygen $(DESTDIR)/usr/bin + + uninstall: +- rm -f /usr/bin/aescrypt +- rm -f /usr/bin/aescrypt_keygen ++ rm -f $(DESTDIR)/usr/bin/aescrypt ++ rm -f $(DESTDIR)/usr/bin/aescrypt_keygen + + clean: + rm -f *.o aescrypt aescrypt_keygen test* *test +-- +1.7.12.4 + diff --git a/app-crypt/aescrypt/files/aescrypt-3.0.6b-iconv.patch b/app-crypt/aescrypt/files/aescrypt-3.0.6b-iconv.patch new file mode 100644 index 000000000000..616e87e38d61 --- /dev/null +++ b/app-crypt/aescrypt/files/aescrypt-3.0.6b-iconv.patch @@ -0,0 +1,40 @@ +From 337cc9367a3cb4450eee245c6ceb615d0f05499d Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +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 <alon.barlev@gmail.com> +--- + password.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/password.c b/password.c +index 9a2c1f8..dee79da 100644 +--- a/password.c ++++ b/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<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. +@@ -273,5 +282,6 @@ int passwd_to_utf16(unsigned char *in_passwd, + } + iconv_close(condesc); + return (max_length - ic_outbytesleft); ++#endif + } + +-- +1.7.12.4 + diff --git a/app-crypt/aescrypt/metadata.xml b/app-crypt/aescrypt/metadata.xml new file mode 100644 index 000000000000..f1c3d59fb213 --- /dev/null +++ b/app-crypt/aescrypt/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>crypto@gentoo.org</email> + <name>Crypto</name> +</maintainer> +</pkgmetadata> |