diff options
Diffstat (limited to 'app-crypt/md6sum')
| -rw-r--r-- | app-crypt/md6sum/Manifest | 1 | ||||
| -rw-r--r-- | app-crypt/md6sum/files/md6sum-1.0-cflags.patch | 27 | ||||
| -rw-r--r-- | app-crypt/md6sum/files/md6sum-1.0-format-security.patch | 26 | ||||
| -rw-r--r-- | app-crypt/md6sum/files/md6sum-1.0-ldflags.patch | 12 | ||||
| -rw-r--r-- | app-crypt/md6sum/md6sum-1.0-r2.ebuild | 27 | ||||
| -rw-r--r-- | app-crypt/md6sum/metadata.xml | 10 |
6 files changed, 103 insertions, 0 deletions
diff --git a/app-crypt/md6sum/Manifest b/app-crypt/md6sum/Manifest new file mode 100644 index 000000000000..d414de9a22a2 --- /dev/null +++ b/app-crypt/md6sum/Manifest @@ -0,0 +1 @@ +DIST md6sum-1.0.tar.gz 125626 SHA256 5812286dabf26d576cf9b30d3088da1e7924362442144ecdfa38738530e297e0 SHA512 8253a68dd036dd98b22c39a35a75f9bbdc4018ea63dc8f7823c831090d19f2f92a727458b4dc35388e494dbf496b9f5de693a1cfb3e5a8ca8441f31f0e817d46 WHIRLPOOL 05d3e1c8c5065b8003e620b3824310393ad64c22e94d4e3acc18f508e5a6461ba222c1b53e782616a0bd5372c3cadc7e774b24e9782e8137b1336af5740b0a04 diff --git a/app-crypt/md6sum/files/md6sum-1.0-cflags.patch b/app-crypt/md6sum/files/md6sum-1.0-cflags.patch new file mode 100644 index 000000000000..18e1937c4424 --- /dev/null +++ b/app-crypt/md6sum/files/md6sum-1.0-cflags.patch @@ -0,0 +1,27 @@ +--- Makefile.in 2012-11-07 22:04:51.207982344 -0500 ++++ Makefile.in.new 2012-11-07 22:06:00.905977580 -0500 +@@ -18,19 +18,19 @@ + all: md6sum + + md6sum: $(OBJS) +- $(CC) $(OBJS) $(CXXFLAGS) $(LDFLAGS) -o $@ ++ $(CC) $(OBJS) $(CFLAGS) $(LDFLAGS) -o $@ + + md6_compress.o: md6_compress.c inttypes.h md6.h md6_nist.h stdint.h +- $(CC) $(CXXFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + md6_mode.o: md6_mode.c inttypes.h md6.h md6_nist.h stdint.h +- $(CC) $(CXXFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + md6_nist.o: md6_nist.c inttypes.h md6.h md6_nist.h stdint.h +- $(CC) $(CXXFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + md6sum.o: md6sum.c inttypes.h md6.h md6_nist.h stdint.h +- $(CC) $(CXXFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + clean: + rm *.o diff --git a/app-crypt/md6sum/files/md6sum-1.0-format-security.patch b/app-crypt/md6sum/files/md6sum-1.0-format-security.patch new file mode 100644 index 000000000000..061ec7b5f1b4 --- /dev/null +++ b/app-crypt/md6sum/files/md6sum-1.0-format-security.patch @@ -0,0 +1,26 @@ +From 95833e409336bd0a4a656b7e2d0a9598dfe3f546 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Sat, 30 Aug 2014 21:25:23 +0300 +Subject: [PATCH] build: fix warning of format-security + +Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> +--- + md6sum.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/md6sum.c b/md6sum.c +index 2401a5a..0338d30 100644 +--- a/md6sum.c ++++ b/md6sum.c +@@ -428,7 +428,7 @@ void optd(char *optstr) +
+ void opth()
+ { /* print md6sum help string */
+- printf(help_string);
++ printf("%s", help_string);
+ }
+
+ void optK(char *optstr)
+-- +1.8.5.5 + diff --git a/app-crypt/md6sum/files/md6sum-1.0-ldflags.patch b/app-crypt/md6sum/files/md6sum-1.0-ldflags.patch new file mode 100644 index 000000000000..23d37e192ea3 --- /dev/null +++ b/app-crypt/md6sum/files/md6sum-1.0-ldflags.patch @@ -0,0 +1,12 @@ +diff -Nru md6sum-1.0.orig/Makefile.in md6sum-1.0/Makefile.in +--- md6sum-1.0.orig/Makefile.in 2011-01-09 02:12:09.000000000 +0000 ++++ md6sum-1.0/Makefile.in 2011-02-01 04:41:35.000000000 +0000 +@@ -18,7 +18,7 @@ + all: md6sum + + md6sum: $(OBJS) +- $(CC) $(OBJS) $(CXXFLAGS) -o $@ ++ $(CC) $(OBJS) $(CXXFLAGS) $(LDFLAGS) -o $@ + + md6_compress.o: md6_compress.c inttypes.h md6.h md6_nist.h stdint.h + $(CC) $(CXXFLAGS) -c $< -o $@ diff --git a/app-crypt/md6sum/md6sum-1.0-r2.ebuild b/app-crypt/md6sum/md6sum-1.0-r2.ebuild new file mode 100644 index 000000000000..446e21a7c2ab --- /dev/null +++ b/app-crypt/md6sum/md6sum-1.0-r2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils + +DESCRIPTION="A C implementation of MD6" +HOMEPAGE="http://groups.csail.mit.edu/cis/md6" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}/${P}-ldflags.patch" + epatch "${FILESDIR}/${P}-cflags.patch" + epatch "${FILESDIR}/${P}-format-security.patch" +} + +src_install() { + default + newdoc README_Reference.txt README +} diff --git a/app-crypt/md6sum/metadata.xml b/app-crypt/md6sum/metadata.xml new file mode 100644 index 000000000000..2d87b7020851 --- /dev/null +++ b/app-crypt/md6sum/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>crypto</herd> + <longdescription lang="en"> +</longdescription> + <upstream> + <remote-id type="sourceforge">md6sum</remote-id> + </upstream> +</pkgmetadata> |
