>From f879d2afd8cf706f4eb51f5efcf4fec1a2d8cd22 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Thu, 22 Sep 2011 17:03:33 +0100 Subject: [PATCH] Add debian support. Users can build a package by doing: debuild -i -uc -us -b The package will be created in the directory above. Adding a debian/ subdirectory is a temporary measure to allow Debian and Ubuntu users to use Oz. When we have found a Debian maintainer, we can drop this directory to make the maintainer's job easier. --- debian/.gitignore | 9 +++++++++ debian/README | 6 ++++++ debian/README.Debian | 9 +++++++++ debian/README.source | 9 +++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 32 ++++++++++++++++++++++++++++++++ debian/copyright | 41 +++++++++++++++++++++++++++++++++++++++++ debian/docs | 3 +++ debian/postinst | 4 ++++ debian/pycompat | 1 + debian/rules | 18 ++++++++++++++++++ 12 files changed, 138 insertions(+), 0 deletions(-) create mode 100644 debian/.gitignore create mode 100644 debian/README create mode 100644 debian/README.Debian create mode 100644 debian/README.source 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 100755 debian/postinst create mode 100644 debian/pycompat create mode 100755 debian/rules diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..07c90e8 --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,9 @@ +*.debhelper +*.debhelper.log +*.substvars +files +oz/ +python-module-stampdir/ +source/ +stamp-* +tmp/ diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..e447c78 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package oz +---------------------------- + +Comments regarding the Package + + -- Richard Jones Thu, 22 Sep 2011 16:17:34 +0100 diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..90af275 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,9 @@ +oz for Debian +------------- + +This is an experimental Oz package for Debian. Please send bug +reports to the Aeolus Project mailing list: + +http://aeolusproject.org/contact.html#developer + + -- Richard Jones Thu, 22 Sep 2011 16:17:34 +0100 diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..53d2440 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,9 @@ +oz for Debian +------------- + + + + + + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..15e34f6 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +oz (0.7.0-4) unstable; urgency=low + + * Initial Release. + + -- Richard Jones Thu, 22 Sep 2011 16:17:34 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..d14374b --- /dev/null +++ b/debian/control @@ -0,0 +1,32 @@ +Source: oz +Section: utils +Priority: extra +Maintainer: Richard Jones +Build-Depends: debhelper (>= 7.0.50~), cdbs, + python (>= 2.5) +Standards-Version: 3.8.4 +Homepage: http://aeolusproject.org/oz.html +Vcs-Git: git://github.com/clalancette/oz.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/oz.git;a=summary +XS-Python-Version: ${python:Versions} + +Package: oz +Architecture: all +Depends: ${misc:Depends}, ${python:Depends}, + python (>= 2.5), +# for gvnccapture, but only packaged in Sid: + genisoimage, + gvncviewer, + libvirt-dev, + mtools, + openssh-client, + python-libguestfs, + python-libxml2, + python-libvirt, + python-pycurl, + python-numpy, + python-m2crypto, + python-parted +Description: installing guest OSs with only minimal input the user + Oz is a tool for automatically installing guest OSs with only minimal + up-front input from the user. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0d8e0e3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +This work was packaged for Debian by: + + Richard Jones on Thu, 22 Sep 2011 16:17:34 +0100 + +It was downloaded from: + + http://aeolusproject.org/oz.html + +Upstream Author(s): + + Chris Lalancette + +Copyright: + + Copyright (C) 2010-2011 Chris Lalancette + +License: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; + version 2.1 of the License. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 + USA + +On Debian systems, the complete text of the GNU General +Public License version 2 can be found in "/usr/share/common-licenses/LGPL-2.1". + +The Debian packaging is: + + Copyright (C) 2011 Richard Jones + +and is licensed under the LGPL version 2.1 or later, see above. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..5953afa --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +README +TODO +examples diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..a427438 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,4 @@ +#!/bin/sh - +if [ ! -f /etc/oz/id_rsa-icicle-gen ]; then + ssh-keygen -t rsa -b 2048 -N "" -f /etc/oz/id_rsa-icicle-gen >/dev/null 2>&1 +fi diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1eda7a7 --- /dev/null +++ b/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pysupport + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk + +# Add here any variable or target overrides you need. +install/oz:: + mkdir -p debian/oz/var/lib/oz/isocontent/ + mkdir -p debian/oz/var/lib/oz/isos/ + mkdir -p debian/oz/var/lib/oz/floppycontent/ + mkdir -p debian/oz/var/lib/oz/floppies/ + mkdir -p debian/oz/var/lib/oz/icicletmp/ + mkdir -p debian/oz/var/lib/oz/jeos/ + mkdir -p debian/oz/var/lib/oz/kernels/ + mkdir -p debian/oz/etc/oz + install -m 0644 oz.cfg debian/oz/etc/oz/ -- 1.7.2.5