summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <dragonheart@gentoo.org>2007-05-10 21:42:35 +0000
committerDaniel Black <dragonheart@gentoo.org>2007-05-10 21:42:35 +0000
commitb7a25c851a2eb9eeab9a6c7ca30ff520040e583a (patch)
tree1a73a87c143c8b6dbf00e2fc7242e5864a94075a
parentStable for HPPA (bug #177745). (diff)
downloadgentoo-2-b7a25c851a2eb9eeab9a6c7ca30ff520040e583a.tar.gz
gentoo-2-b7a25c851a2eb9eeab9a6c7ca30ff520040e583a.tar.bz2
gentoo-2-b7a25c851a2eb9eeab9a6c7ca30ff520040e583a.zip
gcrypt initialisation fault. bug #177682
(Portage version: 2.1.2.2)
-rw-r--r--net-mail/freepops/ChangeLog9
-rw-r--r--net-mail/freepops/files/digest-freepops-0.2.2-r13
-rw-r--r--net-mail/freepops/files/freepops-0.2.2-gcrypt.patch16
-rw-r--r--net-mail/freepops/freepops-0.2.2-r1.ebuild52
4 files changed, 79 insertions, 1 deletions
diff --git a/net-mail/freepops/ChangeLog b/net-mail/freepops/ChangeLog
index 9057709f9350..363ec5393f7b 100644
--- a/net-mail/freepops/ChangeLog
+++ b/net-mail/freepops/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-mail/freepops
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/ChangeLog,v 1.28 2007/04/19 10:26:39 dragonheart Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/ChangeLog,v 1.29 2007/05/10 21:42:35 dragonheart Exp $
+
+*freepops-0.2.2-r1 (10 May 2007)
+
+ 10 May 2007; Daniel Black <dragonheart@gentoo.org>
+ +files/freepops-0.2.2-gcrypt.patch, +freepops-0.2.2-r1.ebuild:
+ gcrypt initialisation fault. bug #177682 thanks to Przemyslaw Wroblewski for
+ providing a good bug report and a test environment
*freepops-0.2.2 (19 Apr 2007)
diff --git a/net-mail/freepops/files/digest-freepops-0.2.2-r1 b/net-mail/freepops/files/digest-freepops-0.2.2-r1
new file mode 100644
index 000000000000..68bb6e242d42
--- /dev/null
+++ b/net-mail/freepops/files/digest-freepops-0.2.2-r1
@@ -0,0 +1,3 @@
+MD5 8cd34d36523751d1b64c9bf471366925 freepops-0.2.2.tar.gz 1796281
+RMD160 ce0df112cd967f10746a5d9010d551f4bb8b66d9 freepops-0.2.2.tar.gz 1796281
+SHA256 bc74f03c548f5d7f23dcc49a51b9ab384783c5378d356bf942e9eb7109f88dc0 freepops-0.2.2.tar.gz 1796281
diff --git a/net-mail/freepops/files/freepops-0.2.2-gcrypt.patch b/net-mail/freepops/files/freepops-0.2.2-gcrypt.patch
new file mode 100644
index 000000000000..182279c27538
--- /dev/null
+++ b/net-mail/freepops/files/freepops-0.2.2-gcrypt.patch
@@ -0,0 +1,16 @@
+--- src/freepops.c.orig 2007-05-11 07:33:04.000000000 +1000
++++ src/freepops.c 2007-05-11 07:35:02.000000000 +1000
+@@ -452,8 +452,12 @@
+
+
+ #if CRYPTO_IMPLEMENTATION == 1
++ if (!gcry_check_version("1.2.2")) {
++ fprintf(stderr, "gcrypt version older than 1.2.2\n");
++ exit(1);
++ }
+ gcry_control(GCRYCTL_SET_THREAD_CBS,&gcry_threads_pthread);
+- gcry_check_version("1.2.2");
++ gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
+ #endif
+
+ curl_global_init(CURL_GLOBAL_ALL);
diff --git a/net-mail/freepops/freepops-0.2.2-r1.ebuild b/net-mail/freepops/freepops-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..8d533a3c9962
--- /dev/null
+++ b/net-mail/freepops/freepops-0.2.2-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/freepops/freepops-0.2.2-r1.ebuild,v 1.1 2007/05/10 21:42:35 dragonheart Exp $
+
+inherit eutils
+
+DESCRIPTION="WebMail->POP3 converter and more"
+HOMEPAGE="http://freepops.sourceforge.net/"
+SRC_URI="mirror://sourceforge/freepops/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="gnutls"
+
+RDEPEND=">=net-misc/curl-7.10.8
+ gnutls? ( net-libs/gnutls
+ dev-libs/libgcrypt )
+ !gnutls? ( dev-libs/openssl )
+ >=dev-lang/lua-5.1"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-gcrypt.patch
+ sed -i -e '/pkg-config lua/s/5.1//g' configure.sh
+}
+
+src_compile() {
+ # note fbsd and Darwin and osx targets exist here too
+ if use gnutls; then
+ ./configure.sh linux-gnutls -lua || die "configure gnutls failed"
+ sed -i -e '/^WHERE=/s/=.*$/=\/usr\//' config
+ else
+ ./configure.sh linux-slack -lua || die "configure openssl failed"
+ fi
+ emake -j1 all || die "make failed"
+}
+
+src_install() {
+ emake -j2 install DESTDIR="${D}" || die
+ mv "${D}"/usr/share/doc/${PN} "${D}"/usr/share/doc/${PF}
+ dodoc AUTHORS README ChangeLog TODO
+ chmod a+x "${D}"/usr/bin/freepops-updater-dialog
+
+ newinitd buildfactory/gentoo/freePOPsd.initd freepopsd
+ newconfd buildfactory/gentoo/freePOPsd.confd freepopsd
+ domenu buildfactory/debian-ubuntu/freepops.desktop
+ doicon modules/src/winsystray/freepops-32.xpm
+ doicon modules/src/winsystray/freepops-16.xpm
+}