Use md5 functions from libc if avail.
This commit is contained in:
parent
e49bbecc5f
commit
120f3161a3
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2002/12/17 05:50:51 fgsch Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2002/12/17 08:09:23 fgsch Exp $
|
||||
|
||||
COMMENT= "graphics and text browser with javascript support"
|
||||
|
||||
@ -21,7 +21,7 @@ PERMIT_DISTFILES_FTP= Yes
|
||||
FLAVORS= no_x11
|
||||
FLAVOR?=
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_STYLE= autoconf
|
||||
CONFIGURE_ARGS+= --enable-javascript --with-ssl
|
||||
|
||||
.if !${FLAVOR:L:Mno_x11}
|
||||
|
16
www/links+/patches/patch-config_h_in
Normal file
16
www/links+/patches/patch-config_h_in
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-config_h_in,v 1.1 2002/12/17 08:09:23 fgsch Exp $
|
||||
--- config.h.in.orig Tue Dec 17 04:51:38 2002
|
||||
+++ config.h.in Tue Dec 17 04:56:29 2002
|
||||
@@ -95,6 +95,12 @@
|
||||
/* Define if you have the nl_langinfo function. */
|
||||
#undef HAVE_NL_LANGINFO
|
||||
|
||||
+/* Define if you have the MD5Init function. */
|
||||
+#undef HAVE_MD5INIT
|
||||
+
|
||||
+/* Define if you have the MD5Data function. */
|
||||
+#undef HAVE_MD5DATA
|
||||
+
|
||||
/* Define if you have the png_set_rgb_to_gray function. */
|
||||
#undef HAVE_PNG_SET_RGB_TO_GRAY
|
||||
|
11
www/links+/patches/patch-configure_in
Normal file
11
www/links+/patches/patch-configure_in
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-configure_in,v 1.1 2002/12/17 08:09:23 fgsch Exp $
|
||||
--- configure.in.orig Tue Dec 17 04:51:00 2002
|
||||
+++ configure.in Tue Dec 17 04:56:00 2002
|
||||
@@ -129,6 +129,7 @@ AC_HAVE_FUNCS(uname)
|
||||
AC_HAVE_FUNCS(strptime)
|
||||
AC_HAVE_FUNCS(setlocale)
|
||||
AC_HAVE_FUNCS(nl_langinfo)
|
||||
+AC_HAVE_FUNCS(MD5Init MD5Data)
|
||||
dnl AC_HAVE_FUNCS(sigsetjmp siglongjmp)
|
||||
|
||||
AC_CACHE_CHECK([for sigsetjmp/siglongjmp], ac_cv_have_sigsetjmp,
|
22
www/links+/patches/patch-md5_c
Normal file
22
www/links+/patches/patch-md5_c
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-md5_c,v 1.1 2002/12/17 08:09:23 fgsch Exp $
|
||||
--- md5.c.orig Thu May 9 20:12:59 2002
|
||||
+++ md5.c Tue Dec 17 04:59:22 2002
|
||||
@@ -18,6 +18,10 @@
|
||||
/* This file is a part of the Links project, released under GPL.
|
||||
*/
|
||||
|
||||
+#include "cfg.h"
|
||||
+
|
||||
+#ifndef HAVE_MD5INIT
|
||||
+
|
||||
#include "links.h"
|
||||
|
||||
#ifdef JS
|
||||
@@ -252,5 +256,7 @@ void MD5Transform(u_int32_t buf[4], u_in
|
||||
buf[2] += c;
|
||||
buf[3] += d;
|
||||
}
|
||||
+
|
||||
+#endif
|
||||
|
||||
#endif
|
22
www/links+/patches/patch-md5hl_c
Normal file
22
www/links+/patches/patch-md5hl_c
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-md5hl_c,v 1.1 2002/12/17 08:09:23 fgsch Exp $
|
||||
--- md5hl.c.orig Thu May 9 20:12:59 2002
|
||||
+++ md5hl.c Tue Dec 17 04:59:08 2002
|
||||
@@ -23,6 +23,10 @@
|
||||
#include <stdlib.h>
|
||||
*/
|
||||
|
||||
+#include "cfg.h"
|
||||
+
|
||||
+#ifndef HAVE_MD5DATA
|
||||
+
|
||||
#include "links.h"
|
||||
#include "md5.h"
|
||||
|
||||
@@ -77,5 +81,7 @@ MD5Data (const unsigned char *data, unsi
|
||||
MD5Update(&ctx,data,len);
|
||||
return MD5End(&ctx, buf);
|
||||
}
|
||||
+
|
||||
+#endif
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user