package created
This commit is contained in:
parent
2ad6a2e595
commit
b539293bfb
5 changed files with 94 additions and 3 deletions
1
web-splash/ipkg/conffiles
Normal file
1
web-splash/ipkg/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/web-splash.conf
|
23
web-splash/ipkg/control
Normal file
23
web-splash/ipkg/control
Normal file
|
@ -0,0 +1,23 @@
|
|||
Package: web-splash
|
||||
Priority: optional
|
||||
Version: 0.1
|
||||
Architecture: mipsel
|
||||
Maintainer: Lars Kruse <devel@sumpfralle.de>
|
||||
Section: net
|
||||
Source: https://systemausfall.org/toolforge/web-splash
|
||||
Depends: grep, sed, iptables
|
||||
Description: web-splash helps you administering an open access point
|
||||
Users who want to access the internet with your access point will
|
||||
at first retrieve a webpage that informs them about the net.
|
||||
After viewing this page they are allowed to use the net for as long
|
||||
as you define.
|
||||
This allows you (the administrator) to inform the users about the free
|
||||
service they use.
|
||||
.
|
||||
It is recommended to use this package with thttpd or any other webserver
|
||||
that allows you to define a custom error-404-page or a webserver that
|
||||
supports aliases with regular expression matching.
|
||||
.
|
||||
The package web-limit can be used with web-splash to define a traffic
|
||||
limitation and decrease the available bandwith depending on the remaining
|
||||
volume.
|
36
web-splash/ipkg/rules
Executable file
36
web-splash/ipkg/rules
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# DESTDIR should be defined
|
||||
DESTDIR ?= /tmp/web-splash
|
||||
|
||||
|
||||
build:
|
||||
@echo "done"
|
||||
|
||||
|
||||
install:
|
||||
@# config files
|
||||
@mkdir -p $(DESTDIR)/etc
|
||||
@cp web-splash.conf $(DESTDIR)/etc
|
||||
|
||||
@# web site
|
||||
@mkdir -p $(DESTDIR)/www/web-splash
|
||||
@cp splash-site/* $(DESTDIR)/www/web-splash/
|
||||
@mkdir -p $(DESTDIR)/www/cgi-bin
|
||||
@cp web-splash.cgi $(DESTDIR)/www/cgi-bin/
|
||||
@ln -s web-splash/index.html $(DESTDIR)/www/index.html
|
||||
@mkdir -p $(DESTDIR)/www/errors
|
||||
@ln -s ../index.html $(DESTDIR)/www/errors/err404.html
|
||||
|
||||
@# install binaries
|
||||
@mkdir -p $(DESTDIR)/usr/lib
|
||||
@cp splash-functions.inc $(DESTDIR)/usr/lib
|
||||
@mkdir -p $(DESTDIR)/usr/bin
|
||||
@cp web-splash.sh $(DESTDIR)/usr/bin
|
||||
|
||||
@# startup script
|
||||
@mkdir -p $(DESTDIR)/etc/init.d
|
||||
@echo -e "#!/bin/sh\n/usr/bin/web-splash.sh start" >$(DESTDIR)/etc/init.d/S90web-splash
|
||||
|
||||
clean:
|
||||
@echo "done"
|
Loading…
Add table
Add a link
Reference in a new issue