diff mbox

[PATCHv3,3/4] debian: add debian packaging framework

Message ID 1421761896-23612-4-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell Jan. 20, 2015, 1:51 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 debian/README.Debian       | 12 ++++++++++++
 debian/changelog           |  5 +++++
 debian/compat              |  1 +
 debian/control             | 42 ++++++++++++++++++++++++++++++++++++++++++
 debian/copyright           | 31 +++++++++++++++++++++++++++++++
 debian/docs                |  1 +
 debian/libodp8-dev.dirs    |  2 ++
 debian/libodp8-dev.install |  4 ++++
 debian/libodp8.dirs        |  1 +
 debian/libodp8.install     |  1 +
 debian/odp8-bin.dirs       |  1 +
 debian/odp8-bin.install    |  1 +
 debian/rules               | 16 ++++++++++++++++
 debian/source/format       |  1 +
 14 files changed, 119 insertions(+)
 create mode 100644 debian/README.Debian
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/docs
 create mode 100644 debian/libodp8-dev.dirs
 create mode 100644 debian/libodp8-dev.install
 create mode 100644 debian/libodp8.dirs
 create mode 100644 debian/libodp8.install
 create mode 100644 debian/odp8-bin.dirs
 create mode 100644 debian/odp8-bin.install
 create mode 100755 debian/rules
 create mode 100644 debian/source/format

Comments

Steve McIntyre Jan. 20, 2015, 2:54 p.m. UTC | #1
Sorry, more tweaks... :-/

>diff --git a/debian/control b/debian/control
>new file mode 100644
>index 0000000..4f7e3e3
>--- /dev/null
>+++ b/debian/control
>@@ -0,0 +1,42 @@
>+Source: opendataplane
>+Priority: optional
>+Maintainer: Anders Roxell <anders.roxell@linaro.org>
>+Build-Depends: debhelper (>= 9), autotools-dev
>+Standards-Version: 3.9.6
>+Section: libs
>+Homepage: http://www.opendataplane.org/
>+Vcs-Git: git://git.linaro.org/lng/odp.git
>+Vcs-Browser: https://git.linaro.org/lng/odp.git

Just checked in a clean build chroot and I think you need to update
to:

Build-Depends: debhelper (>= 9), autotools-dev, automake, autoconf, libtool, libssl-dev

