summaryrefslogtreecommitdiff
path: root/patches/gnutls/build
blob: b42832a84023a8d91e5e84c77c4e10210eca0b29 (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. set -e
  14. if ! dpkg -l devscripts fakeroot >/dev/null ; then
  15. exit 1
  16. fi
  17. workingdir=$(mktemp -d -p .)
  18. (cd "$workingdir" && apt-get source libgnutls26)
  19. cp ./*.diff "$workingdir/gnutls26-2.4".*/debian/patches/
  20. cd "$workingdir/gnutls26-2.4".*
  21. dch --local .s2kext --distribution experimental 'added patch to handle GNU extensions to S2K'
  22. debuild -uc -us -sa
  23. echo now you should:
  24. echo reprepro -C gnutls include experimental "$workingdir/"*.changes