Skip to content

Commit

Permalink
Add minideb patches
Browse files Browse the repository at this point in the history
  • Loading branch information
abligh committed Jan 7, 2013
1 parent 40131de commit ffbfc93
Show file tree
Hide file tree
Showing 14 changed files with 169 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Expand Up @@ -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::
Expand Down
6 changes: 6 additions & 0 deletions minideb/debian/README
@@ -0,0 +1,6 @@
The Debian Package xen-4.2-mini
----------------------------

Comments regarding the Package

-- Alex Bligh <alex@flexiant.com> Sat, 29 Jan 2011 15:29:55 +0000
6 changes: 6 additions & 0 deletions minideb/debian/README.Debian
@@ -0,0 +1,6 @@
xen-4.2-mini for Debian
-------------------------------

<possible notes regarding this package - if none, delete this file>

-- Alex Bligh <alex@flexiant.com> Sat, 29 Jan 2011 15:29:55 +0000
9 changes: 9 additions & 0 deletions minideb/debian/README.source
@@ -0,0 +1,9 @@
xen-4.2-mini for Debian
-------------------------------

<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>




5 changes: 5 additions & 0 deletions minideb/debian/changelog
@@ -0,0 +1,5 @@
xen-4.2-mini (4.2.0) unstable; urgency=low

* Initial Release.

-- Alex Bligh <alex@flexiant.com> Sat, 29 Jan 2011 15:29:55 +0000
1 change: 1 addition & 0 deletions minideb/debian/compat
@@ -0,0 +1 @@
5
15 changes: 15 additions & 0 deletions minideb/debian/control
@@ -0,0 +1,15 @@
Source: xen-4.2-mini
Section: unknown
Priority: extra
Maintainer: Alex Bligh <alex@flexiant.com>
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


5 changes: 5 additions & 0 deletions minideb/debian/copyright
@@ -0,0 +1,5 @@
This work was packaged for Debian by:

Alex Bligh <alex@flexiant.com> on Sat, 29 Jan 2011 15:29:55 +0000

(c) 2011 Flexiant Limited
1 change: 1 addition & 0 deletions minideb/debian/lintian-overrides
@@ -0,0 +1 @@
xen-4.2-mini: dir-or-file-in-opt
15 changes: 15 additions & 0 deletions 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:


43 changes: 43 additions & 0 deletions 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.
3 changes: 3 additions & 0 deletions minideb/debian/xen-4.2-mini.install
@@ -0,0 +1,3 @@
etc
usr
var
9 changes: 9 additions & 0 deletions minideb/debian/xen-4.2-mini.postinst
@@ -0,0 +1,9 @@
#!/bin/sh

set -e


#DEBHELPER#

exit 0

46 changes: 46 additions & 0 deletions 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

0 comments on commit ffbfc93

Please sign in to comment.