From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/lighttpd/Config.in | 113 +++++++++++ package/lighttpd/Makefile | 104 ++++++++++ package/lighttpd/files/lighttpd.conf | 217 +++++++++++++++++++++ package/lighttpd/files/lighttpd.init | 25 +++ .../lighttpd/ipkg/lighttpd-mod-accesslog.control | 5 + package/lighttpd/ipkg/lighttpd-mod-alias.control | 5 + package/lighttpd/ipkg/lighttpd-mod-auth.control | 5 + package/lighttpd/ipkg/lighttpd-mod-cgi.control | 5 + package/lighttpd/ipkg/lighttpd-mod-evasive.control | 5 + package/lighttpd/ipkg/lighttpd-mod-expire.control | 5 + package/lighttpd/ipkg/lighttpd-mod-fastcgi.control | 5 + package/lighttpd/ipkg/lighttpd-mod-proxy.control | 5 + .../lighttpd/ipkg/lighttpd-mod-redirect.control | 5 + package/lighttpd/ipkg/lighttpd-mod-rewrite.control | 5 + package/lighttpd/ipkg/lighttpd-mod-setenv.control | 5 + .../ipkg/lighttpd-mod-simple-vhost.control | 5 + package/lighttpd/ipkg/lighttpd-mod-ssi.control | 5 + package/lighttpd/ipkg/lighttpd-mod-status.control | 5 + .../lighttpd/ipkg/lighttpd-mod-usertrack.control | 5 + package/lighttpd/ipkg/lighttpd-mod-webdav.control | 5 + package/lighttpd/ipkg/lighttpd.conffiles | 1 + package/lighttpd/ipkg/lighttpd.control | 5 + package/lighttpd/ipkg/lighttpd.postinst | 4 + package/lighttpd/patches/500-configure_cross.patch | 24 +++ 24 files changed, 573 insertions(+) create mode 100644 package/lighttpd/Config.in create mode 100644 package/lighttpd/Makefile create mode 100644 package/lighttpd/files/lighttpd.conf create mode 100644 package/lighttpd/files/lighttpd.init create mode 100644 package/lighttpd/ipkg/lighttpd-mod-accesslog.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-alias.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-auth.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-cgi.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-evasive.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-expire.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-fastcgi.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-proxy.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-redirect.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-rewrite.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-setenv.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-simple-vhost.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-ssi.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-status.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-usertrack.control create mode 100644 package/lighttpd/ipkg/lighttpd-mod-webdav.control create mode 100644 package/lighttpd/ipkg/lighttpd.conffiles create mode 100644 package/lighttpd/ipkg/lighttpd.control create mode 100644 package/lighttpd/ipkg/lighttpd.postinst create mode 100644 package/lighttpd/patches/500-configure_cross.patch (limited to 'package/lighttpd') diff --git a/package/lighttpd/Config.in b/package/lighttpd/Config.in new file mode 100644 index 000000000..6eea65df2 --- /dev/null +++ b/package/lighttpd/Config.in @@ -0,0 +1,113 @@ +config ADK_PACKAGE_LIGHTTPD + prompt "lighttpd.......................... Flexible and lightweight web server" + tristate + default n + select ADK_PACKAGE_LIBPCRE + select ADK_COMPILE_SQLITE + select ADK_PACKAGE_LIBXML2 + help + A flexible and lightweight web server. + + http://www.lighttpd.net/ + +config ADK_COMPILE_LIGHTTPD_WITH_OPENSSL + bool " Use OpenSSL for https support" + default y + depends on ADK_PACKAGE_LIGHTTPD + select ADK_PACKAGE_LIBOPENSSL + +config ADK_PACKAGE_LIGHTTPD_MOD_ACCESSLOG + prompt " lighttpd-mod-accesslog........ Access logging module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_ALIAS + prompt " lighttpd-mod-alias............ Directory alias module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_AUTH + prompt " lighttpd-mod-auth............. Authentication module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_CGI + prompt " lighttpd-mod-cgi.............. CGI module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_EVASIVE + prompt " lighttpd-mod-evasive.......... Evasive module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_EXPIRE + prompt " lighttpd-mod-expire........... Expire module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_FASTCGI + prompt " lighttpd-mod-fastcgi.......... FastCGI module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_PROXY + prompt " lighttpd-mod-proxy............ Proxy module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_REDIRECT + prompt " lighttpd-mod-redirect......... URL redirection module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_REWRITE + prompt " lighttpd-mod-rewrite.......... URL rewriting module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_SETENV + prompt " lighttpd-mod-setenv........... Environment variable setting module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_SIMPLE_VHOST + prompt " lighttpd-mod-simple-vhost..... Simple virtual hosting module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_SSI + prompt " lighttpd-mod-ssi.............. SSI module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_STATUS + prompt " lighttpd-mod-status........... Server status display module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_USERTRACK + prompt " lighttpd-mod-usertrack........ User tracking module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD + +config ADK_PACKAGE_LIGHTTPD_MOD_WEBDAV + prompt " lighttpd-mod-webdav........... webdav module" + tristate + default n + depends ADK_PACKAGE_LIGHTTPD diff --git a/package/lighttpd/Makefile b/package/lighttpd/Makefile new file mode 100644 index 000000000..7cd2f6c29 --- /dev/null +++ b/package/lighttpd/Makefile @@ -0,0 +1,104 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= lighttpd +PKG_VERSION:= 1.4.22 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 949c33a81e83f7718a47280bef21b90c +MASTER_SITES:= http://www.lighttpd.net/download/ + +include $(TOPDIR)/mk/package.mk + +define PKG_mod_template + +INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install + +${2}-install: + ${INSTALL_DIR} $$(IDIR_$(1))/usr/lib/lighttpd + ${INSTALL_BIN} $(WRKINST)/usr/lib/lighttpd/mod_$(2).so $$(IDIR_$(1))/usr/lib/lighttpd/ + +endef + +$(eval $(call PKG_template,LIGHTTPD,lighttpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_ACCESSLOG,lighttpd-mod-accesslog,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_ALIAS,lighttpd-mod-alias,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_AUTH,lighttpd-mod-auth,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_CGI,lighttpd-mod-cgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_EVASIVE,lighttpd-mod-evasive,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_EXPIRE,lighttpd-mod-expire,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_FASTCGI,lighttpd-mod-fastcgi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_PROXY,lighttpd-mod-proxy,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_REDIRECT,lighttpd-mod-redirect,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_REWRITE,lighttpd-mod-rewrite,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_SETENV,lighttpd-mod-setenv,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_SIMPLE_VHOST,lighttpd-mod-simple-vhost,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_SSI,lighttpd-mod-ssi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_STATUS,lighttpd-mod-status,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_USERTRACK,lighttpd-mod-usertrack,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) +$(eval $(call PKG_template,LIGHTTPD_MOD_WEBDAV,lighttpd-mod-webdav,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) + +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_ACCESSLOG,accesslog)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_ALIAS,alias)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_AUTH,auth)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_CGI,cgi)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_EVASIVE,evasive)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_EXPIRE,expire)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_FASTCGI,fastcgi)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_PROXY,proxy)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_REDIRECT,redirect)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_REWRITE,rewrite)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_SETENV,setenv)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_SIMPLE_VHOST,simple_vhost)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_SSI,ssi)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_STATUS,status)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_USERTRACK,usertrack)) +$(eval $(call PKG_mod_template,LIGHTTPD_MOD_WEBDAV,webdav)) + +TCPPFLAGS+= -I$(STAGING_DIR)/usr/include/libxml2 +CONFIGURE_STYLE= gnu +CONFIGURE_ENV+= PCRE_LIB="-lpcre" +CONFIGURE_ARGS+= --without-openssl \ + --libdir=/usr/lib/lighttpd \ + --sysconfdir=/etc/lighttpd \ + --without-attr \ + --without-bzip2 \ + --without-fam \ + --without-gdbm \ + --without-ldap \ + --without-lua \ + --without-memcache \ + --without-mysql \ + --with-pcre \ + --without-valgrind \ + --with-webdav-props +BUILD_STYLE= auto +INSTALL_STYLE= auto +ifeq (${ADK_COMPILE_LIGHTTPD_WITH_OPENSSL},y) +CONFIGURE_ARGS+= --with-openssl='${STAGING_DIR}/usr' +endif + +post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m} + install -m0755 -d $(IDIR_LIGHTTPD)/etc + install -m0644 ./files/lighttpd.conf $(IDIR_LIGHTTPD)/etc/ + install -m0755 -d $(IDIR_LIGHTTPD)/etc/init.d + install -m0644 ./files/lighttpd.init \ + $(IDIR_LIGHTTPD)/etc/init.d/lighttpd + install -m0755 -d $(IDIR_LIGHTTPD)/usr/lib/lighttpd + for m in dirlisting indexfile staticfile; do \ + $(CP) $(WRKINST)/usr/lib/lighttpd/mod_$$m.so $(IDIR_LIGHTTPD)/usr/lib/lighttpd/ ; \ + done + install -m0755 -d $(IDIR_LIGHTTPD)/usr/sbin + $(CP) $(WRKINST)/usr/sbin/lighttpd $(IDIR_LIGHTTPD)/usr/sbin/ +ifeq (${ADK_COMPILE_LIGHTTPD_WITH_OPENSSL},y) + echo 'Depends: libxml2, libsqlite, libpcre, openssl' \ + >>${IDIR_LIGHTTPD}/CONTROL/control +else + echo 'Depends: libxml2, libsqlite, libpcre' \ + >>${IDIR_LIGHTTPD}/CONTROL/control +endif + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/lighttpd/files/lighttpd.conf b/package/lighttpd/files/lighttpd.conf new file mode 100644 index 000000000..b97b39120 --- /dev/null +++ b/package/lighttpd/files/lighttpd.conf @@ -0,0 +1,217 @@ +# lighttpd configuration file +# +## modules to load +# all other module should only be loaded if really neccesary +# - saves some time +# - saves memory +#server.modules = ( +# "mod_rewrite", +# "mod_redirect", +# "mod_alias", +# "mod_auth", +# "mod_status", +# "mod_setenv", +# "mod_fastcgi", +# "mod_proxy", +# "mod_simple_vhost", +# "mod_cgi", +# "mod_ssi", +# "mod_usertrack", +# "mod_expire" +#) + +## a static document-root, for virtual-hosting take look at the +## server.virtual-* options +server.document-root = "/tmp/" + +## where to send error-messages to +#server.errorlog = "/var/log/lighttpd/error.log" + +## files to check for if .../ is requested +index-file.names = ( "index.html", "default.html", "index.htm", "default.htm" ) + +## mimetype mapping +mimetype.assign = ( + ".pdf" => "application/pdf", + ".class" => "application/octet-stream", + ".pac" => "application/x-ns-proxy-autoconfig", + ".swf" => "application/x-shockwave-flash", + ".wav" => "audio/x-wav", + ".gif" => "image/gif", + ".jpg" => "image/jpeg", + ".jpeg" => "image/jpeg", + ".png" => "image/png", + ".css" => "text/css", + ".html" => "text/html", + ".htm" => "text/html", + ".js" => "text/javascript", + ".txt" => "text/plain", + ".dtd" => "text/xml", + ".xml" => "text/xml" + ) + +## Use the "Content-Type" extended attribute to obtain mime type if possible +#mimetypes.use-xattr = "enable" + +## send a different Server: header +## be nice and keep it at lighttpd +#server.tag = "lighttpd" + +$HTTP["url"] =~ "\.pdf$" { + server.range-requests = "disable" +} + +## +# which extensions should not be handle via static-file transfer +# +# .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi +static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) + +######### Options that are good to be but not neccesary to be changed ####### + +## bind to port (default: 80) +#server.port = 81 + +## bind to localhost (default: all interfaces) +#server.bind = "localhost" + +## error-handler for status 404 +#server.error-handler-404 = "/error-handler.html" +#server.error-handler-404 = "/error-handler.php" + +## to help the rc.scripts +server.pid-file = "/var/run/lighttpd.pid" + + +###### virtual hosts +## +## If you want name-based virtual hosting add the next three settings and load +## mod_simple_vhost +## +## document-root = +## virtual-server-root + virtual-server-default-host + virtual-server-docroot or +## virtual-server-root + http-host + virtual-server-docroot +## +#simple-vhost.server-root = "/home/weigon/wwwroot/servers/" +#simple-vhost.default-host = "grisu.home.kneschke.de" +#simple-vhost.document-root = "/pages/" + + +## +## Format: .html +## -> ..../status-404.html for 'File not found' +#server.errorfile-prefix = "/www/error-" + +## virtual directory listings +#server.dir-listing = "enable" + +## send unhandled HTTP-header headers to error-log +#debug.dump-unknown-headers = "enable" + +### only root can use these options +# +# chroot() to directory (default: no chroot() ) +#server.chroot = "/" + +## change uid to (default: don't care) +#server.username = "nobody" + +## change uid to (default: don't care) +#server.groupname = "nobody" + +#### compress module +#compress.cache-dir = "/dev/null/" +#compress.filetype = ("text/plain", "text/html") + +#### proxy module +## read proxy.txt for more info +#proxy.server = ( +# ".php" => ( +# "localhost" => ( +# "host" => "192.168.0.101", +# "port" => 80 +# ) +# ) +#) + +#### fastcgi module +## read fastcgi.txt for more info +#fastcgi.server = ( +# ".php" => ( +# "localhost" => ( +# "socket" => "/tmp/php-fastcgi.socket", +# "bin-path" => "/usr/local/bin/php" +# ) +# ) +#) + +#### CGI module +#cgi.assign = ( ".pl" => "/usr/bin/perl", ".cgi" => "/usr/bin/perl" ) + +#### SSL engine +#ssl.engine = "enable" +#ssl.pemfile = "server.pem" + +#### status module +#status.status-url = "/server-status" +#status.config-url = "/server-config" + +#### auth module +## read authentification.txt for more info +#auth.backend = "plain" +#auth.backend.plain.userfile = "lighttpd.user" +#auth.backend.plain.groupfile = "lighttpd.group" +#auth.require = ( +# "/server-status" => ( +# "method" => "digest", +# "realm" => "download archiv", +# "require" => "group=www|user=jan|host=192.168.2.10" +# ), +# "/server-info" => ( +# "method" => "digest", +# "realm" => "download archiv", +# "require" => "group=www|user=jan|host=192.168.2.10" +# ) +#) + +#### url handling modules (rewrite, redirect, access) +#url.rewrite = ( "^/$" => "/server-status" ) +#url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" ) + +#### both rewrite/redirect support back reference to regex conditional using %n +#$HTTP["host"] =~ "^www\.(.*)" { +# url.redirect = ( "^/(.*)" => "http://%1/$1" ) +#} + +#### expire module +#expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes") + +#### ssi +#ssi.extension = ( ".shtml" ) + +#### setenv +#setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" ) +#setenv.add-response-header = ( "X-Secret-Message" => "42" ) + +#### variable usage: +## variable name without "." is auto prefixed by "var." and becomes "var.bar" +#bar = 1 +#var.mystring = "foo" + +## integer add +#bar += 1 +## string concat, with integer cast as string, result: "www.foo1.com" +#server.name = "www." + mystring + var.bar + ".com" +## array merge +#index-file.names = (foo + ".php") + index-file.names +#index-file.names += (foo + ".php") + +#### include +#include /etc/lighttpd/lighttpd-inc.conf +## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf" +#include "lighttpd-inc.conf" + +#### include_shell +#include_shell "echo var.a=1" +## the above is same as: +#var.a=1 diff --git a/package/lighttpd/files/lighttpd.init b/package/lighttpd/files/lighttpd.init new file mode 100644 index 000000000..f8edbe10a --- /dev/null +++ b/package/lighttpd/files/lighttpd.init @@ -0,0 +1,25 @@ +#!/bin/sh +#FWINIT 60 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${lighttpd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + lighttpd $lighttpd_flags + ;; +stop) + killall lighttpd + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? diff --git a/package/lighttpd/ipkg/lighttpd-mod-accesslog.control b/package/lighttpd/ipkg/lighttpd-mod-accesslog.control new file mode 100644 index 000000000..640122652 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-accesslog.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-accesslog +Priority: optional +Section: net +Description: an access logging module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-alias.control b/package/lighttpd/ipkg/lighttpd-mod-alias.control new file mode 100644 index 000000000..c1e12e373 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-alias.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-alias +Priority: optional +Section: net +Description: a directory alias module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-auth.control b/package/lighttpd/ipkg/lighttpd-mod-auth.control new file mode 100644 index 000000000..179501fbf --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-auth.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-auth +Priority: optional +Section: net +Description: an authentication module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-cgi.control b/package/lighttpd/ipkg/lighttpd-mod-cgi.control new file mode 100644 index 000000000..18c574a9b --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-cgi.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-cgi +Priority: optional +Section: net +Description: a CGI module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-evasive.control b/package/lighttpd/ipkg/lighttpd-mod-evasive.control new file mode 100644 index 000000000..dd00165ea --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-evasive.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-evasive +Priority: optional +Section: net +Description: Evasive module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-expire.control b/package/lighttpd/ipkg/lighttpd-mod-expire.control new file mode 100644 index 000000000..8d5c5546c --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-expire.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-expire +Priority: optional +Section: net +Description: Expire module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-fastcgi.control b/package/lighttpd/ipkg/lighttpd-mod-fastcgi.control new file mode 100644 index 000000000..123e9b636 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-fastcgi.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-fastcgi +Priority: optional +Section: net +Description: FASTCGI module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-proxy.control b/package/lighttpd/ipkg/lighttpd-mod-proxy.control new file mode 100644 index 000000000..5578d1a53 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-proxy.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-proxy +Priority: optional +Section: net +Description: a proxy module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-redirect.control b/package/lighttpd/ipkg/lighttpd-mod-redirect.control new file mode 100644 index 000000000..80f3a574c --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-redirect.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-redirect +Priority: optional +Section: net +Description: an url redirection module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-rewrite.control b/package/lighttpd/ipkg/lighttpd-mod-rewrite.control new file mode 100644 index 000000000..19c5b1a76 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-rewrite.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-rewrite +Priority: optional +Section: net +Description: an url rewriting module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-setenv.control b/package/lighttpd/ipkg/lighttpd-mod-setenv.control new file mode 100644 index 000000000..0506b7a4c --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-setenv.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-setenv +Priority: optional +Section: net +Description: an environment variable setting module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-simple-vhost.control b/package/lighttpd/ipkg/lighttpd-mod-simple-vhost.control new file mode 100644 index 000000000..58550e124 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-simple-vhost.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-simple-vhost +Priority: optional +Section: net +Description: a simple virtual hosting module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-ssi.control b/package/lighttpd/ipkg/lighttpd-mod-ssi.control new file mode 100644 index 000000000..266d4ea68 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-ssi.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-ssi +Priority: optional +Section: net +Description: SSI module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-status.control b/package/lighttpd/ipkg/lighttpd-mod-status.control new file mode 100644 index 000000000..081d21c4e --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-status.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-status +Priority: optional +Section: net +Description: a server status display module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-usertrack.control b/package/lighttpd/ipkg/lighttpd-mod-usertrack.control new file mode 100644 index 000000000..32a0e79a0 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-usertrack.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-usertrack +Priority: optional +Section: net +Description: an user tracking module for lighttpd +Depends: lighttpd diff --git a/package/lighttpd/ipkg/lighttpd-mod-webdav.control b/package/lighttpd/ipkg/lighttpd-mod-webdav.control new file mode 100644 index 000000000..ebc52b58f --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd-mod-webdav.control @@ -0,0 +1,5 @@ +Package: lighttpd-mod-webdav +Priority: optional +Section: net +Depends: lighttpd, libxml2, libsqlite +Description: a webdav module for lighttpd diff --git a/package/lighttpd/ipkg/lighttpd.conffiles b/package/lighttpd/ipkg/lighttpd.conffiles new file mode 100644 index 000000000..e90f8e19d --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd.conffiles @@ -0,0 +1 @@ +/etc/lighttpd.conf diff --git a/package/lighttpd/ipkg/lighttpd.control b/package/lighttpd/ipkg/lighttpd.control new file mode 100644 index 000000000..788aa07e1 --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd.control @@ -0,0 +1,5 @@ +Package: lighttpd +Priority: optional +Section: net +Description: a flexible and lightweight web server, + built with SSL support. diff --git a/package/lighttpd/ipkg/lighttpd.postinst b/package/lighttpd/ipkg/lighttpd.postinst new file mode 100644 index 000000000..dbf355c4b --- /dev/null +++ b/package/lighttpd/ipkg/lighttpd.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf lighttpd lighttpd NO +add_rcconf lighttpd_flags lighttpd_flags "-f /etc/lighttpd.conf" diff --git a/package/lighttpd/patches/500-configure_cross.patch b/package/lighttpd/patches/500-configure_cross.patch new file mode 100644 index 000000000..8f8099823 --- /dev/null +++ b/package/lighttpd/patches/500-configure_cross.patch @@ -0,0 +1,24 @@ +diff -ruN lighttpd-1.4.2-old/configure lighttpd-1.4.2-new/configure +--- lighttpd-1.4.2-old/configure 2005-08-29 14:18:11.000000000 +0200 ++++ lighttpd-1.4.2-new/configure 2005-09-01 09:06:29.000000000 +0200 +@@ -23849,7 +23849,7 @@ + echo "$as_me:$LINENO: result: $WITH_PCRE" >&5 + echo "${ECHO_T}$WITH_PCRE" >&6 + +-if test "x$cross_compiling" = xno -a "$WITH_PCRE" != "no"; then ++if test "$WITH_PCRE" != "no"; then + # Extract the first word of "pcre-config", so it can be a program name with args. + set dummy pcre-config; ac_word=$2 + echo "$as_me:$LINENO: checking for $ac_word" >&5 +diff -ruN lighttpd-1.4.2-old/configure.in lighttpd-1.4.2-new/configure.in +--- lighttpd-1.4.2-old/configure.in 2005-08-29 14:06:03.000000000 +0200 ++++ lighttpd-1.4.2-new/configure.in 2005-09-01 09:05:39.000000000 +0200 +@@ -222,7 +222,7 @@ + [WITH_PCRE=$withval],[WITH_PCRE=yes]) + AC_MSG_RESULT([$WITH_PCRE]) + +-if test "x$cross_compiling" = xno -a "$WITH_PCRE" != "no"; then ++if test "$WITH_PCRE" != "no"; then + AC_PATH_PROG(PCRECONFIG, pcre-config) + + if test x"$PCRECONFIG" != x; then -- cgit v1.2.3