diff --git a/gnupg/.md5sum b/gnupg/.md5sum index 4304b0336..e54aba721 100644 --- a/gnupg/.md5sum +++ b/gnupg/.md5sum @@ -1 +1,2 @@ b41f3f6716a74c46a609a71853e85c7b gnupg-2.0.9.tar.bz2 +9f05561bf1338f343a0e1b1b23ba8024 gnupg.diff diff --git a/gnupg/Pkgfile b/gnupg/Pkgfile index 2bec73b83..609989364 100644 --- a/gnupg/Pkgfile +++ b/gnupg/Pkgfile @@ -6,12 +6,15 @@ name=gnupg version=2.0.9 -release=1 -source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.bz2) +release=2 +source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.bz2 + $name.diff) build () { cd $name-$version + patch -Np1 -i $SRC/$name.diff + ./configure \ --prefix=/usr \ --libexecdir=/usr/lib \ diff --git a/gnupg/gnupg.diff b/gnupg/gnupg.diff new file mode 100644 index 000000000..287f5daae --- /dev/null +++ b/gnupg/gnupg.diff @@ -0,0 +1,13 @@ +diff -aur gnupg-2.0.9.orig/keyserver/gpgkeys_curl.c gnupg-2.0.9/keyserver/gpgkeys_curl.c +--- gnupg-2.0.9.orig/keyserver/gpgkeys_curl.c 2007-07-04 15:26:13.000000000 +0200 ++++ gnupg-2.0.9/keyserver/gpgkeys_curl.c 2008-11-30 13:42:46.062587160 +0100 +@@ -300,7 +300,8 @@ + curl_easy_setopt(curl,CURLOPT_VERBOSE,1); + } + +- curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert); ++ int check_cert = opt->flags.check_cert; ++ curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,check_cert); + curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file); + + if(proxy)