diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-13 11:05:52 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-04-13 11:05:52 +0000 |
commit | a94afa84a03d822575b0d3cafb3edad6bf446a56 (patch) | |
tree | 06f1d681e3bd35c2e458bff046e4bf446a6212a0 /www/cherokee-devel | |
parent | don't forget this file, needed to make that makefile X11BASe clean (diff) |
Update www/cherokee
Update www/cherokee from 0.2.8 to 0.4.2
PR: ports/50764
Submitted by: Pierre-Luc Lesperance <oksala@videotron.ca>
Notes
Notes:
svn path=/head/; revision=78869
Diffstat (limited to 'www/cherokee-devel')
-rw-r--r-- | www/cherokee-devel/Makefile | 104 | ||||
-rw-r--r-- | www/cherokee-devel/distinfo | 2 | ||||
-rw-r--r-- | www/cherokee-devel/files/patch-aa | 66 | ||||
-rw-r--r-- | www/cherokee-devel/files/patch-ab | 11 | ||||
-rw-r--r-- | www/cherokee-devel/pkg-plist | 49 |
5 files changed, 122 insertions, 110 deletions
diff --git a/www/cherokee-devel/Makefile b/www/cherokee-devel/Makefile index 0c3c4da19af3..7809599432c3 100644 --- a/www/cherokee-devel/Makefile +++ b/www/cherokee-devel/Makefile @@ -5,90 +5,54 @@ # $FreeBSD$ # -PORTNAME= Cherokee -PORTVERSION= 0.2.8 +PORTNAME= cherokee +PORTVERSION= 0.4.2 CATEGORIES= www -MASTER_SITES= http://www.alobbs.com/cherokee/ +MASTER_SITES= ftp://www.alobbs.com/cherokee/ MAINTAINER= oksala@videotron.ca COMMENT= Cherokee is an extremely fast and tiny web server -USE_AUTOCONF= yes -USE_AUTOMAKE= yes +#USE_AUTOCONF= yes +#USE_AUTOMAKE= yes HAS_CONFIGURE= yes -CONFIGURE_ARGS+= \ - --prefix=${PREFIX} \ - --enable-daemon\ - --enable-warnings\ - --with-htdocs=${HTDOCS}\ - --with-uid=${UID} \ - --with-gid=${GID} \ - --with-port=${PORT} \ - --with-index=${INDEX} - - -# -# User Configuration -# This may seem a little overloaded -# But there is not configuration files or getopt options -# - -#User Configurations -#Dir for your html files -.if defined(HTDOCS) -HTDOCS=${HTDOCS} -.else -HTDOCS=${PREFIX}/www/data -.endif - -#Process UID -.if defined(USER_ID) -USER_ID=${USER_ID} -.else -USER_ID=80 #www -.endif - -#Process GID -.if defined(GROUP_ID) -GROUP_ID=${GROUP_ID} -.else -GROUP_ID=80 #www +CONFIGURE_ARGS= --prefix=${PREFIX} +INSTALLS_SHLIB= yes + +#This is experimental +#do not expect it to work properly +.if defined(WITH_PHP) +CONFIGURE_ARGS+=--with-php=${PREFIX}/include/php +BUILD_DEPENDS=mod_php4:${PORTSDIR}/www/mod_php4: .endif -#inet port -.if defined(PORT) -PORT=${PORT} -.else -PORT=80 -.endif - -#index files -.if defined(INDEX) -INDEX=${INDEX} -.else -INDEX=index.html -.endif +MAN1= cherokee.1 -pre-configure: - @${ECHO} "" - @${ECHO} "==================================" - @${ECHO} "" - @${ECHO} "Current configuration :" - @${ECHO} "Working directory : ${HTDOCS} (HTDOCS)" - @${ECHO} "Process id : ${USER_ID} (USER_ID)" - @${ECHO} "Process gid : ${GROUP_ID} (GROUP_ID)" - @${ECHO} "Inet port : ${PORT} (PORT)" - @${ECHO} "Index files : ${INDEX} (INDEX)" - @${ECHO} "" - @${ECHO} "==================================" - @${ECHO} "" +#pre-everything: +# @${ECHO_MSG} "----------------------------" +# @${ECHO_MSG} " " +# @${ECHO_MSG} "You can add php support" +# @${ECHO_MSG} "This is experimental" +# @${ECHO_MSG} "builds cherokee with WITH_PHP=yes" +# @${ECHO_MSG} "For example," +# @${ECHO_MSG} "make WITH_PHP=yes" +# @${ECHO_MSG} " " +# @${ECHO_MSG} "----------------------------" pre-install: @if [ ! -f ${PREFIX}/www ]; then \ ${MKDIR} ${PREFIX}/www;\ fi - @if [ ! -f ${HTDOCS} ] ; then \ - ${MKDIR} ${HTDOCS};\ + @if [ ! -f ${PREFIX}/www/data ] ; then \ + ${MKDIR} ${PREFIX}/www/data;\ fi + @${ECHO_MSG} " `pwd` " + +post-install: + @${INSTALL} -m 644 ${WRKSRC}/doc/Intro.txt ${PREFIX}/share/cherokee + @${ECHO_MSG} " " + @${ECHO_MSG} " Dont forget to read the doc " + @${ECHO_MSG} " ${PREFIX}/share/cherokee/Intro.txt" + @${ECHO_MSG} " " .include <bsd.port.mk> diff --git a/www/cherokee-devel/distinfo b/www/cherokee-devel/distinfo index 72ad6ba2af4c..e2aa4f1f1e9e 100644 --- a/www/cherokee-devel/distinfo +++ b/www/cherokee-devel/distinfo @@ -1 +1 @@ -MD5 (Cherokee-0.2.8.tar.gz) = ffefd914d7d242c2e52fc85b3ecc221a +MD5 (cherokee-0.4.2.tar.gz) = cfebf2348fb7c195db262ea6f2abde62 diff --git a/www/cherokee-devel/files/patch-aa b/www/cherokee-devel/files/patch-aa index 7cd751ce8f59..4a99dbeb6dec 100644 --- a/www/cherokee-devel/files/patch-aa +++ b/www/cherokee-devel/files/patch-aa @@ -1,43 +1,35 @@ ---- src/cherokee.h.old Fri Dec 28 07:39:11 2001 -+++ src/cherokee.h Tue May 14 14:49:35 2002 -@@ -28,11 +28,11 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> -+#include <sys/types.h> - #include <netinet/in.h> - #include <sys/socket.h> - #include <sys/wait.h> - #include <sys/time.h> --#include <sys/types.h> - #include <sys/stat.h> - #include <unistd.h> - #include <fcntl.h> ---- src/server.h.old Fri Dec 28 07:25:54 2001 -+++ src/server.h Tue May 14 14:49:35 2002 -@@ -26,9 +26,9 @@ +diff -ruN cherokee-0.4.2.orig/cherokee.conf cherokee-0.4.2/cherokee.conf +--- cherokee.conf.orig Mon Mar 17 12:25:35 2003 ++++ cherokee.conf Mon Apr 7 12:58:12 2003 +@@ -37,7 +37,7 @@ + ## documents. By default, all requests are taken from this directory, but + ## symbolic links and aliases may be used to point to other locations. + ## +-DocumentRoot /var/www ++DocumentRoot /usr/local/www/data - #include <stdio.h> - #include <stdlib.h> --#include <netinet/in.h> --#include <sys/socket.h> - #include <sys/types.h> -+#include <sys/socket.h> -+#include <netinet/in.h> + ## + ## Log: Turn On/Off the logging in to syslog +diff -ruN cherokee-0.4.2.orig/src/common.c cherokee-0.4.2/src/common.c +--- src.orig/common.c Sun Mar 23 14:55:03 2003 ++++ src/common.c Mon Apr 7 12:57:07 2003 +@@ -23,7 +23,6 @@ + * USA + */ - #include "configuration.h" +-#include <varargs.h> + #include <stdarg.h> ---- src/socket.h.old Thu Dec 27 05:49:07 2001 -+++ src/socket.h Tue May 14 14:49:35 2002 -@@ -26,8 +26,11 @@ + #include "common.h" +diff -ruN cherokee-0.4.2.orig/src/server.h cherokee-0.4.2/src/server.h +--- src.orig/server.h Wed Mar 19 16:19:19 2003 ++++ src/server.h Mon Apr 7 12:57:20 2003 +@@ -26,6 +26,8 @@ + #ifndef __CHEROKEE2_SERVER_H__ + #define __CHEROKEE2_SERVER_H__ - #include <stdio.h> - #include <stdlib.h> -+#include <string.h> +#include <sys/types.h> - #include <sys/socket.h> - #include <sys/time.h> -+#include <unistd.h> - - int __inline socket_ready_to_read (int socket); ++ + #include <time.h> + #include "common.h" diff --git a/www/cherokee-devel/files/patch-ab b/www/cherokee-devel/files/patch-ab new file mode 100644 index 000000000000..67d6c7351e41 --- /dev/null +++ b/www/cherokee-devel/files/patch-ab @@ -0,0 +1,11 @@ +--- configure.orig Mon Apr 7 13:28:00 2003 ++++ configure Mon Apr 7 13:27:40 2003 +@@ -6331,7 +6331,7 @@ + withval="$with_php" + + CHEROKEE_PHP_CFLAGS="-I$withval -I$withval/main -I$withval/Zend -I$withval/regex -I$withval/TSRM" +- CHEROKEE_PHP_LIBADD="$withval/libphp4.la" ++ CHEROKEE_PHP_LIBADD="/usr/local/libexec/apache/libphp4.so" + + + php_support="yes" diff --git a/www/cherokee-devel/pkg-plist b/www/cherokee-devel/pkg-plist index 5bc061d8bd9c..7a62a23850ac 100644 --- a/www/cherokee-devel/pkg-plist +++ b/www/cherokee-devel/pkg-plist @@ -1,3 +1,48 @@ bin/cherokee -@dirrm www/data -@dirrm www +bin/cherokee-config +bin/cherokee_static +etc/cherokee/cherokee.conf +include/cherokee/avl.h +include/cherokee/buffer.h +include/cherokee/cherokee.h +include/cherokee/common.h +include/cherokee/connection.h +include/cherokee/fdpoll.h +include/cherokee/handler.h +include/cherokee/http.h +include/cherokee/list.h +include/cherokee/log.h +include/cherokee/plugin_table.h +include/cherokee/plugin_table_entry.h +include/cherokee/server.h +include/cherokee/table.h +include/cherokee/virtual_server.h +lib/cherokee/libcherokee_common.a +lib/cherokee/libcherokee_common.la +lib/cherokee/libcherokee_common.so +lib/cherokee/libcherokee_common.so.0 +lib/cherokee/libcherokee_dirlist.a +lib/cherokee/libcherokee_dirlist.la +lib/cherokee/libcherokee_dirlist.so +lib/cherokee/libcherokee_dirlist.so.0 +lib/cherokee/libcherokee_file.a +lib/cherokee/libcherokee_file.la +lib/cherokee/libcherokee_file.so +lib/cherokee/libcherokee_file.so.0 +lib/cherokee/libcherokee_redir.a +lib/cherokee/libcherokee_redir.la +lib/cherokee/libcherokee_redir.so +lib/cherokee/libcherokee_redir.so.0 +lib/libcherokee.a +lib/libcherokee.la +lib/libcherokee.so +lib/libcherokee.so.0 +share/aclocal/cherokee.m4 +share/cherokee/mime_types.txt +share/cherokee/Intro.txt +@dirrm etc/cherokee +@dirrm include/cherokee +@dirrm lib/cherokee +@dirrm share/cherokee +@unexec rmdir %%LOCALBASE%%/www/data 2>/dev/null || true +@unexec rmdir %%LOCALBASE%%/www 2>/dev/null || true |