Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2003 23:10:50 -0400 (EDT)
From:      Pierre-Luc Lesperance <oksala@videotron.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50764: Update www/cherokee
Message-ID:  <200304100310.h3A3AovY000675@silence.oksala.org>
Resent-Message-ID: <200304100320.h3A3KBsZ085650@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         50764
>Category:       ports
>Synopsis:       Update www/cherokee
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 09 20:20:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Pierre-Luc Lesperance <oksala@videotron.ca>
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD silence.oksala.org 4.8-STABLE FreeBSD 4.8-STABLE #24: Fri Apr 4 13:00:08 EST 2003 silence@silence.oksala.org:/usr/src/sys/compile/oksala i386

>Description:
	Update www/cherokee from 0.2.8 to 0.4.2
>How-To-Repeat:
>Fix:

diff -ruN cherokee.orig/Makefile cherokee/Makefile
--- cherokee.orig/Makefile	Mon Apr  7 18:18:20 2003
+++ cherokee/Makefile	Mon Apr  7 18:24:28 2003
@@ -5,90 +5,51 @@
 # $FreeBSD: ports/www/cherokee/Makefile,v 1.1 2003/04/06 00:30:58 edwin Exp $
 #
 
-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
-.endif
-
-#inet port
-.if defined(PORT)
-PORT=${PORT}
-.else
-PORT=80
-.endif
+CONFIGURE_ARGS= --prefix=${PREFIX}
 
-#index files
-.if defined(INDEX)
-INDEX=${INDEX}
-.else
-INDEX=index.html
+#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
 
-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 -ruN cherokee.orig/distinfo cherokee/distinfo
--- cherokee.orig/distinfo	Mon Apr  7 18:18:20 2003
+++ cherokee/distinfo	Mon Apr  7 12:38:22 2003
@@ -1 +1 @@
-MD5 (Cherokee-0.2.8.tar.gz) = ffefd914d7d242c2e52fc85b3ecc221a
+MD5 (cherokee-0.4.2.tar.gz) = cfebf2348fb7c195db262ea6f2abde62
diff -ruN cherokee.orig/files/patch-aa cherokee/files/patch-aa
--- cherokee.orig/files/patch-aa	Mon Apr  7 18:18:20 2003
+++ cherokee/files/patch-aa	Mon Apr  7 12:59:51 2003
@@ -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 @@
- 
- #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"
+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
+ 
+ ##
+ ## 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 <varargs.h>
+ #include <stdarg.h>
+ 
+ #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__
  
---- 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);
++
+ #include <time.h>
  
+ #include "common.h"
diff -ruN cherokee.orig/files/patch-ab cherokee/files/patch-ab
--- cherokee.orig/files/patch-ab	Wed Dec 31 19:00:00 1969
+++ cherokee/files/patch-ab	Mon Apr  7 13:28:30 2003
@@ -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 -ruN cherokee.orig/pkg-plist cherokee/pkg-plist
--- cherokee.orig/pkg-plist	Mon Apr  7 18:18:20 2003
+++ cherokee/pkg-plist	Mon Apr  7 17:52:08 2003
@@ -1,3 +1,48 @@
 bin/cherokee
+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
 @dirrm www/data
 @dirrm www
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304100310.h3A3AovY000675>