summaryrefslogtreecommitdiff
path: root/gnupg
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@crux.nu>2008-12-02 18:44:28 +0100
committerTilman Sauerbeck <tilman@crux.nu>2008-12-02 18:45:04 +0100
commit31e95fbece9e34127980ed180d44b7e17ce0d13d (patch)
treeface85610479528b715c999793a79dcb73842719 /gnupg
parentaf771a3a02f97ac80669da3f519dcb4dc4b143ce (diff)
downloadopt-31e95fbece9e34127980ed180d44b7e17ce0d13d.tar.gz
opt-31e95fbece9e34127980ed180d44b7e17ce0d13d.tar.xz
gnupg: build with gcc 4.3.
Diffstat (limited to 'gnupg')
-rw-r--r--gnupg/.md5sum1
-rw-r--r--gnupg/Pkgfile7
-rw-r--r--gnupg/gnupg.diff13
3 files changed, 19 insertions, 2 deletions
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)

Generated by cgit