From ffbfc9394a74d0344be5982a5fed9aa9fa28ad74 Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Mon, 7 Jan 2013 12:54:10 +0000 Subject: [PATCH] Add minideb patches --- Makefile | 5 +++ minideb/debian/README | 6 ++++ minideb/debian/README.Debian | 6 ++++ minideb/debian/README.source | 9 ++++++ minideb/debian/changelog | 5 +++ minideb/debian/compat | 1 + minideb/debian/control | 15 +++++++++ minideb/debian/copyright | 5 +++ minideb/debian/lintian-overrides | 1 + minideb/debian/rules | 15 +++++++++ minideb/debian/templates | 43 ++++++++++++++++++++++++++ minideb/debian/xen-4.2-mini.install | 3 ++ minideb/debian/xen-4.2-mini.postinst | 9 ++++++ minideb/mkdeb | 46 ++++++++++++++++++++++++++++ 14 files changed, 169 insertions(+) create mode 100644 minideb/debian/README create mode 100644 minideb/debian/README.Debian create mode 100644 minideb/debian/README.source create mode 100644 minideb/debian/changelog create mode 100644 minideb/debian/compat create mode 100644 minideb/debian/control create mode 100644 minideb/debian/copyright create mode 100644 minideb/debian/lintian-overrides create mode 100644 minideb/debian/rules create mode 100644 minideb/debian/templates create mode 100644 minideb/debian/xen-4.2-mini.install create mode 100644 minideb/debian/xen-4.2-mini.postinst create mode 100644 minideb/mkdeb diff --git a/Makefile b/Makefile index b54cfbf..3b73da1 100644 --- a/Makefile +++ b/Makefile @@ -137,6 +137,11 @@ world: deb: dist fakeroot sh ./tools/misc/mkdeb $(XEN_ROOT) $$($(MAKE) -C xen xenversion | grep -v :) +# Package a build in a .deb file +.PHONY: minideb +minideb: dist + sh ./minideb/mkdeb $(XEN_ROOT) $$($(MAKE) -C xen xenversion | grep -v :) + # clean doesn't do a kclean .PHONY: clean clean:: diff --git a/minideb/debian/README b/minideb/debian/README new file mode 100644 index 0000000..ac71c4e --- /dev/null +++ b/minideb/debian/README @@ -0,0 +1,6 @@ +The Debian Package xen-4.2-mini +---------------------------- + +Comments regarding the Package + + -- Alex Bligh Sat, 29 Jan 2011 15:29:55 +0000 diff --git a/minideb/debian/README.Debian b/minideb/debian/README.Debian new file mode 100644 index 0000000..1263228 --- /dev/null +++ b/minideb/debian/README.Debian @@ -0,0 +1,6 @@ +xen-4.2-mini for Debian +------------------------------- + + + + -- Alex Bligh Sat, 29 Jan 2011 15:29:55 +0000 diff --git a/minideb/debian/README.source b/minideb/debian/README.source new file mode 100644 index 0000000..441e2cb --- /dev/null +++ b/minideb/debian/README.source @@ -0,0 +1,9 @@ +xen-4.2-mini for Debian +------------------------------- + + + + + + diff --git a/minideb/debian/changelog b/minideb/debian/changelog new file mode 100644 index 0000000..0677b17 --- /dev/null +++ b/minideb/debian/changelog @@ -0,0 +1,5 @@ +xen-4.2-mini (4.2.0) unstable; urgency=low + + * Initial Release. + + -- Alex Bligh Sat, 29 Jan 2011 15:29:55 +0000 diff --git a/minideb/debian/compat b/minideb/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/minideb/debian/compat @@ -0,0 +1 @@ +5 diff --git a/minideb/debian/control b/minideb/debian/control new file mode 100644 index 0000000..258b1d7 --- /dev/null +++ b/minideb/debian/control @@ -0,0 +1,15 @@ +Source: xen-4.2-mini +Section: unknown +Priority: extra +Maintainer: Alex Bligh +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.3 +Homepage: http://www.flexiant.com/ + +Package: xen-4.2-mini +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Xen 4.2 Hypervisor minipackage + Xen 4.2 Hypervisor minipackage + + diff --git a/minideb/debian/copyright b/minideb/debian/copyright new file mode 100644 index 0000000..851317f --- /dev/null +++ b/minideb/debian/copyright @@ -0,0 +1,5 @@ +This work was packaged for Debian by: + + Alex Bligh on Sat, 29 Jan 2011 15:29:55 +0000 + +(c) 2011 Flexiant Limited diff --git a/minideb/debian/lintian-overrides b/minideb/debian/lintian-overrides new file mode 100644 index 0000000..06b80cb --- /dev/null +++ b/minideb/debian/lintian-overrides @@ -0,0 +1 @@ +xen-4.2-mini: dir-or-file-in-opt diff --git a/minideb/debian/rules b/minideb/debian/rules new file mode 100644 index 0000000..52d5053 --- /dev/null +++ b/minideb/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +export DH_ALWAYS_EXCLUDE=CVS:.svn +%: + dh $@ + +override_dh_installinit: + dh_installinit --update-rcd-params='defaults 70 10' --name=xencommons + dh_installinit --update-rcd-params='defaults 21 79' --name=xen-watchdog + +#override_dh_shlibdeps: +# dh_shlibdeps -X xvpagent-xen4 -X xvpagent-xen3 + +override_dh_usrlocal: + + diff --git a/minideb/debian/templates b/minideb/debian/templates new file mode 100644 index 0000000..0c43dd8 --- /dev/null +++ b/minideb/debian/templates @@ -0,0 +1,43 @@ +Template: xen-4.2-mini/present-extility-licence-1.0 +Type: note +Description: Extility Licence Agreement + PLACEHOLDER PARAGRAPH ONE + . + PLACEHOLDER PARAGRAPH TWO + . + PLACEHOLDER PARAGRAPH THREE + +Template: xen-4.2-mini/accepted-extility-licence-1.0 +Type: boolean +Default: false +Description: Do you accept the licence terms? + +Template: xen-4.2-mini/error-extility-licence-1.0 +Type: error +Description: Licence Rejected + If you do not accept this licence you cannot install this software. + The installation of this software will be fail and the server will + not be usable. + +Template: xen-4.2-mini/auth_notice +Type: note +Description: Authentication Details + We now need the details you registered on the Extility website + with. This will be used to fetch your licence information and + register this system with out servers. + +Template: xen-4.2-mini/extility_username +Type: string +Description: Registered Username + Please enter the username you registered on the Extility website. + +Template: xen-4.2-mini/extility_password +Type: password +Description: Registered Password + Please enter the password you registered on the Extility website. + +Template: xen-4.2-mini/error-userpass +Type: note +Description: Incorrect Username or Password + The username or password you entered was not recognised on the + Extility licence server. Please go back and try again. diff --git a/minideb/debian/xen-4.2-mini.install b/minideb/debian/xen-4.2-mini.install new file mode 100644 index 0000000..7dda5be --- /dev/null +++ b/minideb/debian/xen-4.2-mini.install @@ -0,0 +1,3 @@ +etc +usr +var diff --git a/minideb/debian/xen-4.2-mini.postinst b/minideb/debian/xen-4.2-mini.postinst new file mode 100644 index 0000000..dfc623c --- /dev/null +++ b/minideb/debian/xen-4.2-mini.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + + +#DEBHELPER# + +exit 0 + diff --git a/minideb/mkdeb b/minideb/mkdeb new file mode 100644 index 0000000..761a707 --- /dev/null +++ b/minideb/mkdeb @@ -0,0 +1,46 @@ +#!/bin/sh +# +# mkdeb: package the dist/install output of a Xen build in a .deb +# +# Takes 2 arguments, the path to the dist directory and the version + +set -e + +if test -z "$1" -o -z "$2" ; then + echo "usage: $0 path-to-XEN_ROOT xen-version" + exit 1 +fi + +cd $1 +version=$2 +if test "$XEN_TARGET_ARCH" = "x86_32"; then + arch=i386 +else + arch=amd64 +fi + +# Prepare the directory to package +cd dist +rm -rf deb +cp -a install deb +cp -a ../minideb/debian deb/ + +# Debian doesn't use /usr/lib64 for 64-bit libraries +if test -d deb/usr/lib64 ; then + cp -a deb/usr/lib64/* deb/usr/lib/ + rm -rf deb/usr/lib64 +fi + +# init directories +mv deb/etc/init.d/xencommons deb/debian/xen-4.2-mini.xencommons.init +mv deb/etc/init.d/xen-watchdog deb/debian/xen-4.2-mini.xen-watchdog.init + +# Don't want the symlinks to libraries in the package +# find deb/usr/lib -type l | xargs rm + +rm -rf deb/usr/share/doc deb/usr/include + +( cd deb ; debuild -us -uc -b) + +# Tidy up after ourselves +#rm -rf deb