added patch to enable GnuTLS 2.4.x to read gnu-dummy S2K extensions, along with build...
[monkeysphere.git] / patches / gnutls / build
1 #!/bin/sh -e
2
3 # build a patched version of GnuTLS version 2.4.x, including the
4 # ability to parse and accept the GNU S2K extension known as
5 # "gnu-dummy" (which doesn't have any secret key data at all)
6
7 # Note: you probably want 
8
9 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
10 # Date: 2008-08-22 00:11:05-0400
11
12 # Note: please run this from the current directory, so it can find and
13 # transfer the patch it needs.
14
15 workingdir=$(mktemp -d)
16
17 (cd "$workingdir" && apt-get source libgnutls26)
18
19 cp ./*.diff "$workingdir/gnutls26-2.4".*/debian/patches/
20
21 (cd "$workingdir/gnutls26-2.4".* && \
22     dch --local .s2kext1 --distribution experimental 'added patch to handle GNU extensions to S2K' && \
23     debuild -uc -us -sa)
24
25 echo now you should:
26 echo reprepro -C gnutls include experimental "$workingdir/"*.changes