summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-15 18:54:44 +0000
committerSteven Barth <steven@midlink.org>2008-06-15 18:54:44 +0000
commit6fa9ec035b262c5aec11962329aa3d6da72c5af9 (patch)
tree991aeb2eef60130c4fc41428552912c582cd2593
parentd5d8e8c86724b4a154b7af9c94e0eec70a485868 (diff)
* Removed support for Haserl
-rw-r--r--contrib/package-source/haserl-lua-0.9.24.tar.bz2bin106328 -> 0 bytes
-rw-r--r--contrib/package/haserl-lua/Makefile40
-rw-r--r--contrib/package/haserl-lua/patches/200-bytecode-header-luci12
-rw-r--r--contrib/package/luci/Makefile15
-rwxr-xr-xlibs/sgi-cgi/ipkg/postinst11
-rw-r--r--libs/sgi-haserl/Makefile2
-rwxr-xr-xlibs/sgi-haserl/htdocs/cgi-bin/index.cgi3
-rwxr-xr-xlibs/sgi-haserl/htdocs/cgi-bin/luci4
-rwxr-xr-xlibs/sgi-haserl/htdocs/cgi-bin/luci-upload4
-rw-r--r--libs/sgi-haserl/htdocs/index.html10
-rwxr-xr-xlibs/sgi-haserl/ipkg/postinst9
-rw-r--r--libs/sgi-haserl/luasrc/sgi/haserl.lua72
12 files changed, 11 insertions, 171 deletions
diff --git a/contrib/package-source/haserl-lua-0.9.24.tar.bz2 b/contrib/package-source/haserl-lua-0.9.24.tar.bz2
deleted file mode 100644
index 95fdc4c1c..000000000
--- a/contrib/package-source/haserl-lua-0.9.24.tar.bz2
+++ /dev/null
Binary files differ
diff --git a/contrib/package/haserl-lua/Makefile b/contrib/package/haserl-lua/Makefile
deleted file mode 100644
index 31158215a..000000000
--- a/contrib/package/haserl-lua/Makefile
+++ /dev/null
@@ -1,40 +0,0 @@
-#
-# Copyright (C) 2006 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=haserl-lua
-PKG_VERSION:=0.9.24
-PKG_RELEASE:=1
-
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_SOURCE_URL:=http://dev.leipzig.freifunk.net/svn/ff-luci/trunk/contrib/package-source/ \
- http://firmware.freifunk-halle.net/luci/package-source/
-PKG_MD5SUM:=b004005594b84e35839b1d5c330f8e03
-
-
-include $(INCLUDE_DIR)/package.mk
-
-define Package/haserl-lua
- SECTION:=utils
- CATEGORY:=Utilities
- TITLE:=A CGI wrapper to embed shell scripts in HTML documents
- URL:=http://haserl.sourceforge.net/
- DEPENDS:=+liblua
-endef
-
-CONFIGURE_ARGS += \
- --with-lua
-
-define Package/haserl-lua/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(STRIP) $(PKG_BUILD_DIR)/src/haserl
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/haserl $(1)/usr/bin/
- echo "Replaces: haserl" >> $(1)/CONTROL/control
- echo "Conflicts: haserl" >> $(1)/CONTROL/control
-endef
-
-$(eval $(call BuildPackage,haserl-lua))
diff --git a/contrib/package/haserl-lua/patches/200-bytecode-header-luci b/contrib/package/haserl-lua/patches/200-bytecode-header-luci
deleted file mode 100644
index c93fe7ae6..000000000
--- a/contrib/package/haserl-lua/patches/200-bytecode-header-luci
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur haserl-0.9.23.orig/src/haserl_lualib.inc haserl-0.9.23/src/haserl_lualib.inc
---- haserl-0.9.23.orig/src/haserl_lualib.inc 2008-04-05 16:40:35.000000000 +0200
-+++ haserl-0.9.23/src/haserl_lualib.inc 2008-04-05 16:41:37.000000000 +0200
-@@ -1,7 +1,7 @@
- /* This file was automatically generated from haserl_lualib.lua. DO NOT EDIT */
-
- static const unsigned char haserl_lualib[] = {
-- 27, 76,117, 97, 81, 0, 1, 4, 4, 4, 8, 0, 19, 0, 0, 0,
-+ 27, 76,117, 97, 81, 0, 1, 4, 4, 4, 8, 4, 19, 0, 0, 0,
- 64,104, 97,115,101,114,108, 95,108,117, 97,108,105, 98, 46,108,
- 117, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 16,
- 0, 0, 0, 10, 0, 0, 0, 74, 0, 0, 0,138, 0, 0, 0,135,
diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile
index 50156656d..b2571f750 100644
--- a/contrib/package/luci/Makefile
+++ b/contrib/package/luci/Makefile
@@ -322,17 +322,6 @@ define Package/luci-sgi-cgi/install
$(call Package/luci/install/template,$(1),libs/sgi-cgi)
endef
-define Package/luci-sgi-haserl
- $(call Package/luci/libtemplate)
- DEPENDS+=+luci-web +haserl-lua
- TITLE:=SGI for Haserl
-endef
-
-define Package/luci-sgi-haserl/install
- $(call Package/luci/install/template,$(1),libs/sgi-haserl)
-endef
-
-
define Package/luci-sgi-webuci
$(call Package/luci/libtemplate)
DEPENDS+=+luci-web
@@ -441,9 +430,6 @@ endif
ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
PKG_SELECTED_MODULES+=libs/sgi-cgi
endif
-ifneq ($(CONFIG_PACKAGE_luci-sgi-haserl),)
- PKG_SELECTED_MODULES+=libs/sgi-haserl
-endif
ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
PKG_SELECTED_MODULES+=libs/sgi-webuci
endif
@@ -487,7 +473,6 @@ $(eval $(call BuildPackage,luci-app-splash))
$(eval $(call BuildPackage,luci-app-statistics))
$(eval $(call BuildPackage,luci-sgi-cgi))
-$(eval $(call BuildPackage,luci-sgi-haserl))
$(eval $(call BuildPackage,luci-sgi-webuci))
$(eval $(call BuildPackage,luci-theme-fledermaus))
diff --git a/libs/sgi-cgi/ipkg/postinst b/libs/sgi-cgi/ipkg/postinst
new file mode 100755
index 000000000..bbc1e5381
--- /dev/null
+++ b/libs/sgi-cgi/ipkg/postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+[ -f "${IPKG_INSTROOT}/etc/httpd.conf" ] && {
+ PATTERNS='/cgi-bin/luci/admin:root:$p$root'
+
+ for i in $PATTERNS
+ do
+ grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf
+ done
+
+ [ -n "${IPKG_INSTROOT}" ] || /etc/init.d/httpd restart
+}
diff --git a/libs/sgi-haserl/Makefile b/libs/sgi-haserl/Makefile
deleted file mode 100644
index 81a96f6a8..000000000
--- a/libs/sgi-haserl/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-include ../../build/config.mk
-include ../../build/module.mk \ No newline at end of file
diff --git a/libs/sgi-haserl/htdocs/cgi-bin/index.cgi b/libs/sgi-haserl/htdocs/cgi-bin/index.cgi
deleted file mode 100755
index aae8591c6..000000000
--- a/libs/sgi-haserl/htdocs/cgi-bin/index.cgi
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/haserl --shell=luac
-print("Status: 302 Found")
-print("Location: luci\n")
diff --git a/libs/sgi-haserl/htdocs/cgi-bin/luci b/libs/sgi-haserl/htdocs/cgi-bin/luci
deleted file mode 100755
index fd8e5941a..000000000
--- a/libs/sgi-haserl/htdocs/cgi-bin/luci
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/haserl --shell=luac
-require("luci.sgi.haserl")
-luci.dispatcher.indexcache = "/tmp/.luciindex"
-luci.sgi.haserl.run() \ No newline at end of file
diff --git a/libs/sgi-haserl/htdocs/cgi-bin/luci-upload b/libs/sgi-haserl/htdocs/cgi-bin/luci-upload
deleted file mode 100755
index 371967ce9..000000000
--- a/libs/sgi-haserl/htdocs/cgi-bin/luci-upload
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/haserl --shell=luac --upload-limit=16384
--- This is a bit hacky: remove -upload from SCRIPT_NAME
-ENV.SCRIPT_NAME = ENV.SCRIPT_NAME:sub(1, #ENV.SCRIPT_NAME - 7)
-dofile("luci") \ No newline at end of file
diff --git a/libs/sgi-haserl/htdocs/index.html b/libs/sgi-haserl/htdocs/index.html
deleted file mode 100644
index 39ba558df..000000000
--- a/libs/sgi-haserl/htdocs/index.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="refresh" content="0; URL=/cgi-bin/index.cgi" />
-</head>
-<body style="background-color: black">
-<a style="color: white; text-decoration: none" href="/cgi-bin/index.cgi">LuCI - Lua Configuration Interface</a>
-</body>
-</html> \ No newline at end of file
diff --git a/libs/sgi-haserl/ipkg/postinst b/libs/sgi-haserl/ipkg/postinst
deleted file mode 100755
index 483a0867a..000000000
--- a/libs/sgi-haserl/ipkg/postinst
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-PATTERNS='/cgi-bin/luci/admin:root:$p$root /cgi-bin/luci-upload:root:$p$root'
-
-for i in $PATTERNS
-do
- grep "$i" ${IPKG_INSTROOT}/etc/httpd.conf >/dev/null 2>/dev/null || echo "$i" >> ${IPKG_INSTROOT}/etc/httpd.conf
-done
-
-[ -n ${IPKG_INSTROOT} ] || /etc/init.d/httpd restart
diff --git a/libs/sgi-haserl/luasrc/sgi/haserl.lua b/libs/sgi-haserl/luasrc/sgi/haserl.lua
deleted file mode 100644
index 88b7f0075..000000000
--- a/libs/sgi-haserl/luasrc/sgi/haserl.lua
+++ /dev/null
@@ -1,72 +0,0 @@
---[[
-LuCI - SGI-Module for Haserl
-
-Description:
-Server Gateway Interface for Haserl
-
-FileId:
-$Id: haserl.lua 2027 2008-05-07 21:16:35Z Cyrus $
-
-License:
-Copyright 2008 Steven Barth <steven@midlink.org>
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-]]--
-module("luci.sgi.haserl", package.seeall)
-require("luci.http")
-require("luci.util")
-require("luci.dispatcher")
-
-function run()
- local r = luci.http.Request(ENV, nil, io.stderr)
- r.get = normalize_table(FORM)
- r.post = r.get
-
- local x = coroutine.create(luci.dispatcher.httpdispatch)
- while coroutine.status(x) ~= "dead" do
- local res, id, data1, data2 = coroutine.resume(x, r)
-
- if not res then
- print("Status: 500 Internal Server Error")
- print("Content-Type: text/plain\n")
- print(id)
- break;
- end
-
- if id == 1 then
- io.write("Status: " .. tostring(data1) .. " " .. data2 .. "\n")
- elseif id == 2 then
- io.write(data1 .. ": " .. data2 .. "\n")
- elseif id == 3 then
- io.write("\n")
- elseif id == 4 then
- io.write(data1)
- end
- end
-end
-
-function normalize_table(table, prefix)
- prefix = prefix and prefix .. "." or ""
- local new = {}
-
- for k,v in pairs(table) do
- if type(v) == "table" and #v == 0 then
- luci.util.update(new, normalize_table(v, prefix .. k))
- else
- new[prefix .. k] = v
- end
- end
-
- return new
-end