X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=patches%2Fgnutls%2Fbuild;h=77f5900de079656d1fe29a27637b675f33b44793;hb=a693e9be61d02196e2583e9096cb049982a26668;hp=003743175384c4ec3049f4f8b7148ed5fac48dbc;hpb=4f2abba493a35709d0d28a70f9856c6c349d50bd;p=monkeysphere.git 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 # 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