Revision: 74643 http://trac.macports.org/changeset/74643 Author: snc@macports.org Date: 2010-12-26 08:27:07 -0800 (Sun, 26 Dec 2010) Log Message: ----------- libmicrohttpd: update to 0.9.4 Modified Paths: -------------- trunk/dports/www/libmicrohttpd/Portfile Added Paths: ----------- trunk/dports/www/libmicrohttpd/files/ trunk/dports/www/libmicrohttpd/files/patch-src-daemon-digestauth.c.diff Modified: trunk/dports/www/libmicrohttpd/Portfile =================================================================== --- trunk/dports/www/libmicrohttpd/Portfile 2010-12-26 16:00:10 UTC (rev 74642) +++ trunk/dports/www/libmicrohttpd/Portfile 2010-12-26 16:27:07 UTC (rev 74643) @@ -4,7 +4,7 @@ PortSystem 1.0 name libmicrohttpd -version 0.9.3 +version 0.9.4 categories www license LGPL maintainers snc openmaintainer @@ -20,9 +20,11 @@ master_sites ftp://ftp.gnu.org/gnu/libmicrohttpd/ -checksums md5 a6c7dae57c51afd648b45a526098429a \ - sha1 d4c359ebdabca81c2ebe25a3b1bf154430c5bb7b +checksums md5 31f37439095e1f7143af97207f03aa14 \ + sha1 0de51616194d035b10c699f4835fec44535f98a1 +patchfiles patch-src-daemon-digestauth.c.diff + livecheck.type regex livecheck.url http://ftp.gnu.org/gnu/libmicrohttpd/ livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?)" Added: trunk/dports/www/libmicrohttpd/files/patch-src-daemon-digestauth.c.diff =================================================================== --- trunk/dports/www/libmicrohttpd/files/patch-src-daemon-digestauth.c.diff (rev 0) +++ trunk/dports/www/libmicrohttpd/files/patch-src-daemon-digestauth.c.diff 2010-12-26 16:27:07 UTC (rev 74643) @@ -0,0 +1,27 @@ +--- src/daemon/digestauth.c.orig 2010-12-26 11:21:16.000000000 -0500 ++++ src/daemon/digestauth.c 2010-12-26 11:22:28.000000000 -0500 +@@ -56,6 +56,24 @@ + */ + #define MAX_AUTH_RESPONSE_LENGTH 128 + ++/* begin test code */ ++size_t strnlen(const char *s, size_t len) ++{ ++ size_t i; ++ for(i=0; i<len && *(s+i); i++); ++ return i; ++} ++char* strndup (char const *s, size_t n) ++{ ++ size_t len = strnlen (s, n); ++ char *new = malloc (len + 1); ++ if (new == NULL) ++ return NULL; ++ new[len] = '\0'; ++ return memcpy (new, s, len); ++} ++/* end test code */ ++ + /** + * convert bin to hex + *
participants (1)
-
snc@macports.org