summaryrefslogtreecommitdiffhomepage
path: root/libs/lucittpd/root
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-16 19:30:22 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-16 19:30:22 +0000
commit65cde286cc146be7dea165c2cb34732cb8953a57 (patch)
tree9fc9a7629afb9789a29c0def6266a19b86f7a426 /libs/lucittpd/root
parent8c359115f9d515d358403897f34c69757adf7af6 (diff)
drop obsoleted lucittpd packages
Diffstat (limited to 'libs/lucittpd/root')
-rw-r--r--libs/lucittpd/root/etc/config/lucittpd6
-rwxr-xr-xlibs/lucittpd/root/etc/init.d/lucittpd44
-rw-r--r--libs/lucittpd/root/usr/lib/lucittpd/plugins/httpd.lua35
3 files changed, 0 insertions, 85 deletions
diff --git a/libs/lucittpd/root/etc/config/lucittpd b/libs/lucittpd/root/etc/config/lucittpd
deleted file mode 100644
index 803a6e50ca..0000000000
--- a/libs/lucittpd/root/etc/config/lucittpd
+++ /dev/null
@@ -1,6 +0,0 @@
-config lucittpd lucittpd
- option port 80
- option timeout 90
- option keepalive 0
- option path /usr/lib/lucittpd/plugins/
- option root /www
diff --git a/libs/lucittpd/root/etc/init.d/lucittpd b/libs/lucittpd/root/etc/init.d/lucittpd
deleted file mode 100755
index a7f78e003a..0000000000
--- a/libs/lucittpd/root/etc/init.d/lucittpd
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh /etc/rc.common
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=/usr/bin/lucittpd
-NAME=lucittpd
-DESC="HTTP server"
-START=49
-
-test -x $DAEMON || exit 0
-set -e
-
-start() {
- echo -n "Starting $DESC: $NAME"
- start-stop-daemon -b -S -q -x $DAEMON
- echo "."
-}
-
-stop() {
- echo -n "Stopping $DESC: $NAME"
- start-stop-daemon -K -q -x $DAEMON
- echo "."
-}
-
-restart() {
- # echo -n "Restarting $DESC: $NAME... "
- # start-stop-daemon -K -s HUP -q -x $DAEMON
- # echo "done."
- stop
- sleep 3
- start
-}
-
-reload() {
- #
- # If the daemon can reload its config files on the fly
- # for example by sending it SIGHUP, do it here.
- #
- # If the daemon responds to changes in its config file
- # directly anyway, make this a do-nothing entry.
- #
- # echo -n "Reloading $DESC configuration... "
- # start-stop-daemon -K -s 1 -q -x $DAEMON
- # echo "done."
- restart
-}
diff --git a/libs/lucittpd/root/usr/lib/lucittpd/plugins/httpd.lua b/libs/lucittpd/root/usr/lib/lucittpd/plugins/httpd.lua
deleted file mode 100644
index 2d3a9d8c87..0000000000
--- a/libs/lucittpd/root/usr/lib/lucittpd/plugins/httpd.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-function initialize()
- local lucittpd = require "luci.ttpd.server"
- server = lucittpd.Server(lucittpd.VHost())
-end
-
-function register()
- local filehnd = require "luci.ttpd.handler.file"
- local uci = require "luci.model.uci".cursor()
- local filehandler = filehnd.Simple((uci:get("lucittpd", "lucittpd", "root") or "/www"))
- server:get_default_vhost():set_default_handler(filehandler)
-end
-
-function accept()
- server:process({
- _read = function(...)
- local chunk, err = webuci_read(...)
- return chunk or (err and error(err, 0))
- end,
-
- _write = function(...)
- local chunk, err = webuci_write(...)
- return chunk or (err and error(err, 0))
- end,
-
- _close = function(...)
- local chunk, err = webuci_close(...)
- return chunk or (err and error(err, 0))
- end,
-
- _sendfile = function(...)
- local chunk, err = webuci_sendfile(...)
- return chunk or (err and error(err, 0))
- end
- })
-end