b42832a84023a8d91e5e84c77c4e10210eca0b29
[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 to prepare your build system in the
8 # following way:
9
10 # apt-get build-dep libgnutls26
11 # aptitude install devscripts fakeroot
12
13 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
14 # Date: 2008-08-22 00:11:05-0400
15
16 # Note: please run this from the current directory, so it can find and
17 # transfer the patch it needs.
18
19 set -e
20
21 if ! dpkg -l devscripts fakeroot >/dev/null ; then
22     exit 1
23 fi
24
25 workingdir=$(mktemp -d -p .)
26
27 (cd "$workingdir" && apt-get source libgnutls26)
28
29 cp ./*.diff "$workingdir/gnutls26-2.4".*/debian/patches/
30
31 cd "$workingdir/gnutls26-2.4".* 
32 dch --local .s2kext --distribution experimental 'added patch to handle GNU extensions to S2K'
33 debuild -uc -us -sa
34
35 echo now you should:
36 echo reprepro -C gnutls include experimental "$workingdir/"*.changes