>+Package: odp8-bin
>+Section: libdevel
>+Architecture: any
>+Multi-Arch: allowed
>+Depends: libodp8 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
>+Description: Example binaries for OpenDataPlane
>+ These are the executable examples from the reference implementation.
>+
>+Package: libodp8-dbg
>+Priority: extra
>+Section: debug
>+Architecture: any
>+Multi-Arch: same
>+Depends: libodp8 (= ${binary:Version}), ${misc:Depends}
>+Description: Debug symbols for OpenDataPlane
>+ This is the OpenDataPlane library from the reference implementation
>+ with debug turned on.
>+
>+Package: libodp8-dev
>+Section: libdevel
>+Architecture: any
>+Multi-Arch: same
>+Depends: libodp8 (= ${binary:Version}), ${misc:Depends}, libssl-dev
>+Description: Development files for OpenDataPlane
>+ These are the source file for the OpenDataPlane reference implementation.
>+
>+Package: libodp8
>+Architecture: any
>+Multi-Arch: same
>+Depends: ${misc:Depends}, ${shlibs:Depends}
>+Description: Library for OpenDataPlane
>+ This is the OpenDataPlane library from the reference implementation.
>diff --git a/debian/copyright b/debian/copyright
>new file mode 100644
>index 0000000..74fecbc
>--- /dev/null
>+++ b/debian/copyright
>@@ -0,0 +1,31 @@
>+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
>+Upstream-Name: OpenDataPlane
>+Source: <http://www.opendataplane.org>
>+
>+Files: *
>+Copyright: 2013-2015, Linaro Limited All rights reserved.
>+License: BSD-3-clause
>+  Redistribution and use in source and binary forms, with or without
>+  modification, are permitted provided that the following conditions are met:
>+  .
>+  Redistributions of source code must retain the above copyright notice, this
>+  list of conditions and the following disclaimer.
>+  .
>+  Redistributions in binary form must reproduce the above copyright notice, this
>+  list of conditions and the following disclaimer in the documentation and/or
>+  other materials provided with the distribution.
>+  .
>+  Neither the name of Linaro Limited nor the names of its contributors may be
>+  used to endorse or promote products derived from this software without specific
>+  prior written permission.
>+  .
>+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
>+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
>+  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
>+  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
>+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
>+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
>+  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
>+  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
>+  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
>+  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
>diff --git a/debian/docs b/debian/docs
>new file mode 100644
>index 0000000..e845566
>--- /dev/null
>+++ b/debian/docs
>@@ -0,0 +1 @@
>+README
>diff --git a/debian/libodp8-dev.dirs b/debian/libodp8-dev.dirs
>new file mode 100644
>index 0000000..4418816
>--- /dev/null
>+++ b/debian/libodp8-dev.dirs
>@@ -0,0 +1,2 @@
>+usr/lib
>+usr/include
>diff --git a/debian/libodp8-dev.install b/debian/libodp8-dev.install
>new file mode 100644
>index 0000000..b973af4
>--- /dev/null
>+++ b/debian/libodp8-dev.install
>@@ -0,0 +1,4 @@
>+usr/include/*
>+usr/lib/*/lib*.so
>+usr/lib/*/lib*.a
>+usr/lib/*/pkgconfig/*
>diff --git a/debian/libodp8.dirs b/debian/libodp8.dirs
>new file mode 100644
>index 0000000..6845771
>--- /dev/null
>+++ b/debian/libodp8.dirs
>@@ -0,0 +1 @@
>+usr/lib
>diff --git a/debian/libodp8.install b/debian/libodp8.install
>new file mode 100644
>index 0000000..3ddde58
>--- /dev/null
>+++ b/debian/libodp8.install
>@@ -0,0 +1 @@
>+usr/lib/*/lib*.so.*
>diff --git a/debian/odp8-bin.dirs b/debian/odp8-bin.dirs
>new file mode 100644
>index 0000000..e772481
>--- /dev/null
>+++ b/debian/odp8-bin.dirs
>@@ -0,0 +1 @@
>+usr/bin
>diff --git a/debian/odp8-bin.install b/debian/odp8-bin.install
>new file mode 100644
>index 0000000..1df36c6
>--- /dev/null
>+++ b/debian/odp8-bin.install
>@@ -0,0 +1 @@
>+usr/bin/*
>diff --git a/debian/rules b/debian/rules
>new file mode 100755
>index 0000000..797fc00
>--- /dev/null
>+++ b/debian/rules
>@@ -0,0 +1,16 @@
>+#!/usr/bin/make -f
>+
>+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
>+DPKG_EXPORT_BUILDFLAGS = 0
>+include /usr/share/dpkg/default.mk
>+
>+# main packaging script based on dh7 syntax
>+%:
>+	dh $@  --with autotools-dev
>+
>+override_dh_auto_configure:
>+	dh_auto_configure -- --enable-static
>+
>+.PHONY: override_dh_strip
>+override_dh_strip:
>+	dh_strip --dbg-package=libodp8-dbg
>diff --git a/debian/source/format b/debian/source/format
>new file mode 100644
>index 0000000..163aaf8
>--- /dev/null
>+++ b/debian/source/format
>@@ -0,0 +1 @@
>+3.0 (quilt)
>-- 
>2.1.4
>
>
>_______________________________________________
>lng-odp mailing list
>lng-odp@lists.linaro.org
>http://lists.linaro.org/mailman/listinfo/lng-odp
>
Cheers,
diff mbox

Patch

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..b8e47e4
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,12 @@ 
+opendataplane for Debian
+------------------------
+
+For up to date information please visit http://www.opendataplane.org
+The OpenDataPlane (ODP) project has been established to produce an open-source,
+cross-platform set of application programming interfaces (APIs) for the
+networking data plane.
+
+It provides a library such as openvswitch with a portable API that facilitates
+platform independence and access to hardware acceleration.
+
+ -- Anders Roxell <anders.roxell@linaro.org>  Mon, 22 Dec 2014 19:07:06 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0f4c8ee
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@ 
+opendataplane (0.8.0-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Anders Roxell <anders.roxell@linaro.org>  Mon, 22 Dec 2014 19:07:06 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@ 
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4f7e3e3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@ 
+Source: opendataplane
+Priority: optional
+Maintainer: Anders Roxell <anders.roxell@linaro.org>
+Build-Depends: debhelper (>= 9), autotools-dev
+Standards-Version: 3.9.6
+Section: libs
+Homepage: http://www.opendataplane.org/
+Vcs-Git: git://git.linaro.org/lng/odp.git
+Vcs-Browser: https://git.linaro.org/lng/odp.git
+
+Package: odp8-bin
+Section: libdevel
+Architecture: any
+Multi-Arch: allowed
+Depends: libodp8 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: Example binaries for OpenDataPlane
+ These are the executable examples from the reference implementation.
+
+Package: libodp8-dbg
+Priority: extra
+Section: debug
+Architecture: any
+Multi-Arch: same
+Depends: libodp8 (= ${binary:Version}), ${misc:Depends}
+Description: Debug symbols for OpenDataPlane
+ This is the OpenDataPlane library from the reference implementation
+ with debug turned on.
+
+Package: libodp8-dev
+Section: libdevel
+Architecture: any
+Multi-Arch: same
+Depends: libodp8 (= ${binary:Version}), ${misc:Depends}, libssl-dev
+Description: Development files for OpenDataPlane
+ These are the source file for the OpenDataPlane reference implementation.
+
+Package: libodp8
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Description: Library for OpenDataPlane
+ This is the OpenDataPlane library from the reference implementation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..74fecbc
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@ 
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: OpenDataPlane
+Source: <http://www.opendataplane.org>
+
+Files: *
+Copyright: 2013-2015, Linaro Limited All rights reserved.
+License: BSD-3-clause
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+  .
+  Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
+  .
+  Redistributions in binary form must reproduce the above copyright notice, this
+  list of conditions and the following disclaimer in the documentation and/or
+  other materials provided with the distribution.
+  .
+  Neither the name of Linaro Limited nor the names of its contributors may be
+  used to endorse or promote products derived from this software without specific
+  prior written permission.
+  .
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@ 
+README
diff --git a/debian/libodp8-dev.dirs b/debian/libodp8-dev.dirs
new file mode 100644
index 0000000..4418816
--- /dev/null
+++ b/debian/libodp8-dev.dirs
@@ -0,0 +1,2 @@ 
+usr/lib
+usr/include
diff --git a/debian/libodp8-dev.install b/debian/libodp8-dev.install
new file mode 100644
index 0000000..b973af4
--- /dev/null
+++ b/debian/libodp8-dev.install
@@ -0,0 +1,4 @@ 
+usr/include/*
+usr/lib/*/lib*.so
+usr/lib/*/lib*.a
+usr/lib/*/pkgconfig/*
diff --git a/debian/libodp8.dirs b/debian/libodp8.dirs
new file mode 100644
index 0000000..6845771
--- /dev/null
+++ b/debian/libodp8.dirs
@@ -0,0 +1 @@ 
+usr/lib
diff --git a/debian/libodp8.install b/debian/libodp8.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libodp8.install
@@ -0,0 +1 @@ 
+usr/lib/*/lib*.so.*
diff --git a/debian/odp8-bin.dirs b/debian/odp8-bin.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/odp8-bin.dirs
@@ -0,0 +1 @@ 
+usr/bin
diff --git a/debian/odp8-bin.install b/debian/odp8-bin.install
new file mode 100644
index 0000000..1df36c6
--- /dev/null
+++ b/debian/odp8-bin.install
@@ -0,0 +1 @@ 
+usr/bin/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..797fc00
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@ 
+#!/usr/bin/make -f
+
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DPKG_EXPORT_BUILDFLAGS = 0
+include /usr/share/dpkg/default.mk
+
+# main packaging script based on dh7 syntax
+%:
+	dh $@  --with autotools-dev
+
+override_dh_auto_configure:
+	dh_auto_configure -- --enable-static
+
+.PHONY: override_dh_strip
+override_dh_strip:
+	dh_strip --dbg-package=libodp8-dbg
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@ 
+3.0 (quilt)