[Debconf-video-commits] r375 - package/branches/pycon09/debian

benh at alioth.debian.org benh at alioth.debian.org
Mon Mar 23 19:55:09 UTC 2009


Author: benh
Date: 2009-03-23 19:55:08 +0000 (Mon, 23 Mar 2009)
New Revision: 375

Added:
   package/branches/pycon09/debian/debconf-video-store.postinst
   package/branches/pycon09/debian/debconf-video-store.prerm
   package/branches/pycon09/debian/pyconvideo.site
Modified:
   package/branches/pycon09/debian/control
   package/branches/pycon09/debian/rules
Log:
Install Apache 2, Django and site configuration.


Modified: package/branches/pycon09/debian/control
===================================================================
--- package/branches/pycon09/debian/control	2009-03-23 19:54:30 UTC (rev 374)
+++ package/branches/pycon09/debian/control	2009-03-23 19:55:08 UTC (rev 375)
@@ -23,5 +23,5 @@
 
 Package: debconf-video-store
 Architecture: all
-Depends: dvsink, python, python-pygresql, python-tz, python-vobject, debconf-video-common
+Depends: dvsink, apache2, python, python-django, python-psycopg, python-pygresql, python-tz, python-vobject, debconf-video-common
 Description: DebConf video storage scripts

Added: package/branches/pycon09/debian/debconf-video-store.postinst
===================================================================
--- package/branches/pycon09/debian/debconf-video-store.postinst	                        (rev 0)
+++ package/branches/pycon09/debian/debconf-video-store.postinst	2009-03-23 19:55:08 UTC (rev 375)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+a2ensite pyconvideo
+invoke-rc.d apache2 reload
+
+#DEBHELPER#

Added: package/branches/pycon09/debian/debconf-video-store.prerm
===================================================================
--- package/branches/pycon09/debian/debconf-video-store.prerm	                        (rev 0)
+++ package/branches/pycon09/debian/debconf-video-store.prerm	2009-03-23 19:55:08 UTC (rev 375)
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+a2dissite pyconvideo
+invoke-rc.d apache2 reload
+
+#DEBHELPER#

Added: package/branches/pycon09/debian/pyconvideo.site
===================================================================
--- package/branches/pycon09/debian/pyconvideo.site	                        (rev 0)
+++ package/branches/pycon09/debian/pyconvideo.site	2009-03-23 19:55:08 UTC (rev 375)
@@ -0,0 +1,8 @@
+<VirtualHost pyconvideo>
+    SetHandler python-program
+    PythonHandler django.core.handlers.modpython
+    SetEnv DJANGO_SETTINGS_MODULE pyconvideo.settings
+    PythonPath "['/usr/share/debconf-video-store'] + sys.path"
+    PythonOption django.root /
+    PythonDebug On
+</VirtualHost>

Modified: package/branches/pycon09/debian/rules
===================================================================
--- package/branches/pycon09/debian/rules	2009-03-23 19:54:30 UTC (rev 374)
+++ package/branches/pycon09/debian/rules	2009-03-23 19:55:08 UTC (rev 375)
@@ -27,7 +27,12 @@
 	mkdir -p -m 755 debian/debconf-video-store/usr/bin debian/debconf-video-store/usr/share/debconf-video-store debian/debconf-video-store/usr/share/debconf-video-store/debconfvideo
 	install src/dc-import-recordings src/dc-do-transcoding src/dc-publish src/pycon-import-events debian/debconf-video-store/usr/bin/
 	install -m 644 src/shellconfig.py debian/debconf-video-store/usr/share/debconf-video-store/
-	install -m 644 src/debconfvideo/*.py debian/debconf-video-store/usr/share/debconf-video-store/debconfvideo/
+	cd src && \
+	find debconfvideo pyconvideo -name .svn -prune \
+		-o -type d -exec mkdir -p -m 755 ../debian/debconf-video-store/usr/share/debconf-video-store/{} \; \
+		-o \( -name '*.py' -o -name '*.html' \) -exec install -m 644 {} ../debian/debconf-video-store/usr/share/debconf-video-store/{} \;
+	mkdir -p -m 755 debian/debconf-video-store/etc/apache2/sites-available/
+	install -m 644 debian/pyconvideo.site debian/debconf-video-store/etc/apache2/sites-available/pyconvideo
 
 binary-indep: install
 	dh_testdir -i




More information about the Debconf-video-commits mailing list