summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorjlam <jlam>2005-09-04 06:37:05 +0000
committerjlam <jlam>2005-09-04 06:37:05 +0000
commit2e4e57ed822dbda2a06596a0c2f58323a6b8e039 (patch)
treec28c88f66eeedcbbbca4019650bf6f96c18e7f57 /www
parentf3f105880aa298bff66f98f7a336dfbda84fe43b (diff)
downloadpkgsrc-2e4e57ed822dbda2a06596a0c2f58323a6b8e039.tar.gz
Initial import of lighttpd-1.4.3 as www/lighttpd.
LightTPD is a secure, fast, compliant, and very flexible web-server which designed and optimized for for high-performance environments. With a small memory footprint compared to other webservers, effective management of the CPU load, and advanced feature set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more), LightTPD is the perfect solution for every server that is suffering load problems. This is loosely based on the lighttpd package from pkgsrc-wip by Piotr Stolc <socrtp@soclab.eu.org>.
Diffstat (limited to 'www')
-rw-r--r--www/lighttpd/DESCR6
-rw-r--r--www/lighttpd/Makefile45
-rw-r--r--www/lighttpd/PLIST81
-rw-r--r--www/lighttpd/distinfo6
-rw-r--r--www/lighttpd/files/lighttpd.sh19
-rw-r--r--www/lighttpd/options.mk82
-rw-r--r--www/lighttpd/patches/patch-aa13
7 files changed, 252 insertions, 0 deletions
diff --git a/www/lighttpd/DESCR b/www/lighttpd/DESCR
new file mode 100644
index 00000000000..1473624890e
--- /dev/null
+++ b/www/lighttpd/DESCR
@@ -0,0 +1,6 @@
+LightTPD is a secure, fast, compliant, and very flexible web-server
+which designed and optimized for for high-performance environments.
+With a small memory footprint compared to other webservers, effective
+management of the CPU load, and advanced feature set (FastCGI, CGI,
+Auth, Output-Compression, URL-Rewriting and many more), LightTPD is
+the perfect solution for every server that is suffering load problems.
diff --git a/www/lighttpd/Makefile b/www/lighttpd/Makefile
new file mode 100644
index 00000000000..2a5a9fefa94
--- /dev/null
+++ b/www/lighttpd/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/09/04 06:37:05 jlam Exp $
+
+DISTNAME= lighttpd-1.4.3
+CATEGORIES= www
+MASTER_SITES= http://www.lighttpd.net/download/
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.lighttpd.net/
+COMMENT= fast, light-footprint HTTP server
+
+USE_LIBTOOL= yes
+SHLIBTOOL_OVERRIDE= libtool
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/${PKGBASE}
+CONFIGURE_ARGS+= --with-pcre
+
+DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+PKG_SYSCONFSUBDIR= ${PKGBASE}
+
+USE_PKGINSTALL= yes
+RCD_SCRIPTS= lighttpd
+CONF_FILES= ${EGDIR}/lighttpd.conf ${PKG_SYSCONFDIR}/lighttpd.conf
+
+.include "options.mk"
+
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ cd ${WRKSRC}; for f in doc/*.css doc/*.dot doc/*.txt; do \
+ ${INSTALL_DATA} $$f ${DOCDIR}; \
+ done
+ for f in AUTHORS COPYING ChangeLog NEWS README; do \
+ ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCDIR}; \
+ done
+ for f in lighttpd.conf rrdtool-graph.sh spawn-php.sh; do \
+ ${INSTALL_DATA} ${WRKSRC}/doc/$$f ${EGDIR}; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/lighttpd/PLIST b/www/lighttpd/PLIST
new file mode 100644
index 00000000000..0374e56e8af
--- /dev/null
+++ b/www/lighttpd/PLIST
@@ -0,0 +1,81 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/09/04 06:37:05 jlam Exp $
+bin/spawn-fcgi
+lib/lighttpd/mod_access.la
+lib/lighttpd/mod_accesslog.la
+lib/lighttpd/mod_alias.la
+lib/lighttpd/mod_auth.la
+lib/lighttpd/mod_cgi.la
+lib/lighttpd/mod_cml.la
+lib/lighttpd/mod_compress.la
+lib/lighttpd/mod_dirlisting.la
+lib/lighttpd/mod_evhost.la
+lib/lighttpd/mod_expire.la
+lib/lighttpd/mod_fastcgi.la
+lib/lighttpd/mod_indexfile.la
+lib/lighttpd/mod_mysql_vhost.la
+lib/lighttpd/mod_proxy.la
+lib/lighttpd/mod_redirect.la
+lib/lighttpd/mod_rewrite.la
+lib/lighttpd/mod_rrdtool.la
+lib/lighttpd/mod_scgi.la
+lib/lighttpd/mod_secdownload.la
+lib/lighttpd/mod_setenv.la
+lib/lighttpd/mod_simple_vhost.la
+lib/lighttpd/mod_ssi.la
+lib/lighttpd/mod_staticfile.la
+lib/lighttpd/mod_status.la
+lib/lighttpd/mod_trigger_b4_dl.la
+lib/lighttpd/mod_userdir.la
+lib/lighttpd/mod_usertrack.la
+lib/lighttpd/mod_webdav.la
+man/man1/lighttpd.1
+man/man1/spawn-fcgi.1
+sbin/lighttpd
+share/doc/lighttpd/AUTHORS
+share/doc/lighttpd/COPYING
+share/doc/lighttpd/ChangeLog
+share/doc/lighttpd/NEWS
+share/doc/lighttpd/README
+share/doc/lighttpd/access.txt
+share/doc/lighttpd/accesslog.txt
+share/doc/lighttpd/alias.txt
+share/doc/lighttpd/authentication.txt
+share/doc/lighttpd/cgi.txt
+share/doc/lighttpd/cml.txt
+share/doc/lighttpd/compress.txt
+share/doc/lighttpd/configuration.txt
+share/doc/lighttpd/fastcgi-state.dot
+share/doc/lighttpd/fastcgi-state.txt
+share/doc/lighttpd/fastcgi.txt
+share/doc/lighttpd/features.txt
+share/doc/lighttpd/mysqlvhost.txt
+share/doc/lighttpd/newstyle.css
+share/doc/lighttpd/oldstyle.css
+share/doc/lighttpd/performance.txt
+share/doc/lighttpd/plugins.txt
+share/doc/lighttpd/proxy.txt
+share/doc/lighttpd/redirect.txt
+share/doc/lighttpd/rewrite.txt
+share/doc/lighttpd/rrdtool.txt
+share/doc/lighttpd/scgi.txt
+share/doc/lighttpd/secdownload.txt
+share/doc/lighttpd/security.txt
+share/doc/lighttpd/setenv.txt
+share/doc/lighttpd/simple-vhost.txt
+share/doc/lighttpd/skeleton.txt
+share/doc/lighttpd/ssi.txt
+share/doc/lighttpd/ssl.txt
+share/doc/lighttpd/state.dot
+share/doc/lighttpd/state.txt
+share/doc/lighttpd/status.txt
+share/doc/lighttpd/traffic-shaping.txt
+share/doc/lighttpd/trigger_b4_dl.txt
+share/doc/lighttpd/userdir.txt
+share/doc/lighttpd/webdav.txt
+share/examples/lighttpd/lighttpd.conf
+share/examples/lighttpd/rrdtool-graph.sh
+share/examples/lighttpd/spawn-php.sh
+share/examples/rc.d/lighttpd
+@dirrm share/examples/lighttpd
+@dirrm share/doc/lighttpd
+@dirrm lib/lighttpd
diff --git a/www/lighttpd/distinfo b/www/lighttpd/distinfo
new file mode 100644
index 00000000000..5a818a58d99
--- /dev/null
+++ b/www/lighttpd/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/09/04 06:37:05 jlam Exp $
+
+SHA1 (lighttpd-1.4.3.tar.gz) = 67bff414ff2c2ac025565330b57514980adf734c
+RMD160 (lighttpd-1.4.3.tar.gz) = aac19b2576f8c30c446013d27e2bcc8513a19cbc
+Size (lighttpd-1.4.3.tar.gz) = 765903 bytes
+SHA1 (patch-aa) = eecd1782e720028b112389322ecdea2f789d14f2
diff --git a/www/lighttpd/files/lighttpd.sh b/www/lighttpd/files/lighttpd.sh
new file mode 100644
index 00000000000..f7309206149
--- /dev/null
+++ b/www/lighttpd/files/lighttpd.sh
@@ -0,0 +1,19 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: lighttpd.sh,v 1.1.1.1 2005/09/04 06:37:05 jlam Exp $
+#
+# PROVIDE: lighttpd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="lighttpd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+conf_file="@PKG_SYSCONFDIR@/${name}.conf"
+required_files="${conf_file}"
+extra_commands="reload"
+command_args="-f ${conf_file}"
+
+load_rc_config $name
+run_rc_command $1
diff --git a/www/lighttpd/options.mk b/www/lighttpd/options.mk
new file mode 100644
index 00000000000..057ea94c13a
--- /dev/null
+++ b/www/lighttpd/options.mk
@@ -0,0 +1,82 @@
+# $NetBSD: options.mk,v 1.1.1.1 2005/09/04 06:37:05 jlam Exp $
+
+PKG_OPTIONS_VAR = PKG_OPTIONS.lighttpd
+PKG_SUPPORTED_OPTIONS= bzip fam gdbm inet6 ldap lua mysql ssl
+PKG_SUGGESTED_OPTIONS= inet6 ssl
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Allow using bzip as a compression method in the "compress" module.
+###
+.if !empty(PKG_OPTIONS:Mbzip)
+. include "../../archivers/bzip2/buildlink3.mk"
+CONFIGURE_ARGS+= --with-bzip2
+.endif
+
+###
+### Use FAM to optimize number of stat() syscalls used.
+###
+.if !empty(PKG_OPTIONS:Mfam)
+. include "../../mk/fam.buildlink3.mk"
+CONFIGURE_ARGS+= --with-fam
+.endif
+
+###
+### Support using GDBM for storage in the "trigger before download" module.
+###
+.if !empty(PKG_OPTIONS:Mgdbm)
+. include "../../databases/gdbm/buildlink3.mk"
+CONFIGURE_ARGS+= --with-gdbm
+.endif
+
+###
+### IPv6 support.
+###
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
+###
+### Allow using LDAP for "basic" authentication.
+###
+.if !empty(PKG_OPTIONS:Mldap)
+. include "../../databases/openldap/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ldap
+.endif
+
+###
+### Support enabling the Cache Meta Language module with the Lua engine.
+###
+.if !empty(PKG_OPTIONS:Mlua)
+. include "../../lang/lua/buildlink3.mk"
+CONFIGURE_ARGS+= --with-lua
+.endif
+
+###
+### Support using memcached as an in-memory caching system for the
+### "trigger before download" and CML modules.
+###
+#.if !empty(PKG_OPTIONS:Mmemcache)
+#. include "../../devel/libmemcache/buildlink3.mk"
+#CONFIGURE_ARGS+= --with-memcache
+#.endif
+
+###
+### Allow using MySQL for virtual host configuration.
+###
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
+MYSQL_CONFIG?= ${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config
+CONFIGURE_ARGS+= --with-mysql=${MYSQL_CONFIG}
+.endif
+
+###
+### HTTPS support
+###
+.if !empty(PKG_OPTIONS:Mssl)
+. include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+= --with-openssl=${SSLBASE}
+.endif
diff --git a/www/lighttpd/patches/patch-aa b/www/lighttpd/patches/patch-aa
new file mode 100644
index 00000000000..f6bc870a66b
--- /dev/null
+++ b/www/lighttpd/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/09/04 06:37:05 jlam Exp $
+
+--- configure.orig Wed Aug 31 11:33:24 2005
++++ configure
+@@ -26112,7 +26112,7 @@ if test `eval echo '${'$as_ac_Header'}'`
+ #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+ _ACEOF
+
+- LUA_LIB=-llua -llualib
++ LUA_LIB="-llua -llualib"
+
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_LUA 1