2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gnutls < Formula
|
2010-04-07 05:58:35 +00:00
|
|
|
homepage 'http://www.gnu.org/software/gnutls/gnutls.html'
|
2011-03-18 21:03:33 +00:00
|
|
|
url 'http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.10.5.tar.bz2'
|
|
|
|
sha1 '4530657082a0e754356de89a5529d1ad7a18e777'
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2009-09-21 18:00:13 +00:00
|
|
|
depends_on 'libgcrypt'
|
2010-08-14 11:28:40 +00:00
|
|
|
depends_on 'libtasn1' => :optional
|
2009-09-09 14:11:58 +00:00
|
|
|
|
2010-12-29 04:53:48 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
fails_with_llvm "Undefined symbols when linking", :build => "2326"
|
2010-12-29 04:53:48 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2010-12-29 04:53:48 +00:00
|
|
|
ENV.universal_binary # build fat so wine can use it
|
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2009-11-16 07:27:10 +00:00
|
|
|
"--disable-guile"
|
2009-09-09 14:11:58 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2010-12-29 04:53:48 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/src/serv.c b/src/serv.c
|
|
|
|
index 0307b05..ecd8725 100644
|
|
|
|
--- a/src/serv.c
|
|
|
|
+++ b/src/serv.c
|
|
|
|
@@ -440,6 +440,7 @@ static const char DEFAULT_DATA[] =
|
|
|
|
*/
|
|
|
|
#define tmp2 &http_buffer[strlen(http_buffer)], len-strlen(http_buffer)
|
|
|
|
static char *
|
|
|
|
+#undef snprintf
|
|
|
|
peer_print_info (gnutls_session_t session, int *ret_length,
|
|
|
|
const char *header)
|
|
|
|
{
|