working on the DEB builder
Scott Baker [Tue, 24 Feb 2015 21:24:15 +0000 (13:24 -0800)]
ml2_plugin/Makefile [new file with mode: 0644]
ml2_plugin/debian/changelog [new file with mode: 0644]
ml2_plugin/debian/compat [new file with mode: 0644]
ml2_plugin/debian/control [new file with mode: 0644]
ml2_plugin/debian/copyright [new file with mode: 0644]
ml2_plugin/debian/rules [new file with mode: 0755]
ml2_plugin/debian/source/format [new file with mode: 0644]

diff --git a/ml2_plugin/Makefile b/ml2_plugin/Makefile
new file mode 100644 (file)
index 0000000..90abbef
--- /dev/null
@@ -0,0 +1,31 @@
+BUILDDIR=build/xos-plugin-1.0
+
+xos-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/lib/python2.7/dist-packages/neutron/plugins/xos
+       install -d $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/extensions
+       install xos_db_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
+       install xos_models_v2.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
+       install xos_neutron_plugin.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
+       install nat.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/extensions/
+       install __init__.py $(DESTDIR)/usr/lib/python2.7/dist-packages/neutron/plugins/xos/
+
+deb: 
+       rm -rf build
+       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 -A
+
+nuke:
+       rm -rf /usr/lib/python2.7/dist-packages/neutron/plugins/xos
+       rm -f /usr/lib/python2.7/dist-packages/neutron/extensions/nat.py*
diff --git a/ml2_plugin/debian/changelog b/ml2_plugin/debian/changelog
new file mode 100644 (file)
index 0000000..df3f1aa
--- /dev/null
@@ -0,0 +1,5 @@
+opencloud-plugin (1.0-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- smbaker <smbaker@smbaker-virtual-machine>  Mon, 18 Aug 2014 15:21:36 -0600
diff --git a/ml2_plugin/debian/compat b/ml2_plugin/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/ml2_plugin/debian/control b/ml2_plugin/debian/control
new file mode 100644 (file)
index 0000000..1839a17
--- /dev/null
@@ -0,0 +1,9 @@
+Source: opencloud-plugin
+Maintainer: Scott Baker <smbaker@gmail.com>
+Section: misc
+Priority: optional
+Standards-Version: 3.9.2
+
+Package: opencloud-plugin
+Architecture: all
+Description: Layered driver for opencloud nat port forwarding on OpenStack
diff --git a/ml2_plugin/debian/copyright b/ml2_plugin/debian/copyright
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/ml2_plugin/debian/rules b/ml2_plugin/debian/rules
new file mode 100755 (executable)
index 0000000..cbe925d
--- /dev/null
@@ -0,0 +1,3 @@
+#!/usr/bin/make -f
+%:
+       dh $@
diff --git a/ml2_plugin/debian/source/format b/ml2_plugin/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)