app-crypt/mcrypt: eapi bump
authorAlon Bar-Lev <alonbl@gentoo.org>
Fri, 13 Jan 2017 23:08:21 +0000 (01:08 +0200)
committerAlon Bar-Lev <alonbl@gentoo.org>
Fri, 13 Jan 2017 23:32:37 +0000 (01:32 +0200)
Package-Manager: portage-2.3.0

app-crypt/mcrypt/files/mcrypt-2.6.8-format-string.patch
app-crypt/mcrypt/files/mcrypt-2.6.8-stdlib.h.patch
app-crypt/mcrypt/mcrypt-2.6.8-r3.ebuild [new file with mode: 0644]

index d602bed46bfe5440ce22fee137fcbc40fff10b0d..ceeb28f38e0d36aebb64f67c47cbcd33e4e4cbcb 100644 (file)
@@ -1,5 +1,5 @@
---- src/errors.c
-+++ src/errors.c
+--- a/src/errors.c
++++ b/src/errors.c
 @@ -25,24 +25,24 @@
  
  void err_quit(char *errmsg)
index 7cfae9815207a4c8e5d831891ec456affbb35035..c4bdb18a6dbc25aa70309878a07e3bb1e446a9c7 100644 (file)
@@ -1,5 +1,5 @@
---- src/rfc2440.c      2008-11-17 06:50:01.000000000 +1100
-+++ src/rfc2440.c      2010-08-10 13:48:28.000000000 +1000
+--- a/src/rfc2440.c    2008-11-17 06:50:01.000000000 +1100
++++ b/src/rfc2440.c    2010-08-10 13:48:28.000000000 +1000
 @@ -23,7 +23,7 @@
  #include <zlib.h>
  #endif
diff --git a/app-crypt/mcrypt/mcrypt-2.6.8-r3.ebuild b/app-crypt/mcrypt/mcrypt-2.6.8-r3.ebuild
new file mode 100644 (file)
index 0000000..f9248db
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+DESCRIPTION="replacement of the old unix crypt(1)"
+HOMEPAGE="http://mcrypt.sourceforge.net/"
+SRC_URI="mirror://sourceforge/mcrypt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-macos"
+IUSE="nls"
+
+DEPEND=">=dev-libs/libmcrypt-2.5.8
+       >=app-crypt/mhash-0.9.9
+       sys-libs/zlib"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-2.6.7-qa.patch"
+       "${FILESDIR}/${P}-stdlib.h.patch"
+       "${FILESDIR}/${P}-segv.patch"
+       "${FILESDIR}/${P}-sprintf.patch"
+       "${FILESDIR}/${P}-format-string.patch"
+       "${FILESDIR}/${P}-overflow.patch"
+)
+
+src_configure() {
+       econf $(use_enable nls)
+}