Date: Thu, 20 May 2004 16:11:32 +0200 (CEST) From: Kai Voigt <k@123.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Jan Kneschke <jk@123.org> Subject: ports/66943: New Port: www/lighttpd Message-ID: <200405201411.i4KEBW8c067332@abc.123.org> Resent-Message-ID: <200405201420.i4KEKHm2000850@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 66943 >Category: ports >Synopsis: New Port: www/lighttpd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu May 20 07:20:17 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Kai Voigt >Release: FreeBSD 5.2-CURRENT i386 >Organization: 123.org >Environment: System: FreeBSD abc.123.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed May 5 00:27:32 CEST 2004 admin@abc.123.org:/usr/src/sys/i386/compile/ABC i386 >Description: Port of lighttpd: A secure, fast, compliant, and very flexible Web Server >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: # # lighttpd/ # lighttpd/Makefile # lighttpd/pkg-descr # lighttpd/distinfo # lighttpd/files # lighttpd/files/lighttpd.conf.sample # lighttpd/files/lighttpd.sh.sample # lighttpd/pkg-plist # echo c - lighttpd/ mkdir -p lighttpd/ > /dev/null 2>&1 echo x - lighttpd/Makefile sed 's/^X//' >lighttpd/Makefile << 'END-of-lighttpd/Makefile' X# New ports collection makefile for: lighttpd X# Date created: 20 May 2004 X# Whom: k@123.org X# X# $FreeBSD$ X# X XPORTNAME= lighttpd XPORTVERSION= 1.2.0 XCATEGORIES= www XMASTER_SITES= http://jan.kneschke.de/projects/lighttpd/download/ X XMAINTAINER= k@123.org XCOMMENT= A secure, fast, compliant, and very flexible Web Server X XLIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre X XGNU_CONFIGURE= yes XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} X XMAN1= lighttpd.1 X Xpost-install: X @${INSTALL_DATA} ${FILESDIR}/lighttpd.conf.sample ${PREFIX}/etc/ X @${INSTALL_SCRIPT} ${FILESDIR}/lighttpd.sh.sample ${PREFIX}/etc/rc.d/ X X.include <bsd.port.mk> END-of-lighttpd/Makefile echo x - lighttpd/pkg-descr sed 's/^X//' >lighttpd/pkg-descr << 'END-of-lighttpd/pkg-descr' Xlighttpd a secure, fast, compliant and very flexible web-server which Xhas been optimized for high-performance environments. It has a very Xlow memory footprint compared to other webservers and takes care of Xcpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, XURL-Rewriting and many more) make lighttpd the perfect webserver-software Xfor every server that is suffering load problems. X XWWW: http://jan.kneschke.de/projects/lighttpd/ END-of-lighttpd/pkg-descr echo x - lighttpd/distinfo sed 's/^X//' >lighttpd/distinfo << 'END-of-lighttpd/distinfo' XMD5 (lighttpd-1.2.0.tar.gz) = af871c0a25da730b952c6df6989bd29a XSIZE (lighttpd-1.2.0.tar.gz) = 545131 END-of-lighttpd/distinfo echo c - lighttpd/files mkdir -p lighttpd/files > /dev/null 2>&1 echo x - lighttpd/files/lighttpd.conf.sample sed 's/^X//' >lighttpd/files/lighttpd.conf.sample << 'END-of-lighttpd/files/lighttpd.conf.sample' X# lighttpd configuration file X# X# use a it as base for lighttpd 1.0.0 and above X# X# $Id: lighttpd.conf,v 1.3 2004/02/07 21:15:05 weigon Exp $ X X############ Options you really have to take care of #################### X X## modules to load X# at least mod_access and mod_accesslog should be loaded X# all other module should only be loaded if really neccesary X# - saves some time X# - saves memory Xserver.modules = ( X# "mod_rewrite", X "mod_access", X# "mod_auth", X# "mod_status", X# "mod_fastcgi", X# "mod_simple_vhost", X# "mod_evhost", X# "mod_cgi", X# "mod_compress", X "mod_accesslog" ) X X## a static document-root, for virtual-hosting take look at the X## server.virtual-* options Xserver.document-root = "/var/www/" X X## where to send error-messages to Xserver.errorlog = "/var/log/lighttpd/error.log" X X# files to check for if .../ is requested Xserver.indexfiles = ( "index.php", "index.html", X "index.htm", "default.htm" ) X X# mimetype mapping Xmimetype.assign = ( ".png" => "image/png", X ".jpg" => "image/jpeg", X ".jpeg" => "image/jpeg", X ".gif" => "image/gif", X ".html" => "text/html", X ".htm" => "text/html", X ".pdf" => "application/pdf", X ".swf" => "application/x-shockwave-flash", X ".spl" => "application/futuresplash", X ".txt" => "text/plain", X ".tar.gz" => "application/x-tgz", X ".tgz" => "application/x-tgz", X ".gz" => "application/x-gzip", X ".c" => "text/plain", X ".conf" => "text/plain" ) X X#### accesslog module Xaccesslog.filename = "/var/log/lighttpd/access.log" X X## deny access the file-extensions X# X# ~ is for backupfiles from vi, emacs, joe, ... X# .inc is often used for code includes which should in general not be part X# of the document-root Xurl.access-deny = ( "~", ".inc" ) X X X X######### Options that are good to be but not neccesary to be changed ####### X X## bind to port (default: 80) X#server.port = 81 X X## bind to localhost (default: all interfaces) X#server.bind = "grisu.home.kneschke.de" X X X###### virtual hosts X## X## If you want name-based virtual hosting add the next three settings and load X## mod_simple_vhost X## X## document-root = X## virtual-server-root + virtual-server-default-host + virtual-server-docroot or X## virtual-server-root + http-host + virtual-server-docroot X## X#simple-vhost.server-root = "/home/weigon/wwwroot/servers/" X#simple-vhost.default-host = "grisu.home.kneschke.de" X#simple-vhost.document-root = "/pages/" X X X## X## Format: <errorfile-prefix><status>.html X## -> ..../status-404.html for 'File not found' X#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-" X X## virtual directory listings X#server.dir-listing = "enable" X X## send unhandled HTTP-header headers to error-log X#debug.dump-unknown-headers = "enable" X X### only root can use these options X# X# chroot() to directory (default: no chroot() ) X#server.chroot = "/" X X## change uid to <uid> (default: don't care) Xserver.username = "www-data" X X## change uid to <uid> (default: don't care) Xserver.groupname = "www-data" X Xserver.pid-file = "/var/run/lighttpd.pid" X#### compress module X#compress.cache-dir = "/var/tmp/lighttpd/cache/compress/" X#compress.filetype = ("text/plain", "text/html") X X#### fastcgi module X#fastcgi.server = ( ".php" => X# ( "grisu" => X# ( X# "host" => "192.168.2.10", X# "port" => 1026 X# ) X# ) X# ) X X#### CGI module X#cgi.assign = ( ".pl" => "/usr/bin/perl", X# ".cgi" => "/usr/bin/perl" ) X# X X#### SSL engine X#ssl.engine = "enable" X#ssl.pemfile = "server.pem" X X#### status module X#status.rrd-reports = "enable" X#status.rrd-dir = "/home/weigon/wwwroot/logs/" X X#### auth module X#auth.backend = "plain" X#auth.backend.plain.userfile = "lighttpd.user" X#auth.backend.plain.groupfile = "lighttpd.group" X X#auth.require = ( "/server-status" => X# ( X# "method" => "digest", X# "realm" => "download archiv", X# "require" => "group=www|user=jan|host=192.168.2.10" X# ), X# "/server-info" => X# ( X# "method" => "digest", X# "realm" => "download archiv", X# "require" => "group=www|user=jan|host=192.168.2.10" X# ) X# ) X X#### url handling modules (rewrite, redirect, access) X#url.rewrite = ( "^/$" => "/server-status" ) X#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" ) X END-of-lighttpd/files/lighttpd.conf.sample echo x - lighttpd/files/lighttpd.sh.sample sed 's/^X//' >lighttpd/files/lighttpd.sh.sample << 'END-of-lighttpd/files/lighttpd.sh.sample' X#!/bin/sh X# X# $FreeBSD$ X# X X# PROVIDE: lighttpd X# REQUIRE: DAEMON X# BEFORE: LOGIN X# KEYWORD: FreeBSD shutdown X X# X# Add the following lines to /etc/rc.conf to enable lighttpd: X# X#lighttpd_enable="YES" X# X# See lighttpd(1) for manual X# X X. /etc/rc.subr X Xname=lighttpd Xrcvar=`set_rcvar` X Xcommand=/usr/local/sbin/lighttpd Xpidfile=/var/run/lighttpd.pid Xrequired_files=/usr/local/etc/lighttpd.conf X Xstop_postcmd=stop_postcmd X Xstop_postcmd() X{ X rm -f $pidfile X} X X# set defaults X Xlighttpd_enable=${lighttpd_enable:-"NO"} Xlighttpd_flags=${lighttpd_flags:-""} X Xload_rc_config $name Xrun_rc_command "$1" END-of-lighttpd/files/lighttpd.sh.sample echo x - lighttpd/pkg-plist sed 's/^X//' >lighttpd/pkg-plist << 'END-of-lighttpd/pkg-plist' Xetc/lighttpd.conf.sample Xetc/rc.d/lighttpd.sh.sample Xlib/mod_access.la Xlib/mod_access.so Xlib/mod_accesslog.la Xlib/mod_accesslog.so Xlib/mod_auth.la Xlib/mod_auth.so Xlib/mod_cgi.la Xlib/mod_cgi.so Xlib/mod_compress.la Xlib/mod_compress.so Xlib/mod_evhost.la Xlib/mod_evhost.so Xlib/mod_expire.la Xlib/mod_expire.so Xlib/mod_fastcgi.la Xlib/mod_fastcgi.so Xlib/mod_httptls.la Xlib/mod_httptls.so Xlib/mod_maps.la Xlib/mod_maps.so Xlib/mod_redirect.la Xlib/mod_redirect.so Xlib/mod_rewrite.la Xlib/mod_rewrite.so Xlib/mod_secdownload.la Xlib/mod_secdownload.so Xlib/mod_simple_vhost.la Xlib/mod_simple_vhost.so Xlib/mod_status.la Xlib/mod_status.so Xlib/mod_usertrack.la Xlib/mod_usertrack.so Xsbin/lighttpd END-of-lighttpd/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?200405201411.i4KEBW8c067332>