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-05-17 00:17:30 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/gnutls/gnutls-2.12.5.tar.bz2'
|
|
|
|
sha256 'bf263880f327ac34a561d8e66b5a729cbe33eea56728bfed3406ff2898448b60'
|
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",
|
2011-04-10 20:22:49 +00:00
|
|
|
"--disable-guile",
|
|
|
|
"--disable-static",
|
2010-04-07 05:58:35 +00:00
|
|
|
"--prefix=#{prefix}",
|
2011-04-10 20:22:49 +00:00
|
|
|
"--with-libgcrypt"
|
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)
|
|
|
|
{
|