deb build system
Scott Baker [Mon, 18 Aug 2014 22:14:15 +0000 (15:14 -0700)]
Makefile
__init__.py [new file with mode: 0644]

index 7c77d55..791a015 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
+BUILDDIR=build/opencloud-plugin-1.0
+
 clean:
 
 install:
        install -d $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud
        install -d $(DESTDIR)/usr/share/pyshared/neutron/extensions
+       install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud
+       install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/nuetron/extensions
        install opencloud_db_v2.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
        install opencloud_models_v2.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
        install opencloud_neutron_plugin.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
        install nat.py $(DESTDIR)/usr/share/pyshared/neutron/extensions/
+       install __init__.py $(DESTDIR)/usr/share/pyshared/neutron/plugins/opencloud/
        ln -s /usr/share/pyshared/neutron/plugins/opencloud/opencloud_neutron_plugin.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/opencloud_neutron_plugin.py
        ln -s /usr/share/pyshared/neutron/plugins/opencloud/opencloud_models_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/opencloud_models_v2.py
        ln -s /usr/share/pyshared/neutron/plugins/opencloud/opencloud_db_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/opencloud_db_v2.py
@@ -15,13 +20,10 @@ install:
 
 deb: 
        rm -rf build
-       mkdir build
-       mkdir build/opencloud-plugin-1.0
-       cp Makefile *.py build/opencloud-plugin-1.0/
-       mkdir build/opencloud-plugin-1.0/debian 
-       mkdir build/opencloud-plugin-1.0/debian/source
-       cp debian/changelog debian/control debian/rules debian/compat debian/copyright build/opencloud-plugin-1.0/debian/
-       cp debian/source/format build/opencloud-plugin-1.0/debian/source/
-       cd build/opencloud-plugin-1.0
-       debuild -i -us -uc -B
-
+       mkdir -p $(BUILDDIR)
+       cp Makefile *.py $(BUILDDIR)/
+       mkdir $(BUILDDIR)/debian        
+       mkdir $(BUILDDIR)/debian/source
+       cp debian/changelog debian/control debian/rules debian/compat debian/copyright $(BUILDDIR)/debian/
+       cp debian/source/format $(BUILDDIR)/debian/source/
+       cd $(BUILDDIR); debuild -i -us -uc -B
diff --git a/__init__.py b/__init__.py
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+