summaryrefslogtreecommitdiff
path: root/patches/gnutls/build
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-08-22 11:07:29 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-08-22 11:07:29 -0400
commita8577376cfca9281000f51f4137bba973a7327d0 (patch)
tree8b06a5c9f84157f46b991c7a9b347609cdfb04a7 /patches/gnutls/build
parentebe1b243ed380d15e909bcbbbb62d8a6e95168cc (diff)
clean up and clarify script for building patched gnutls.
Diffstat (limited to 'patches/gnutls/build')
-rwxr-xr-xpatches/gnutls/build18
1 files changed, 13 insertions, 5 deletions
diff --git a/patches/gnutls/build b/patches/gnutls/build
index 0037431..77f5900 100755
--- a/patches/gnutls/build
+++ b/patches/gnutls/build
@@ -4,7 +4,11 @@
# ability to parse and accept the GNU S2K extension known as
# "gnu-dummy" (which doesn't have any secret key data at all)
-# Note: you probably want
+# Note: you probably want to prepare your build system in the
+# following way:
+
+# apt-get build-dep libgnutls26
+# aptitude install devscripts fakeroot
# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
# Date: 2008-08-22 00:11:05-0400
@@ -12,15 +16,19 @@
# Note: please run this from the current directory, so it can find and
# transfer the patch it needs.
-workingdir=$(mktemp -d)
+if ! dpkg -l devscripts fakeroot >/dev/null ; then
+ exit 1
+fi
+
+workingdir=$(mktemp -d -p .)
(cd "$workingdir" && apt-get source libgnutls26)
cp ./*.diff "$workingdir/gnutls26-2.4".*/debian/patches/
-(cd "$workingdir/gnutls26-2.4".* && \
- dch --local .s2kext1 --distribution experimental 'added patch to handle GNU extensions to S2K' && \
- debuild -uc -us -sa)
+cd "$workingdir/gnutls26-2.4".*
+dch --local .s2kext --distribution experimental 'added patch to handle GNU extensions to S2K'
+debuild -uc -us -sa
echo now you should:
echo reprepro -C gnutls include experimental "$workingdir/"*.changes