From 95b99f76388b3d35c8da8f41300cea0997dc50fd Mon Sep 17 00:00:00 2001 From: miwi Date: Wed, 4 Nov 2009 08:14:15 +0000 Subject: - Update to 0.9 PR: 140260 Submitted by: Shinsuke Matsui (maintainer) --- www/tinytinyhttpd/Makefile | 5 +++-- www/tinytinyhttpd/distinfo | 6 +++--- www/tinytinyhttpd/files/example.conf | 10 ---------- www/tinytinyhttpd/files/example.conf.in | 10 ++++++++++ www/tinytinyhttpd/files/patch-httpd.cxx | 13 +++++++++++++ 5 files changed, 29 insertions(+), 15 deletions(-) delete mode 100644 www/tinytinyhttpd/files/example.conf create mode 100644 www/tinytinyhttpd/files/example.conf.in create mode 100644 www/tinytinyhttpd/files/patch-httpd.cxx diff --git a/www/tinytinyhttpd/Makefile b/www/tinytinyhttpd/Makefile index 95bf160490d6..f2726954f932 100644 --- a/www/tinytinyhttpd/Makefile +++ b/www/tinytinyhttpd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= tinytinyhttpd -PORTVERSION= 0.0.8 +PORTVERSION= 0.0.9 CATEGORIES= www MASTER_SITES= http://cloud.github.com/downloads/mattn/tinytinyhttpd/ \ ${MASTER_SITE_LOCAL} @@ -17,6 +17,7 @@ COMMENT= Tiny tiny httpd HAS_CONFIGURE= yes PLIST_FILES= bin/tthttpd +SUB_FILES= example.conf PORTDOCS= README example.conf ChangeLog do-install: @@ -24,7 +25,7 @@ do-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${FILESDIR}/example.conf ${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/example.conf ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR} .endif diff --git a/www/tinytinyhttpd/distinfo b/www/tinytinyhttpd/distinfo index 633aaba30f0f..ac31e2106a21 100644 --- a/www/tinytinyhttpd/distinfo +++ b/www/tinytinyhttpd/distinfo @@ -1,3 +1,3 @@ -MD5 (tinytinyhttpd-0.0.8.tar.gz) = 2a7b2bdcd5618c8f89915284f5f4203b -SHA256 (tinytinyhttpd-0.0.8.tar.gz) = d1b6b814e86d7357707c5fc2d8f63af42bb0a15a0197180d11c027a373c01f76 -SIZE (tinytinyhttpd-0.0.8.tar.gz) = 110678 +MD5 (tinytinyhttpd-0.0.9.tar.gz) = 9b0420c36c890b3dc442ce7dc20d4d3b +SHA256 (tinytinyhttpd-0.0.9.tar.gz) = 374041df75722920a355b3284d242a9fcdf009cc7c67078fd527c2682462792f +SIZE (tinytinyhttpd-0.0.9.tar.gz) = 147412 diff --git a/www/tinytinyhttpd/files/example.conf b/www/tinytinyhttpd/files/example.conf deleted file mode 100644 index c77a7d50dbe4..000000000000 --- a/www/tinytinyhttpd/files/example.conf +++ /dev/null @@ -1,10 +0,0 @@ -[global] -port=8080 -root=/path/to/contents -indexpages=index.html,index.php -charset=utf-8 -spawnexec=on - -[mime/types] -cgi=@/usr/local/bin/perl -php=@/usr/local/bin/php diff --git a/www/tinytinyhttpd/files/example.conf.in b/www/tinytinyhttpd/files/example.conf.in new file mode 100644 index 000000000000..15e1a318d3df --- /dev/null +++ b/www/tinytinyhttpd/files/example.conf.in @@ -0,0 +1,10 @@ +[global] +port=8080 +root=/path/to/contents +indexpages=index.html,index.php +charset=utf-8 +spawnexec=on + +[mime/types] +cgi=@%%LOCALBASE%%/bin/perl +php=@%%LOCALBASE%%/bin/php diff --git a/www/tinytinyhttpd/files/patch-httpd.cxx b/www/tinytinyhttpd/files/patch-httpd.cxx new file mode 100644 index 000000000000..5447612653fa --- /dev/null +++ b/www/tinytinyhttpd/files/patch-httpd.cxx @@ -0,0 +1,13 @@ +diff --git httpd.cxx httpd.cxx +index 98cec3c..958200a 100644 +--- httpd.cxx ++++ httpd.cxx +@@ -1734,7 +1734,7 @@ request_done: + #if defined LINUX_SENDFILE_API + sent = sendfile(msgsock, fileno(res_info->read), NULL, total); + #elif defined FREEBSD_SENDFILE_API +- sendfile(msgsock, fileno(res_info->read), total, &sent, NULL, 0); ++ if (sendfile(msgsock, fileno(res_info->read), NULL, total, NULL, NULL, 0) == 0) sent = total; + #elif defined _WIN32 + if (!res_info->process && lpfnTransmitFile && lpfnTransmitFile( + msgsock, -- cgit