summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--frikanalen/Makefile7
-rw-r--r--frikanalen/debian/apache-conf19
-rwxr-xr-xfrikanalen/debian/rules2
3 files changed, 28 insertions, 0 deletions
diff --git a/frikanalen/Makefile b/frikanalen/Makefile
index 0d9e6ab..5f5009c 100644
--- a/frikanalen/Makefile
+++ b/frikanalen/Makefile
@@ -2,6 +2,7 @@ DESTDIR =
prefix = /usr
bindir = $(prefix)/bin
cgibindir = $(prefix)/lib/cgi-bin
+wwwdir = $(prefix)/share/frikanalen/www
INSTALL = install -m755
INSTALL_DATA = install -m644
@@ -16,4 +17,10 @@ install:
$(INSTALL) -d $(DESTDIR)$(cgibindir)
$(INSTALL) cgi-bin/fetchvideo.cgi cgi-bin/frontpage.cgi $(DESTDIR)$(cgibindir)
+ $(INSTALL) -d $(DESTDIR)$(wwwdir)
+ for file in bullet.gif bullet.png hide.js lage-tv.png logo.png meny1.png meny.png \
+ om.png se.png style1.css style.css ; do \
+ $(INSTALL_DATA) cgi-bin/$$file $(DESTDIR)$(wwwdir)/.; \
+ done
+
clean:
diff --git a/frikanalen/debian/apache-conf b/frikanalen/debian/apache-conf
new file mode 100644
index 0000000..743819f
--- /dev/null
+++ b/frikanalen/debian/apache-conf
@@ -0,0 +1,19 @@
+#
+# New URL http://<host>/frikanalen/ for the front page, and
+# http://<host>/cgi-bin/frontpage.cgi and
+# http://<host>/cgi-bin/fetchvideo.cgi implementing it.
+#
+
+Alias /frikanalen /usr/share/frikanalen/www
+ScriptAlias /cgi-bin/frontpage.cgi /usr/lib/cgi-bin/frontpage.cgi
+ScriptAlias /cgi-bin/fetchvideo.cgi /usr/lib/cgi-bin/fetchvideo.cgi
+
+<Directory /usr/share/frikanalen/www>
+ AllowOverride None
+ Options +SymLinksIfOwnerMatch -MultiViews
+
+ # everyone have access
+ Order deny,allow
+ Deny from none
+ Allow from all
+</Directory>
diff --git a/frikanalen/debian/rules b/frikanalen/debian/rules
index 1b4bb20..9050a98 100755
--- a/frikanalen/debian/rules
+++ b/frikanalen/debian/rules
@@ -32,6 +32,8 @@ binary-arch: build
dh_installdirs
make install DESTDIR=${DESTDIR}
+ mkdir -p $(DESTDIR)/etc/apache/conf.d
+ cp debian/apache-conf $(DESTDIR)/etc/apache/conf.d/frikanalen
dh_install --sourcedir=${DESTDIR}
dh_installdocs