summaryrefslogtreecommitdiff
path: root/www-servers/lighttpd/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-24 08:52:43 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-24 08:52:43 +0100
commit28267a5e528b273fbd1b0f5f52ecaab4b03016ab (patch)
treef2c2ddc5cf19fcbc848cc9fe427df5abd8ac0339 /www-servers/lighttpd/files
parente19b21c73e5feac42ade97baf3eeb45c58a2f234 (diff)
gentoo auto-resync : 24:07:2022 - 08:52:43
Diffstat (limited to 'www-servers/lighttpd/files')
-rw-r--r--www-servers/lighttpd/files/conf/lighttpd.conf279
-rw-r--r--www-servers/lighttpd/files/lighttpd-1.4.59-nspr-header.patch16
-rw-r--r--www-servers/lighttpd/files/lighttpd.initd79
3 files changed, 0 insertions, 374 deletions
diff --git a/www-servers/lighttpd/files/conf/lighttpd.conf b/www-servers/lighttpd/files/conf/lighttpd.conf
deleted file mode 100644
index 13d5e772ac1b..000000000000
--- a/www-servers/lighttpd/files/conf/lighttpd.conf
+++ /dev/null
@@ -1,279 +0,0 @@
-###############################################################################
-# Default lighttpd.conf for Gentoo.
-###############################################################################
-
-# Variables
-var.basedir = "/var/www/localhost"
-var.logdir = "/var/log/lighttpd"
-var.statedir = "/var/lib/lighttpd"
-
-
-# Modules
-# At the very least, mod_access and mod_accesslog should be enabled.
-# All other modules should only be loaded if necessary.
-# NOTE: the order of modules is important.
-server.modules = (
-# "mod_rewrite",
-# "mod_redirect",
-# "mod_alias",
- "mod_access",
-# "mod_cml",
-# "mod_trigger_b4_dl",
-# "mod_auth",
-# "mod_status",
-# "mod_setenv",
-# "mod_proxy",
-# "mod_simple_vhost",
-# "mod_evhost",
-# "mod_userdir",
-# "mod_compress",
-# "mod_ssi",
-# "mod_usertrack",
-# "mod_expire",
-# "mod_secdownload",
-# "mod_rrdtool",
-# "mod_webdav",
- "mod_accesslog"
-)
-
-
-# Includes
-include "mime-types.conf"
-# include "mod_cgi.conf"
-# include "mod_fastcgi.conf"
-
-
-# Server Settings
-server.username = "lighttpd"
-server.groupname = "lighttpd"
-server.document-root = var.basedir + "/htdocs"
-server.pid-file = "/run/lighttpd.pid"
-server.errorlog = var.logdir + "/error.log"
-# log errors to syslog instead
-# server.errorlog-use-syslog = "enable"
-server.indexfiles = (
- "index.php",
- "index.html",
- "index.htm",
- "default.htm"
-)
-# server.tag = "lighttpd"
-server.follow-symlink = "enable"
-
-# event handler (defaults to "poll")
-# see performance.txt
-
-# for >= linux-2.4
-# server.event-handler = "linux-rtsig"
-# for >= linux-2.6
-# server.event-handler = "linux-sysepoll"
-# for FreeBSD
-# server.event-handler = "freebsd-kqueue"
-
-# chroot to directory (defaults to no chroot)
-# server.chroot = "/"
-
-# bind to port (defaults to 80)
-# server.port = 81
-
-# bind to name (defaults to all interfaces)
-# server.bind = "grisu.home.kneschke.de"
-
-# error-handler for status 404
-# server.error-handler-404 = "/error-handler.html"
-# server.error-handler-404 = "/error-handler.php"
-
-# Format: <errorfile-prefix><status-code>.html
-# -> ..../status-404.html for 'File not found'
-# server.errorfile-prefix = var.basedir + "/error/status-"
-
-# FAM support for caching stat() calls
-# requires that lighttpd be built with USE=fam
-# server.stat-cache-engine = "fam"
-
-# If lighttpd was build with IPv6 support, and you would like to listen on IPv6,
-# uncomment the following:
-# server.use-ipv6 = "enable"
-
-
-# mod_staticfile
-# which extensions should not be handled via static-file transfer
-# (extensions that are usually handled by mod_cgi, mod_fastcgi, etc).
-static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi")
-
-
-# mod_accesslog
-accesslog.filename = var.logdir + "/access.log"
-
-
-# mod_dirlisting
-# enable directory listings
-# dir-listing.activate = "enable"
-
-# don't list hidden files/directories
-# dir-listing.hide-dotfiles = "enable"
-
-# use a different css for directory listings
-# dir-listing.external-css= "/path/to/dir-listing.css"
-
-# list of regular expressions. Files that match any of the
-# specified regular expressions will be excluded from directory
-# listings.
-# dir-listing.exclude = ("^\.", "~$")
-
-
-# mod_access
-url.access-deny = ("~", ".inc")
-
-
-# mod_userdir
-# userdir.path = "public_html"
-# userdir.exclude-user = ("root")
-
-
-# mod_ssi
-# ssi.extension = (".shtml")
-
-
-# mod_ssl
-# ssl.engine = "enable"
-# ssl.pemfile = "server.pem"
-
-
-# mod_status
-# status.status-url = "/server-status"
-# status.config-url = "/server-config"
-
-
-# mod_simple_vhost
-# 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/user/webroot/servers/"
-# simple-vhost.default-host = "www.example.org"
-# simple-vhost.document-root = "/pages/"
-
-
-# mod_compress
-# compress.cache-dir = var.statedir + "/cache/compress"
-# compress.filetype = ("text/plain", "text/html")
-
-
-# mod_proxy
-# proxy.server = (
-# ".php" => (
-# "localhost" => (
-# "host" => "192.168.0.101",
-# "port" => 80
-# )
-# )
-# )
-
-
-# mod_auth
-# auth.backend = "plain"
-# auth.backend.plain.userfile = "lighttpd.user"
-# auth.backend.plain.groupfile = "lighttpd.group"
-
-# auth.backend.ldap.hostname = "localhost"
-# auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
-# auth.backend.ldap.filter = "(uid=$)"
-
-#auth.require = (
-# "/server-status" => (
-# "method" => "digest",
-# "realm" => "download archiv",
-# "require" => "user=jan"
-# ),
-# "/server-info" => (
-# "method" => "digest",
-# "realm" => "download archiv",
-# "require" => "valid-user"
-# )
-#)
-
-
-# mod_rewrite
-# url.rewrite = (
-# "^/$" => "/server-status"
-# )
-
-
-# mod_redirect
-# url.redirect = (
-# "^/wishlist/(.+)" => "http://www.123.org/$1"
-# )
-
-
-# mod_evhost
-# define a pattern for the host url finding
-# %% => % sign
-# %0 => domain name + tld
-# %1 => tld
-# %2 => domain name without tld
-# %3 => subdomain 1 name
-# %4 => subdomain 2 name
-# evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
-
-
-# mod_expire
-# expire.url = (
-# "/buggy/" => "access 2 hours",
-# "/asdhas/" => "access plus 1 seconds 2 minutes"
-# )
-
-
-# mod_rrdtool
-# rrdtool.binary = "/usr/bin/rrdtool"
-# rrdtool.db-name = var.statedir + "/lighttpd.rrd"
-
-
-# mod_setenv
-# setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
-# setenv.add-response-header = ( "X-Secret-Message" => "42" )
-
-
-# mod_trigger_b4_dl
-# trigger-before-download.gdbm-filename = "/home/weigon/testbase/trigger.db"
-# trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
-# trigger-before-download.trigger-url = "^/trigger/"
-# trigger-before-download.download-url = "^/download/"
-# trigger-before-download.deny-url = "http://127.0.0.1/index.html"
-# trigger-before-download.trigger-timeout = 10
-
-
-# mod_cml
-# don't forget to add index.cml to server.indexfiles
-# cml.extension = ".cml"
-# cml.memcache-hosts = ( "127.0.0.1:11211" )
-
-
-# mod_webdav
-# $HTTP["url"] =~ "^/dav($|/)" {
-# webdav.activate = "enable"
-# webdav.is-readonly = "enable"
-# }
-
-
-# Extra Rules
-# set Content-Encoding and reset Content-Type for browsers that
-# support decompressing on-thy-fly (requires mod_setenv)
-# $HTTP["url"] =~ "\.gz$" {
-# setenv.add-response-header = ("Content-Encoding" => "x-gzip")
-# mimetype.assign = (".gz" => "text/plain")
-# }
-
-# $HTTP["url"] =~ "\.bz2$" {
-# setenv.add-response-header = ("Content-Encoding" => "x-bzip2")
-# mimetype.assign = (".bz2" => "text/plain")
-# }
-
-
-# Debug
-# debug.log-request-header = "enable"
-# debug.log-response-header = "enable"
-# debug.log-request-handling = "enable"
-# debug.log-file-not-found = "enable"
diff --git a/www-servers/lighttpd/files/lighttpd-1.4.59-nspr-header.patch b/www-servers/lighttpd/files/lighttpd-1.4.59-nspr-header.patch
deleted file mode 100644
index 497ea36a1675..000000000000
--- a/www-servers/lighttpd/files/lighttpd-1.4.59-nspr-header.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-diff --git a/configure.ac b/configure.ac
-index 325a1b4b..3f32daa9 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -887,7 +887,10 @@ if test "x$use_nss" = "xyes"; then
- NSS_LIBS="-L$WITH_NSS/lib -lnss3"
- else
- PKG_CHECK_MODULES([NSS],[nss])
-- CPPFLAGS="$CPPFLAGS -I/usr/include/nspr4"
-+ if test "x$CRYPTO_LIB" = "x"; then
-+ PKG_CHECK_MODULES([NSPR],[nspr])
-+ CPPFLAGS="$CPPFLAGS $NSPR_CFLAGS"
-+ fi
- fi
- AC_DEFINE([HAVE_NSS_NSS_H], [1], [nss/nss.h])
- AC_DEFINE([HAVE_NSS3_NSS_H], [1], [nss3/nss.h])
diff --git a/www-servers/lighttpd/files/lighttpd.initd b/www-servers/lighttpd/files/lighttpd.initd
deleted file mode 100644
index 190cd140e95e..000000000000
--- a/www-servers/lighttpd/files/lighttpd.initd
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-extra_started_commands="reload graceful"
-
-LIGHTTPD_PID="$(grep pid ${LIGHTTPD_CONF} | cut -d '=' -f 2 | tr -d \\\" | tr -d [:space:])"
-
-depend() {
- need net
- use mysql logger spawn-fcgi ldap slapd netmount dns
- after famd
- after sshd
-}
-
-checkconfig() {
- if [ ! -f "${LIGHTTPD_CONF}" ] ; then
- ewarn "${LIGHTTPD_CONF} does not exist."
- return 1
- fi
-
- if [ -z "${LIGHTTPD_PID}" ] ; then
- eerror "server.pid-file variable in ${LIGHTTPD_CONF}"
- eerror "is not set. Please set this variable properly"
- eerror "and try again"
- return 1
- fi
- /usr/sbin/lighttpd -t -f ${LIGHTTPD_CONF} >/dev/null
-}
-
-start() {
- checkconfig || return 1
- # Glean lighttpd's credentials from the configuration file
- # Fixes bug 454366
- LIGHTTPD_USER="$(awk '/^server.username/{s=$3};{sub("\"","",s)};END{print s}' ${LIGHTTPD_CONF})"
- LIGHTTPD_GROUP="$(awk '/^server.groupname/{s=$3};{sub("\"","",s)};END{print s}' ${LIGHTTPD_CONF})"
- checkpath -d -q -m 0750 -o "${LIGHTTPD_USER}":"${LIGHTTPD_GROUP}" /run/lighttpd/
-
- ebegin "Starting lighttpd"
- start-stop-daemon --start --quiet --exec /usr/sbin/lighttpd \
- --pidfile "${LIGHTTPD_PID}" -- -f "${LIGHTTPD_CONF}"
- eend $?
-}
-
-stop() {
- local rv=0
- ebegin "Stopping lighttpd"
- start-stop-daemon --stop --quiet --pidfile "${LIGHTTPD_PID}"
- eend $?
-}
-
-reload() {
- if ! service_started "${SVCNAME}" ; then
- eerror "${SVCNAME} isn't running"
- return 1
- fi
- checkconfig || return 1
-
- ebegin "Re-opening lighttpd log files"
- start-stop-daemon --quiet --pidfile "${LIGHTTPD_PID}" \
- --signal HUP
- eend $?
-}
-
-graceful() {
- if ! service_started "${SVCNAME}" ; then
- eerror "${SVCNAME} isn't running"
- return 1
- fi
- checkconfig || return 1
-
- ebegin "Gracefully stopping lighttpd"
- start-stop-daemon --quiet --pidfile "${LIGHTTPD_PID}" \
- --signal INT
- if eend $? ; then
- rm -f "${LIGHTTPD_PID}"
- start
- fi
-}