summaryrefslogtreecommitdiff
path: root/patches/gnutls/build
blob: 77f5900de079656d1fe29a27637b675f33b44793 (plain)
  1. #!/bin/sh -e
  2. # build a patched version of GnuTLS version 2.4.x, including the
  3. # ability to parse and accept the GNU S2K extension known as
  4. # "gnu-dummy" (which doesn't have any secret key data at all)
  5. # Note: you probably want to prepare your build system in the
  6. # following way:
  7. # apt-get build-dep libgnutls26
  8. # aptitude install devscripts fakeroot
  9. # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  10. # Date: 2008-08-22 00:11:05-0400
  11. # Note: please run this from the current directory, so it can find and
  12. # transfer the patch it needs.
  13. if ! dpkg -l devscripts fakeroot >/dev/null ; then
  14. exit 1
  15. fi
  16. workingdir=$(mktemp -d -p .)
  17. (cd "$workingdir" && apt-get source libgnutls26)
  18. cp ./*.diff "$workingdir/gnutls26-2.4".*/debian/patches/
  19. cd "$workingdir/gnutls26-2.4".*
  20. dch --local .s2kext --distribution experimental 'added patch to handle GNU extensions to S2K'
  21. debuild -uc -us -sa
  22. echo now you should:
  23. echo reprepro -C gnutls include experimental "$workingdir/"*.changes