All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] tools: Improve make deb
@ 2013-02-26  9:28 fantonifabio
  2013-02-26 12:58 ` Stefano Stabellini
  2013-02-26 16:27 ` Ian Jackson
  0 siblings, 2 replies; 47+ messages in thread
From: fantonifabio @ 2013-02-26  9:28 UTC (permalink / raw)
  To: xen-devel; +Cc: Fabio Fantoni, Ian.Jackson, Ian.Campbell, Stefano.Stabellini

From: Fabio Fantoni <fabio.fantoni@heliman.it>

Changes from v1:
- Added on description that this make a build for testing only.
- Improved add/remove of main service.

I reposted this patch after one year because I see recent
interest of some users about complete Xen debian package.
I also thinks like Stefano and Ian it's more important help to
improve official package and make here only this small
improvements.
I'll done improvements of posts of one year ago except for
remove of services that I think is useful but the main
change for good testing deb are remove of version from name
and add of conf file.
I started testing experimental debian packages of qemu and
seabios 2 months ago, I'll do the patch to integrate them
into experimental xen package if no one will do it.
So there will finally be complete xen even in official deb.

Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>
---
 tools/misc/mkdeb |   30 ++++++++++++++++++++++++------
 1 file changed, 24 insertions(+), 6 deletions(-)

diff --git a/tools/misc/mkdeb b/tools/misc/mkdeb
index 2e40747..fe7e1b1 100644
--- a/tools/misc/mkdeb
+++ b/tools/misc/mkdeb
@@ -33,7 +33,7 @@ fi
 # Fill in the debian boilerplate
 mkdir -p deb/DEBIAN
 cat >deb/DEBIAN/control <<EOF
-Package: xen-upstream-$version
+Package: xen-upstream
 Source: xen-upstream
 Version: $version
 Architecture: $arch
@@ -41,15 +41,33 @@ Maintainer: Unmaintained snapshot
 Section: admin
 Priority: optional
 Installed-Size: $(du -ks deb | cut -f1)
-Description: Xen hypervisor and tools, version $version
- This package contains the Xen hypervisor and associated tools, built
- from a source tree.  It is not a fully packaged and supported Xen, just
- the output of a xen "make dist" wrapped in a .deb to make it easy to
- uninstall.
+Description: Xen testing build, version $version
+ Warning: This is a custom testing build of Xen; it is not an
+ officially supported Debian package. Please not distribute.
+ It is just the output of a xen "make dist" wrapped in a .deb
+ to make it easy to update and uninstall.
+EOF
+cat >deb/DEBIAN/conffiles <<EOF
+/etc/xen/xl.conf
+/etc/xen/xend-config.sxp
+/etc/default/xendomains
+/etc/default/xencommons
+EOF
+cat >deb/DEBIAN/postinst <<EOF
+#!/bin/bash -e
+insserv xencommons &&
+insserv xendomains
+EOF
+cat >deb/DEBIAN/postrm <<EOF
+#!/bin/bash -e
+insserv -r xendomains &&
+insserv -r xencommons
 EOF
 
 # Package it up
 chown -R root:root deb
+chmod +x deb/DEBIAN/postinst
+chmod +x deb/DEBIAN/postrm
 dpkg --build deb xen-upstream-$version.deb
 
 # Tidy up after ourselves
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2013-03-07 10:46 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26  9:28 [PATCH v2] tools: Improve make deb fantonifabio
2013-02-26 12:58 ` Stefano Stabellini
2013-02-26 13:09   ` Ian Campbell
2013-02-26 13:12     ` Stefano Stabellini
2013-02-26 13:18       ` Ian Campbell
2013-02-26 14:16         ` Fabio Fantoni
2013-02-26 14:23           ` Alex Bligh
2013-02-26 15:03             ` Fabio Fantoni
2013-02-26 15:12               ` Ian Campbell
2013-02-26 15:40                 ` Fabio Fantoni
2013-02-26 15:49                   ` Ian Campbell
2013-02-26 14:22     ` Alex Bligh
2013-02-26 16:27 ` Ian Jackson
2013-02-26 16:45   ` Stefano Stabellini
2013-02-26 17:09     ` Ian Campbell
2013-02-26 17:09     ` Tim Deegan
2013-02-26 17:12       ` Ian Jackson
2013-02-26 17:20         ` Tim Deegan
2013-02-26 17:22           ` Ian Jackson
2013-02-26 17:25             ` Tim Deegan
2013-02-26 17:33               ` Stefano Stabellini
2013-02-26 17:39                 ` Ian Campbell
2013-02-27 10:54                   ` George Dunlap
2013-02-27 11:16                     ` Ian Campbell
2013-02-27 11:58                     ` Stefano Stabellini
2013-02-27 20:00                       ` Alex Bligh
2013-02-27 20:07                         ` Ian Campbell
2013-02-28  9:40                           ` Stefan Bader
2013-02-28 10:25                             ` Ian Campbell
2013-02-28 10:51                             ` George Dunlap
2013-02-28 11:53                               ` Ian Jackson
2013-02-28 12:03                                 ` George Dunlap
2013-02-28 15:11                                   ` Ian Jackson
2013-02-28 18:31                               ` Alex Bligh
2013-03-01  9:35                                 ` Tim Deegan
2013-03-04 15:30                                   ` Alex Bligh
2013-03-07 10:46                                     ` Tim Deegan
2013-02-26 17:40                 ` Ian Jackson
2013-02-26 17:57                   ` Stefano Stabellini
2013-02-27 10:57                     ` George Dunlap
2013-02-27 11:19                     ` Ian Campbell
2013-02-27 17:12                       ` Ian Jackson
2013-02-27 17:17                       ` Tim Deegan
2013-02-28 16:12                         ` [PATCH v2] tools: Improve make deb [and 1 more messages] Ian Jackson
2013-02-26 17:44                 ` [PATCH v2] tools: Improve make deb Tim Deegan
2013-02-26 17:46           ` Sander Eikelenboom
2013-02-26 17:50             ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.