From: Ben Hutchings <ben@decadent.org.uk>
Date: Sun, 16 Sep 2007 23:45:34 +0000 (+0000)
Subject: Added CGI wrapper for Memories.
X-Git-Tag: 1.2-5~5
X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ed3644bace63ca41c249662e52a8d589fc80187b;p=memories.git

Added CGI wrapper for Memories.
---

diff --git a/debian/memories.cgi b/debian/memories.cgi
new file mode 100644
index 0000000..a5c90f1
--- /dev/null
+++ b/debian/memories.cgi
@@ -0,0 +1,7 @@
+#!/usr/bin/perl -w
+
+# CGI wrapper for Memories.
+
+use strict;
+use Memories;
+Memories->run();
diff --git a/debian/rules b/debian/rules
index 77a4f7f..7d4e3ed 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,8 @@ binary-indep :
 	install -d debian/memories/usr/share/perl5/Memories
 	install -m 644 Memories.pm debian/memories/usr/share/perl5/
 	install -m 644 Memories/*.pm debian/memories/usr/share/perl5/Memories/
+	install -d debian/memories/usr/lib/cgi-bin
+	install -m 755 debian/memories.cgi debian/memories/usr/lib/cgi-bin/
 	install -d debian/memories/etc/memories
 	mv debian/memories/usr/share/perl5/Memories/Config.pm debian/memories/etc/memories/
 	cp -dR templates debian/memories/etc/memories/