From fe97209eb7655d3b7347d3e00690fcd8315abd47 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Sun, 6 Apr 2003 00:30:58 +0000 Subject: new port: www/cherokee Cherokee is a tiny, ultrafast, lightweight Web server. It is implemented entirely in C, and has no dependencies beyond a standard C library. It provides only the most basic HTTP functionality, but is extremely fast and small. PR: ports/38092 Submitted by: silence --- www/cherokee/Makefile | 94 +++++++++++++++++++++++++++++++++++++++++++++ www/cherokee/distinfo | 1 + www/cherokee/files/patch-aa | 43 +++++++++++++++++++++ www/cherokee/pkg-descr | 6 +++ www/cherokee/pkg-plist | 3 ++ 5 files changed, 147 insertions(+) create mode 100644 www/cherokee/Makefile create mode 100644 www/cherokee/distinfo create mode 100644 www/cherokee/files/patch-aa create mode 100644 www/cherokee/pkg-descr create mode 100644 www/cherokee/pkg-plist (limited to 'www/cherokee') diff --git a/www/cherokee/Makefile b/www/cherokee/Makefile new file mode 100644 index 000000000000..0c3c4da19af3 --- /dev/null +++ b/www/cherokee/Makefile @@ -0,0 +1,94 @@ +# New ports collection makefile for: cherokee +# Date created: 01 Jun 2002 +# Whom: silence +# +# $FreeBSD$ +# + +PORTNAME= Cherokee +PORTVERSION= 0.2.8 +CATEGORIES= www +MASTER_SITES= http://www.alobbs.com/cherokee/ + +MAINTAINER= oksala@videotron.ca +COMMENT= Cherokee is an extremely fast and tiny web server + +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 +.endif + +#inet port +.if defined(PORT) +PORT=${PORT} +.else +PORT=80 +.endif + +#index files +.if defined(INDEX) +INDEX=${INDEX} +.else +INDEX=index.html +.endif + +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-install: + @if [ ! -f ${PREFIX}/www ]; then \ + ${MKDIR} ${PREFIX}/www;\ + fi + @if [ ! -f ${HTDOCS} ] ; then \ + ${MKDIR} ${HTDOCS};\ + fi + +.include diff --git a/www/cherokee/distinfo b/www/cherokee/distinfo new file mode 100644 index 000000000000..72ad6ba2af4c --- /dev/null +++ b/www/cherokee/distinfo @@ -0,0 +1 @@ +MD5 (Cherokee-0.2.8.tar.gz) = ffefd914d7d242c2e52fc85b3ecc221a diff --git a/www/cherokee/files/patch-aa b/www/cherokee/files/patch-aa new file mode 100644 index 000000000000..7cd751ce8f59 --- /dev/null +++ b/www/cherokee/files/patch-aa @@ -0,0 +1,43 @@ +--- 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 + #include + #include ++#include + #include + #include + #include + #include +-#include + #include + #include + #include +--- 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 @@ + + #include + #include +-#include +-#include + #include ++#include ++#include + + #include "configuration.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 + #include ++#include ++#include + #include + #include ++#include + + int __inline socket_ready_to_read (int socket); + diff --git a/www/cherokee/pkg-descr b/www/cherokee/pkg-descr new file mode 100644 index 000000000000..0d2efb81e24e --- /dev/null +++ b/www/cherokee/pkg-descr @@ -0,0 +1,6 @@ +Cherokee is a tiny, ultrafast, lightweight Web server. It is implemented +entirely in C, and has no dependencies beyond a standard C library. It +provides only the most basic HTTP functionality, but is extremely fast and +small. + +WWW: http://www.alobbs.com/cherokee diff --git a/www/cherokee/pkg-plist b/www/cherokee/pkg-plist new file mode 100644 index 000000000000..5bc061d8bd9c --- /dev/null +++ b/www/cherokee/pkg-plist @@ -0,0 +1,3 @@ +bin/cherokee +@dirrm www/data +@dirrm www -- cgit v1.2.3