2005-05-18 05:31:27 +02:00
|
|
|
#!/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
|
2005-05-18 18:45:53 +02:00
|
|
|
@echo -e "#!/bin/sh\n/usr/bin/web-splash.sh start" >$(DESTDIR)/etc/init.d/S89web-splash
|
|
|
|
@chmod +x $(DESTDIR)/etc/init.d/S89web-splash
|
2005-05-18 05:31:27 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo "done"
|