Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Apr 2007 13:33:31 -0800
From:      "Beech Rintoul" <beech@alaskaparadise.com>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        infofarmer@FreeBSD.org
Subject:   ports/111389: [New Port] www/cherokee-devel - Devel version of the Cherokee httpd
Message-ID:  <1176068011.66537@stargate.alaskaparadise.com>
Resent-Message-ID: <200704082140.l38Le2eM003434@freefall.freebsd.org>

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

>Number:         111389
>Category:       ports
>Synopsis:       [New Port] www/cherokee-devel - Devel version of the Cherokee httpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 08 21:40:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Beech Rintoul
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
Alaska Paradise  
>Environment:


System: FreeBSD 7.0-CURRENT #112: Tue Apr  3 13:17:30 AKDT 2007
    root@stargate.alaskaparadise.com:/usr/obj/usr/src/sys/STARGATE



>Description:


New Port www/cherokee-devel
Development version of the Cherokee webserver.


>How-To-Repeat:





>Fix:


#!/bin/sh
# This is a shell archive
echo x cherokee-devel
mkdir -p cherokee-devel > /dev/null 2>&1
echo x cherokee-devel/files
mkdir -p cherokee-devel/files > /dev/null 2>&1
echo x cherokee-devel/Makefile
sed 's/^X//' > cherokee-devel/Makefile << 'SHAR_END'
X# New ports collection makefile for:	cherokee
X# Date created:			01 Jun 2002
X# Whom:				silence <oksala@videotron.ca>
X#
X# $FreeBSD: ports/www/cherokee/Makefile,v 1.34 2007/02/04 03:15:23 sat Exp $
X#
X
XPORTNAME=	cherokee
XPORTVERSION=	0.6.0b700
XCATEGORIES=	www
XMASTER_SITES=	http://www.cherokee-project.com/download/%SUBDIR%/ \
X		http://freebsd.alaskaparadise.com/source/
XMASTER_SITE_SUBDIR=	${PORTVERSION:R}/0.6.0/
XPKGNAMESUFFIX=	-devel
X
XMAINTAINER=	beech@alaskaparadise.com
XCOMMENT=	An extremely fast and flexible web server
X
XLIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
X
XUSE_GNOME=	gnomehack gnometarget pkgconfig
XUSE_RC_SUBR=	cherokee.sh
XUSE_GCC=	3.4+
XUSE_BISON=	yes
XUSE_GETOPT_LONG=	yes
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
XCONFIGURE_ARGS=	--mandir=${MANPREFIX}/man \
X		--with-wwwroot=${PREFIX}/www
X
XOPTIONS=	GNUTLS	"TLS/SSL Use gnutls"	on \
X		OPENSSL	"TLS/SSL Use openssl"	off \
X		NOTLS	"No TLS/SSL"		off \
X		NOIPV6	"No IPv6"		off
X
XUSE_LDCONFIG=	yes
X
XMAN1=		cget.1 cherokee-config.1 cherokee.1 cherokee_logrotate.1
X
XCPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
XLDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_GNUTLS)
XLIB_DEPENDS+=	gnutls.15:${PORTSDIR}/security/gnutls
XCONFIGURE_ARGS+=	--enable-tls=gnutls
X.endif
X
X.if defined(WITH_OPENSSL)
XCFLAGS+=	-DHAVE_OPENSSL
XCONFIGURE_ARGS+=--enable-tls=openssl
XLDFLAGS+=	-lssl -lcrypto
X.endif
X
X.if defined(WITH_NOTLS)
XCONFIGURE_ARGS+=--disable-tls
X.endif
X
X.if defined(WITH_NOIPV6)
XCONFIGURE_ARGS+=--disable-ipv6
X.endif
X
Xpost-patch:
X	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
X		's|@mkdir_p@|${MKDIR} --|g'
X
Xpre-build:
X.for file in cherokee.conf mods-ssl
X	@cd ${BUILD_WRKSRC} && ${SED} -e \
X		's:%sysconfdir%:${PREFIX}/etc:g ; \
X		 s:%datadir%:${PREFIX}/share:g ; \
X		 s:%wwwroot%:${PREFIX}/www:g ; \
X		 s:%prefix%:${PREFIX}:g' < ${file}.sample.pre > ${file}.sample
X.endfor
X
Xpre-install:
X	@if [ ! -f ${PREFIX}/www ]; then \
X		${MKDIR} ${PREFIX}/www;\
X	fi
X	@if [ ! -f ${PREFIX}/www/data ] ; then \
X		${MKDIR} ${PREFIX}/www/data;\
X	fi
X	@${ECHO_MSG} " `pwd` "
X
X.include <bsd.port.post.mk>
SHAR_END
echo x cherokee-devel/distinfo
sed 's/^X//' > cherokee-devel/distinfo << 'SHAR_END'
XMD5 (cherokee-0.6.0b700.tar.gz) = bba3567da2802bef8a76694d8e29ef47
XSHA256 (cherokee-0.6.0b700.tar.gz) = 3fbad3ce1f3e444d4067555bdd0065267c75f71b7e45df2a1e057459edd9f008
XSIZE (cherokee-0.6.0b700.tar.gz) = 1025738
SHAR_END
echo x cherokee-devel/pkg-descr
sed 's/^X//' > cherokee-devel/pkg-descr << 'SHAR_END'
XCherokee is a very fast, flexible, and lightweight Web server. It is
Ximplemented entirely in C, and has no dependencies beyond a standard C
Xlibrary. It is embeddable and extensible with plug-ins. It supports on-the-fly
Xconfiguration by reading files or strings, TLS/SSL (via GNUTLS or OpenSSL),
Xvirtual hosts, authentication, cache friendly features, PHP, custom error
Xmanagement, and much more.
X
XWWW: http://www.cherokee-project.com/
SHAR_END
echo x cherokee-devel/pkg-plist
sed 's/^X//' > cherokee-devel/pkg-plist << 'SHAR_END'
Xbin/cget
Xbin/cherokee-config
Xbin/cherokee-panic
Xbin/cherokee_logrotate
Xetc/cherokee/cherokee.conf
Xetc/cherokee/cherokee.conf.perf_sample
Xetc/cherokee/mime.compression.types
Xetc/cherokee/mime.types
Xetc/cherokee/mods-available/icons
Xetc/cherokee/mods-available/ssl
Xetc/cherokee/mods-enabled/icons
Xinclude/cherokee/admin_client.h
Xinclude/cherokee/buffer.h
Xinclude/cherokee/cherokee-config.h
Xinclude/cherokee/cherokee.h
Xinclude/cherokee/common.h
Xinclude/cherokee/connection.h
Xinclude/cherokee/connection_info.h
Xinclude/cherokee/downloader.h
Xinclude/cherokee/encoder.h
Xinclude/cherokee/fdpoll.h
Xinclude/cherokee/handler.h
Xinclude/cherokee/header.h
Xinclude/cherokee/http.h
Xinclude/cherokee/list.h
Xinclude/cherokee/logger.h
Xinclude/cherokee/macros.h
Xinclude/cherokee/mime.h
Xinclude/cherokee/mime_entry.h
Xinclude/cherokee/module.h
Xinclude/cherokee/nonce.h
Xinclude/cherokee/plugin.h
Xinclude/cherokee/plugin_loader.h
Xinclude/cherokee/resolv_cache.h
Xinclude/cherokee/server.h
Xinclude/cherokee/table.h
Xinclude/cherokee/url.h
Xinclude/cherokee/util.h
Xinclude/cherokee/version.h
Xlib/cherokee/libplugin_admin.a
Xlib/cherokee/libplugin_admin.la
Xlib/cherokee/libplugin_admin.so
Xlib/cherokee/libplugin_cgi.a
Xlib/cherokee/libplugin_cgi.la
Xlib/cherokee/libplugin_cgi.so
Xlib/cherokee/libplugin_combined.a
Xlib/cherokee/libplugin_combined.la
Xlib/cherokee/libplugin_combined.so
Xlib/cherokee/libplugin_common.a
Xlib/cherokee/libplugin_common.la
Xlib/cherokee/libplugin_common.so
Xlib/cherokee/libplugin_dirlist.a
Xlib/cherokee/libplugin_dirlist.la
Xlib/cherokee/libplugin_dirlist.so
Xlib/cherokee/libplugin_error_redir.a
Xlib/cherokee/libplugin_error_redir.la
Xlib/cherokee/libplugin_error_redir.so
Xlib/cherokee/libplugin_fastcgi.a
Xlib/cherokee/libplugin_fastcgi.la
Xlib/cherokee/libplugin_fastcgi.so
Xlib/cherokee/libplugin_fcgi.a
Xlib/cherokee/libplugin_fcgi.la
Xlib/cherokee/libplugin_fcgi.so
Xlib/cherokee/libplugin_file.a
Xlib/cherokee/libplugin_file.la
Xlib/cherokee/libplugin_file.so
Xlib/cherokee/libplugin_gzip.a
Xlib/cherokee/libplugin_gzip.la
Xlib/cherokee/libplugin_gzip.so
Xlib/cherokee/libplugin_htdigest.a
Xlib/cherokee/libplugin_htdigest.la
Xlib/cherokee/libplugin_htdigest.so
Xlib/cherokee/libplugin_htpasswd.a
Xlib/cherokee/libplugin_htpasswd.la
Xlib/cherokee/libplugin_htpasswd.so
Xlib/cherokee/libplugin_ldap.a
Xlib/cherokee/libplugin_ldap.la
Xlib/cherokee/libplugin_ldap.so
Xlib/cherokee/libplugin_mirror.a
Xlib/cherokee/libplugin_mirror.la
Xlib/cherokee/libplugin_mirror.so
Xlib/cherokee/libplugin_mysql.a
Xlib/cherokee/libplugin_mysql.la
Xlib/cherokee/libplugin_mysql.so
Xlib/cherokee/libplugin_ncsa.a
Xlib/cherokee/libplugin_ncsa.la
Xlib/cherokee/libplugin_ncsa.so
Xlib/cherokee/libplugin_nn.a
Xlib/cherokee/libplugin_nn.la
Xlib/cherokee/libplugin_nn.so
Xlib/cherokee/libplugin_pam.a
Xlib/cherokee/libplugin_pam.la
Xlib/cherokee/libplugin_pam.so
Xlib/cherokee/libplugin_phpcgi.a
Xlib/cherokee/libplugin_phpcgi.la
Xlib/cherokee/libplugin_phpcgi.so
Xlib/cherokee/libplugin_plain.a
Xlib/cherokee/libplugin_plain.la
Xlib/cherokee/libplugin_plain.so
Xlib/cherokee/libplugin_proxy.a
Xlib/cherokee/libplugin_proxy.la
Xlib/cherokee/libplugin_proxy.so
Xlib/cherokee/libplugin_redir.a
Xlib/cherokee/libplugin_redir.la
Xlib/cherokee/libplugin_redir.so
Xlib/cherokee/libplugin_round_robin.a
Xlib/cherokee/libplugin_round_robin.la
Xlib/cherokee/libplugin_round_robin.so
Xlib/cherokee/libplugin_scgi.a
Xlib/cherokee/libplugin_scgi.la
Xlib/cherokee/libplugin_scgi.so
Xlib/cherokee/libplugin_server_info.a
Xlib/cherokee/libplugin_server_info.la
Xlib/cherokee/libplugin_server_info.so
Xlib/cherokee/libplugin_w3c.a
Xlib/cherokee/libplugin_w3c.la
Xlib/cherokee/libplugin_w3c.so
Xlib/libcherokee-base.a
Xlib/libcherokee-base.la
Xlib/libcherokee-base.so
Xlib/libcherokee-base.so.0
Xlib/libcherokee-client.a
Xlib/libcherokee-client.la
Xlib/libcherokee-client.so
Xlib/libcherokee-client.so.0
Xlib/libcherokee-config.a
Xlib/libcherokee-config.la
Xlib/libcherokee-config.so
Xlib/libcherokee-config.so.0
Xlib/libcherokee-server.a
Xlib/libcherokee-server.la
Xlib/libcherokee-server.so
Xlib/libcherokee-server.so.0
Xlibdata/pkgconfig/cherokee.pc
Xsbin/cherokee
Xsbin/cherokee-admin
Xshare/aclocal/cherokee.m4
X%%DATADIR%%/deps/combined.deps
X%%DATADIR%%/deps/common.deps
X%%DATADIR%%/deps/error_redir.deps
X%%DATADIR%%/deps/nn.deps
X%%DATADIR%%/deps/phpcgi.deps
X%%DATADIR%%/icons/back.png
X%%DATADIR%%/icons/binary.png
X%%DATADIR%%/icons/blank.png
X%%DATADIR%%/icons/bomb.png
X%%DATADIR%%/icons/compressed.png
X%%DATADIR%%/icons/folder.png
X%%DATADIR%%/icons/image.png
X%%DATADIR%%/icons/iso.png
X%%DATADIR%%/icons/java.png
X%%DATADIR%%/icons/movie.png
X%%DATADIR%%/icons/pdf.png
X%%DATADIR%%/icons/ps.png
X%%DATADIR%%/icons/readme.png
X%%DATADIR%%/icons/script.png
X%%DATADIR%%/icons/sound.png
X%%DATADIR%%/icons/tex.png
X%%DATADIR%%/icons/text.png
X%%DATADIR%%/icons/unknown.png
X%%DATADIR%%/mime_types.txt
X%%DATADIR%%/themes/default/cherokee-logo.png
X%%DATADIR%%/themes/default/entry.html
X%%DATADIR%%/themes/default/footer.html
X%%DATADIR%%/themes/default/header.html
X%%DATADIR%%/themes/default/theme.css
Xwww/images/cherokee-logo.png
Xwww/images/default-bg.png
Xwww/images/powered_by_cherokee.png
Xwww/index.html
X@dirrm %%DATADIR%%/themes/default
X@dirrm %%DATADIR%%/themes
X@dirrm %%DATADIR%%/icons
X@dirrm %%DATADIR%%/deps
X@dirrm %%DATADIR%%
X@dirrm lib/cherokee
X@dirrm include/cherokee
X@dirrm etc/cherokee/ssl
X@dirrm etc/cherokee/sites-enabled
X@dirrm etc/cherokee/sites-available
X@dirrm etc/cherokee/mods-enabled
X@dirrm etc/cherokee/mods-available
X@dirrmtry etc/cherokee
X@dirrmtry www/images
X@dirrmtry www/data
SHAR_END
echo x cherokee-devel/files/patch-cherokee-util.h
sed 's/^X//' > cherokee-devel/files/patch-cherokee-util.h << 'SHAR_END'
X--- cherokee/util.h.orig	Wed Sep 13 22:13:07 2006
X+++ cherokee/util.h	Wed Sep 13 22:15:20 2006
X@@ -31,6 +31,14 @@
X 
X #include <cherokee/common.h>
X 
X+#ifdef HAVE_SYS_TYPES_H
X+#include <sys/types.h>
X+#endif
X+
X+#ifdef HAVE_SYS_SOCKET_H
X+# include <sys/socket.h>
X+#endif
X+
X #include <time.h>
X #include <dirent.h>
X 
SHAR_END
echo x cherokee-devel/files/patch-Makefile.in
sed 's/^X//' > cherokee-devel/files/patch-Makefile.in << 'SHAR_END'
X--- Makefile.in.orig	Sat Apr  7 22:43:45 2007
X+++ Makefile.in	Sat Apr  7 22:57:30 2007
X@@ -962,9 +962,6 @@
X 	else \
X 		$(INSTALL_DATA) $(top_srcdir)/mime.compression.types.sample $(DESTDIR)$(cherokeeconfdir)/mime.compression.types; \
X 	fi
X-	@if test -d $(DESTDIR)$(sysconfdir)/pam.d && test ! -d $(DESTDIR)$(sysconfdir)/pam.d/cherokee ; then \
X-		$(INSTALL_DATA) $(top_srcdir)/pam.d_cherokee $(DESTDIR)$(sysconfdir)/pam.d/cherokee; \
X-	fi
X 	@if test -f $(DESTDIR)$(cherokeeconfdir)/mods-available/icons ; then \
X 		echo "$@ will not overwrite existing $(DESTDIR)$(cherokeeconfdir)/mods-available/icons"; \
X 	else \
SHAR_END
echo x cherokee-devel/files/patch-cherokee-handler_cgi_base.c
sed 's/^X//' > cherokee-devel/files/patch-cherokee-handler_cgi_base.c << 'SHAR_END'
X--- cherokee/handler_cgi_base.c.orig	Mon Dec 11 11:44:26 2006
X+++ cherokee/handler_cgi_base.c	Thu Dec 14 10:09:38 2006
X@@ -21,7 +21,8 @@
X  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
X  * USA
X  */
X-
X+#include <stdlib.h>
X+#include <limits.h>
X #include "common-internal.h"
X #include "handler_cgi_base.h"
X 
SHAR_END
echo x cherokee-devel/files/cherokee.sh.in
sed 's/^X//' > cherokee-devel/files/cherokee.sh.in << 'SHAR_END'
X#!/bin/sh
X#
X# $FreeBSD: ports/www/cherokee/files/cherokee.sh.in,v 1.2 2006/07/19 18:55:37 rafan Exp $
X#
X# PROVIDE: cherokee
X# REQUIRE: %%REQUIRE%%
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf to enable cherokee:
X#
X# cherokee_enable (bool):	Set it to "YES" to enable cherokee
X#				Default is "NO".
X# cherokee_conf (path):		Set full path to config file.
X#				Default is "%%PREFIX%%/etc/cherokee/cherokee.conf".
X#
X
X. %%RC_SUBR%%
X
Xname="cherokee"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
X: ${cherokee_enable="NO"}
X: ${cherokee_conf="%%PREFIX%%/etc/cherokee/cherokee.conf"}
X
Xcommand=%%PREFIX%%/sbin/cherokee
Xcommand_args="-C ${cherokee_conf} -b"
Xpidfile=/var/run/cherokee.pid
Xrequired_files=${cherokee_conf}
Xstop_postcmd=stop_postcmd
Xrestart_precmd="checkconfig"
X
Xcheckconfig()
X{
X	echo "Performing sanity check on ${name} configuration:"
X	eval "${command} ${command_args} -t"
X}
X
Xstop_postcmd()
X{
X	rm -f ${pidfile}
X}
X
Xrun_rc_command "$1"
SHAR_END
echo x cherokee-devel/files/patch-cherokee-connection.c
sed 's/^X//' > cherokee-devel/files/patch-cherokee-connection.c << 'SHAR_END'
X--- cherokee/connection.c.orig	Mon Dec 11 11:44:26 2006
X+++ cherokee/connection.c	Thu Dec 14 09:50:08 2006
X@@ -32,6 +32,7 @@
X #include <fcntl.h>
X #include <time.h>
X #include <sys/types.h>
X+#include <limits.h>
X 
X #ifdef HAVE_PWD_H
X # include <pwd.h>
SHAR_END
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



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