From af04a72736ef987eee8d93fd3f6561dbfcc0df0d Mon Sep 17 00:00:00 2001 From: Ghe Rivero Date: Thu, 1 Mar 2012 11:28:12 +0100 Subject: [PATCH] Initial apache2 support Rewritten-From: c74412c5cd0b4b4e0dc9dc5db93f3b6232b2b06d --- trusty/debian/control | 22 +++++++++++++++++++--- trusty/debian/dashboard.conf | 6 ++++++ trusty/debian/openstack-dashboard.install | 3 ++- trusty/debian/rules | 15 ++++++++++++--- 4 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 trusty/debian/dashboard.conf diff --git a/trusty/debian/control b/trusty/debian/control index 221fc1f..a8feee5 100644 --- a/trusty/debian/control +++ b/trusty/debian/control @@ -6,21 +6,37 @@ Uploaders: Julien Danjou , Thomas Goirand , Ghe Rivero Build-Depends: debhelper (>= 8.0.0), python, python-setuptools -Standards-Version: 3.9.2 +Standards-Version: 3.9.4 Homepage: http://launchpad.net/horizon Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/horizon.git;a=summary Vcs-Git: git://anonscm.debian.org/openstack/horizon.git Package: python-django-horizon Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-quantumclient, python-glance, python-mox, python-dateutil +Depends: ${shlibs:Depends}, + ${misc:Depends}, + ${python:Depends}, + python-quantumclient, + python-glance, + python-mox, + python-dateutil Description: Django module to provide web interaction with OpenStack Horizon is a Django module that permits interaction with an OpenStack cloud. It can be used to build a dashboard to control an OpenStack cloud. Package: openstack-dashboard Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-django-horizon, python-django, python-openstackx, python-django-nose, python-keystoneclient, python-cloudfiles, libjs-jquery +Depends: ${shlibs:Depends}, + ${misc:Depends}, + ${python:Depends}, + python-django-horizon, + python-django, + python-openstackx, + python-django-nose, + python-keystoneclient, + python-cloudfiles, + libjs-jquery +Recommends: libapache2-mod-wsgi (>= 2.3) Description: OpenStack Dashboard The OpenStack Dashboard is a Web application allowing to control an OpenStack cloud. \ No newline at end of file diff --git a/trusty/debian/dashboard.conf b/trusty/debian/dashboard.conf new file mode 100644 index 0000000..207cc51 --- /dev/null +++ b/trusty/debian/dashboard.conf @@ -0,0 +1,6 @@ +WSGIScriptAlias / /usr/share/openstack-dashboard/dashboard/wsgi/django.wsgi + + + Order allow,deny + Allow from all + diff --git a/trusty/debian/openstack-dashboard.install b/trusty/debian/openstack-dashboard.install index d845602..f042edb 100644 --- a/trusty/debian/openstack-dashboard.install +++ b/trusty/debian/openstack-dashboard.install @@ -1,2 +1,3 @@ usr/share/openstack-dashboard -etc/openstack-dashboard \ No newline at end of file +etc/openstack-dashboard +etc/apache2/conf.d diff --git a/trusty/debian/rules b/trusty/debian/rules index 5dce6df..f8594b0 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -1,4 +1,8 @@ #!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + %: dh $@ --with python2 @@ -8,9 +12,14 @@ override_dh_auto_install: install -d -m 755 $(CURDIR)/debian/tmp/etc/openstack-dashboard cp -a $(CURDIR)/openstack_dashboard/ $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/ - cp $(CURDIR)/openstack_dashboard/local/local_settings.py.example $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.py - cp $(CURDIR)/manage.py $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/ - ln -fs /etc/openstack-dashboard/local_settings.py $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py + cp -a $(CURDIR)/debian/dashboard.conf $(CURDIR)/debian/tmp/etc/apache2/conf.d + + cp $(CURDIR)/openstack_dashboard/local/local_settings.py.example \ + $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.py + cp $(CURDIR)/manage.py \ + $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/ + ln -fs /etc/openstack-dashboard/local_settings.py \ + $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py override_dh_auto_clean: dh_auto_clean -- 2.45.2