deb package build
Scott Baker [Mon, 18 Aug 2014 22:50:18 +0000 (15:50 -0700)]
Makefile
debian/control

index 791a015..777ab6e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
 BUILDDIR=build/opencloud-plugin-1.0
 
+opencloud-plugin:
+       # it's python. There's nothing to build
+       # use 'make deb' to make the debian package
+
 clean:
+       rm -rf build
 
 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 -d $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/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/
@@ -16,6 +21,7 @@ install:
        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
        ln -s /usr/share/pyshared/neutron/plugins/opencloud/__init__.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/opencloud/__init__.py
+       ln -s /usr/share/pyshared/neutron/extensions/nat.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/extensions/nat.py
 
 
 deb: 
@@ -26,4 +32,10 @@ deb:
        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
+       cd $(BUILDDIR); debuild -i -us -uc -A
+
+nuke:
+       rm -rf /usr/share/pyshared/neutron/plugins/opencloud
+       rm -rf /usr/lib/python2.7/dist-packages/neutron/plugins/opencloud
+       rm -f /usr/share/pyshared/neutron/extensions/nat.py*
+       rm -f /usr/lib/python2.7/dist-packages/neutron/extensions/nat.py*
index 41e8575..1839a17 100644 (file)
@@ -5,5 +5,5 @@ Priority: optional
 Standards-Version: 3.9.2
 
 Package: opencloud-plugin
-Architecture: any
+Architecture: all
 Description: Layered driver for opencloud nat port forwarding on OpenStack