Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2006 11:53:13 +0000 (UTC)
From:      Hugo Leisink <hugo@leisink.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        itetcu@FreeBSD.org
Subject:   ports/105843: New port: www/hiawatha webserver with advanced security features
Message-ID:  <20061125115313.322DC3B8C3@freebsd.lan>
Resent-Message-ID: <200611251230.kAPCUGxr006890@freefall.freebsd.org>

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

>Number:         105843
>Category:       ports
>Synopsis:       New port: www/hiawatha webserver with advanced security features
>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:   Sat Nov 25 12:30:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Hugo Leisink
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD freebsd.lan 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC i386

>Description:
Hiawatha is an advanced and secure webserver for Unix. It has been written with
'being secure' as its main goal. Hiawatha has many security features that no
other webserver has. Besides being very secure, it's also a very fast
webserver. It's twice as fast as Apache for static content. It supports
load-balanced FastCGI, which makes it fast and scalable for serving CGI.

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hiawatha
#	hiawatha/Makefile
#	hiawatha/files
#	hiawatha/files/pkg-message.in
#	hiawatha/files/hiawatha.in
#	hiawatha/distinfo
#	hiawatha/pkg-descr
#	hiawatha/pkg-plist
#
echo c - hiawatha
mkdir -p hiawatha > /dev/null 2>&1
echo x - hiawatha/Makefile
sed 's/^X//' >hiawatha/Makefile << 'END-of-hiawatha/Makefile'
X# New ports collection makefile for:   hiawatha
X# Date created:        24 november 2006
X# Whom:                Hugo Leisink <hugo@leisink.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hiawatha
XPORTVERSION=	5.2
XCATEGORIES=	www
XMASTER_SITES=	http://hiawatha.leisink.org/files/
X
XMAINTAINER=	hugo@leisink.net
XCOMMENT=	An advanced and secure webserver for Unix
X
XMAN1=		hiawatha.1 cgi_wrapper.1
XMANCOMPRESSED=	no
X
XUSE_RC_SUBR=	hiawatha
XSUB_FILES=	pkg-message
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--localstatedir=/var --enable-cache webrootdir=${PREFIX}/www/hiawatha
X
XOPTIONS=	SSL "Compile with SSL support?" On \
X			PHP "Include the CGI version of PHP?" On
X
XCONFIG_FILES=	httpd.conf mimetype.conf throttle.conf cgi_wrapper.conf
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_SSL)
XCONFIGURE_ARGS+=--enable-ssl
X.endif
X
X.if !defined(WITHOUT_PHP)
XWANT_PHP_CGI=	yes
X.endif
X
Xpost-install:
X	@for file in ${CONFIG_FILES} ; do \
X		${CP} -f ${WRKSRC}/etc/hiawatha/$${file} ${PREFIX}/etc/hiawatha/$${file}.sample ; \
X	done
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-hiawatha/Makefile
echo c - hiawatha/files
mkdir -p hiawatha/files > /dev/null 2>&1
echo x - hiawatha/files/pkg-message.in
sed 's/^X//' >hiawatha/files/pkg-message.in << 'END-of-hiawatha/files/pkg-message.in'
X===============================================================================
X
XThe Hiawatha webserver is now installed.
X
XEdit the configuration files in %%PREFIX%%/etc/hiawatha to suit your needs.
X
XAdd hiawatha_enable="YES" to rc.conf and start Hiawatha by running:
X%%PREFIX%%/etc/rc.d/hiawatha.sh start
X
X===============================================================================
END-of-hiawatha/files/pkg-message.in
echo x - hiawatha/files/hiawatha.in
sed 's/^X//' >hiawatha/files/hiawatha.in << 'END-of-hiawatha/files/hiawatha.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: httpd
X# REQUIRE: NETWORKING SERVERS
X# BEFORE: DAEMON
X
X# Add the following line(s) to /etc/rc.conf:
X# hiawatha_enable (bool): Set to "NO" by default, set it to "YES" to enable hiawatha
X
X. %%RC_SUBR%%
X
Xname="hiawatha"
Xrcvar=`set_rcvar`
Xcommand="%%PREFIX%%/sbin/${name}"
Xpidfile="/var/run/${name}.pid"
X
Xload_rc_config $name
X: ${hiawatha_enable="NO"}
Xrun_rc_command "$1"
END-of-hiawatha/files/hiawatha.in
echo x - hiawatha/distinfo
sed 's/^X//' >hiawatha/distinfo << 'END-of-hiawatha/distinfo'
XMD5 (hiawatha-5.2.tar.gz) = 48dc41d30c0c8fa04385705cc18422c5
XSHA256 (hiawatha-5.2.tar.gz) = 3a2620b3c6a0a106a8a39f91d055f98d24e2c6c21037052947ecd8b80194d8a9
XSIZE (hiawatha-5.2.tar.gz) = 182128
END-of-hiawatha/distinfo
echo x - hiawatha/pkg-descr
sed 's/^X//' >hiawatha/pkg-descr << 'END-of-hiawatha/pkg-descr'
XHiawatha is an advanced and secure webserver for Unix. It has been written with
X'being secure' as its main goal. Hiawatha has many security features that no
Xother webserver has. Besides being very secure, it's also a very fast
Xwebserver. It's twice as fast as Apache for static content. It supports
Xload-balanced FastCGI, which makes it fast and scalable for serving CGI.
END-of-hiawatha/pkg-descr
echo x - hiawatha/pkg-plist
sed 's/^X//' >hiawatha/pkg-plist << 'END-of-hiawatha/pkg-plist'
Xsbin/hiawatha
Xsbin/cgi_wrapper
Xsbin/wigwam
Xetc/hiawatha/httpd.conf.sample
Xetc/hiawatha/mimetype.conf.sample
Xetc/hiawatha/throttle.conf.sample
Xetc/hiawatha/cgi_wrapper.conf.sample
END-of-hiawatha/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



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