mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
83b454b156
The lighttpd port installs a sample config file into /usr/local/etc/lighttpd.conf.sample this file should probably include the line: server.event-handler = "freebsd-kqueue" lighttpd is a high performance web server, and it should use kqueue when running on FreeBSD. PR: ports/90354 Submitted by: Mike <mspam@ideaway.net> Approved by: maintainer timeout
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
# New ports collection makefile for: lighttpd
|
|
# Date created: 20 May 2004
|
|
# Whom: k@123.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= lighttpd
|
|
PORTVERSION= 1.4.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.lighttpd.net/download/ \
|
|
http://dl.fkb.wormulon.net/lighttpd/ \
|
|
http://dl.kel.wormulon.net/lighttpd/
|
|
|
|
MAINTAINER= hendrik@scholz.net
|
|
COMMENT= A secure, fast, compliant, and very flexible Web Server
|
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
USE_AUTOTOOLS= autoconf:259 libtool:15
|
|
USE_REINPLACE= yes
|
|
USE_RC_SUBR= lighttpd.sh
|
|
USE_GNOME= lthack
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --libdir=${PREFIX}/lib/lighttpd
|
|
|
|
MAN1= lighttpd.1 spawn-fcgi.1
|
|
|
|
OPTIONS= OPENSSL "Enable SSL support" on \
|
|
OPENLDAP "Enable LDAP support" off \
|
|
MYSQL "Enable MYSQL support" off \
|
|
IPV6 "Enable IPV6 support" on \
|
|
CML "Enable Cache Meta Language support" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(WITHOUT_OPENSSL)
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
CONFIGURE_ARGS+= --with-openssl \
|
|
--with-openssl-includes=${OPENSSLINC} \
|
|
--with-openssl-libs=${OPENSSLLIB}
|
|
.endif
|
|
|
|
.if defined(WITH_OPENLDAP)
|
|
USE_OPENLDAP= yes
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL)
|
|
USE_MYSQL= yes
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
.endif
|
|
|
|
.if defined(WITHOUT_IPV6)
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
.endif
|
|
|
|
.if defined(WITH_CML)
|
|
LIB_DEPENDS+= lua.5:${PORTSDIR}/lang/lua
|
|
CONFIGURE_ARGS+= --with-lua
|
|
CONFIGURE_ENV+= CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L/${LOCALBASE}/lib
|
|
.endif
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${FILESDIR}/lighttpd.conf.sample ${PREFIX}/etc
|
|
.if !exists(${PREFIX}/etc/lighttpd.conf)
|
|
@${INSTALL_DATA} ${FILESDIR}/lighttpd.conf.sample ${PREFIX}/etc/lighttpd.conf
|
|
.endif
|
|
@${LIBTOOL} --finish ${PREFIX}/lib
|
|
|
|
.include <bsd.port.post.mk>
|