mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
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>
This commit is contained in:
parent
4b49e9c401
commit
fe97209eb7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78374
@ -49,6 +49,7 @@
|
||||
SUBDIR += cgiwrap
|
||||
SUBDIR += checkbot
|
||||
SUBDIR += cheetah
|
||||
SUBDIR += cherokee
|
||||
SUBDIR += chimera
|
||||
SUBDIR += chimera2
|
||||
SUBDIR += chtml
|
||||
|
94
www/cherokee-devel/Makefile
Normal file
94
www/cherokee-devel/Makefile
Normal file
@ -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>
|
1
www/cherokee-devel/distinfo
Normal file
1
www/cherokee-devel/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Cherokee-0.2.8.tar.gz) = ffefd914d7d242c2e52fc85b3ecc221a
|
43
www/cherokee-devel/files/patch-aa
Normal file
43
www/cherokee-devel/files/patch-aa
Normal file
@ -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);
|
||||
|
6
www/cherokee-devel/pkg-descr
Normal file
6
www/cherokee-devel/pkg-descr
Normal file
@ -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
|
3
www/cherokee-devel/pkg-plist
Normal file
3
www/cherokee-devel/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/cherokee
|
||||
@dirrm www/data
|
||||
@dirrm www
|
94
www/cherokee/Makefile
Normal file
94
www/cherokee/Makefile
Normal file
@ -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>
|
1
www/cherokee/distinfo
Normal file
1
www/cherokee/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (Cherokee-0.2.8.tar.gz) = ffefd914d7d242c2e52fc85b3ecc221a
|
43
www/cherokee/files/patch-aa
Normal file
43
www/cherokee/files/patch-aa
Normal file
@ -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);
|
||||
|
6
www/cherokee/pkg-descr
Normal file
6
www/cherokee/pkg-descr
Normal file
@ -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
|
3
www/cherokee/pkg-plist
Normal file
3
www/cherokee/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/cherokee
|
||||
@dirrm www/data
|
||||
@dirrm www
|
Loading…
Reference in New Issue
Block a user