summaryrefslogtreecommitdiff
path: root/www/cherokee-devel
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-04-06 00:30:58 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-04-06 00:30:58 +0000
commitfe97209eb7655d3b7347d3e00690fcd8315abd47 (patch)
treeaba69b7f817ef1c389dabd9eab881bddea71329d /www/cherokee-devel
parentFix dependency list: graphics/xanim -> multimedia/xanim (diff)
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 <oksala@videotron.ca>
Notes
Notes: svn path=/head/; revision=78374
Diffstat (limited to 'www/cherokee-devel')
-rw-r--r--www/cherokee-devel/Makefile94
-rw-r--r--www/cherokee-devel/distinfo1
-rw-r--r--www/cherokee-devel/files/patch-aa43
-rw-r--r--www/cherokee-devel/pkg-descr6
-rw-r--r--www/cherokee-devel/pkg-plist3
5 files changed, 147 insertions, 0 deletions
diff --git a/www/cherokee-devel/Makefile b/www/cherokee-devel/Makefile
new file mode 100644
index 000000000000..0c3c4da19af3
--- /dev/null
+++ b/www/cherokee-devel/Makefile
@@ -0,0 +1,94 @@
+# New ports collection makefile for: cherokee
+# Date created: 01 Jun 2002
+# Whom: silence <oksala@videotron.ca>
+#
+# $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 <bsd.port.mk>
diff --git a/www/cherokee-devel/distinfo b/www/cherokee-devel/distinfo
new file mode 100644
index 000000000000..72ad6ba2af4c
--- /dev/null
+++ b/www/cherokee-devel/distinfo
@@ -0,0 +1 @@
+MD5 (Cherokee-0.2.8.tar.gz) = ffefd914d7d242c2e52fc85b3ecc221a
diff --git a/www/cherokee-devel/files/patch-aa b/www/cherokee-devel/files/patch-aa
new file mode 100644
index 000000000000..7cd751ce8f59
--- /dev/null
+++ b/www/cherokee-devel/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 <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 @@
+
+ #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>
+
+ #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 <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);
+
diff --git a/www/cherokee-devel/pkg-descr b/www/cherokee-devel/pkg-descr
new file mode 100644
index 000000000000..0d2efb81e24e
--- /dev/null
+++ b/www/cherokee-devel/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-devel/pkg-plist b/www/cherokee-devel/pkg-plist
new file mode 100644
index 000000000000..5bc061d8bd9c
--- /dev/null
+++ b/www/cherokee-devel/pkg-plist
@@ -0,0 +1,3 @@
+bin/cherokee
+@dirrm www/data
+@dirrm www