]> git.decadent.org.uk Git - memories.git/commitdiff
Added CGI wrapper for Memories.
authorBen Hutchings <ben@decadent.org.uk>
Sun, 16 Sep 2007 23:45:34 +0000 (23:45 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 4 Nov 2008 04:14:15 +0000 (04:14 +0000)
debian/memories.cgi [new file with mode: 0644]
debian/rules

diff --git a/debian/memories.cgi b/debian/memories.cgi
new file mode 100644 (file)
index 0000000..a5c90f1
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/perl -w
+
+# CGI wrapper for Memories.
+
+use strict;
+use Memories;
+Memories->run();
index 77a4f7fd68b371832deb3977f4dfcb952b8a70dd..7d4e3ed58ade5a55e8c42c0f3f26e57f5ebc7381 100755 (executable)
@@ -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/