All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Fantoni <fantonifabio@tiscali.it>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] tools: Improve make deb
Date: Mon, 23 Apr 2012 13:59:30 +0200	[thread overview]
Message-ID: <4F954422.1010803@tiscali.it> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 1511 bytes --]

# HG changeset patch
# User Fabio Fantoni
# Date 1335181425 -7200
# Node ID 98a2059a356e51416675f6d460ccd406aa8144e1
# Parent  b3375cbe809eb8398b75cd2b1590b957134e01f8
tools: Improve make deb
- Remove version from installed package name
- Add conffiles to manage main config files on package update
- Add/remove of main services (xencommons, xendomains)

Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>

diff -r b3375cbe809e -r 98a2059a356e tools/misc/mkdeb
--- a/tools/misc/mkdeb    lun apr 23 10:26:55 2012 +0200
+++ b/tools/misc/mkdeb    lun apr 23 13:43:45 2012 +0200
@@ -33,7 +33,7 @@
  # 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
@@ -47,9 +47,27 @@
   the output of a xen "make dist" wrapped in a .deb to make it easy to
   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
+update-rc.d xendomains remove >/dev/null
+update-rc.d xencommons remove >/dev/null
+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


[-- Attachment #1.1.2: improve_make_deb.patch --]
[-- Type: text/plain, Size: 1492 bytes --]

# HG changeset patch
# User Fabio Fantoni
# Date 1335181425 -7200
# Node ID 98a2059a356e51416675f6d460ccd406aa8144e1
# Parent  b3375cbe809eb8398b75cd2b1590b957134e01f8
tools: Improve make deb
- Remove version from installed package name
- Add conffiles to manage main config files on package update
- Add/remove of main services (xencommons, xendomains)

Signed-off-by: Fabio Fantoni <fabio.fantoni@heliman.it>

diff -r b3375cbe809e -r 98a2059a356e tools/misc/mkdeb
--- a/tools/misc/mkdeb	lun apr 23 10:26:55 2012 +0200
+++ b/tools/misc/mkdeb	lun apr 23 13:43:45 2012 +0200
@@ -33,7 +33,7 @@
 # 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
@@ -47,9 +47,27 @@
  the output of a xen "make dist" wrapped in a .deb to make it easy to
  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
+update-rc.d xendomains remove >/dev/null
+update-rc.d xencommons remove >/dev/null
+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

[-- Attachment #1.2: Firma crittografica S/MIME --]
[-- Type: application/pkcs7-signature, Size: 4497 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

             reply	other threads:[~2012-04-23 11:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-23 11:59 Fabio Fantoni [this message]
2012-04-24 13:15 ` [PATCH] tools: Improve make deb Ian Jackson
2012-04-24 14:39   ` Fantu
2012-04-24 13:22 ` Ian Campbell
2012-04-24 13:46   ` George Dunlap
2012-04-24 13:56     ` George Dunlap
2012-04-24 14:22       ` Ian Campbell
2012-04-24 15:54       ` Ian Jackson
2012-04-24 14:02     ` Dario Faggioli
2012-04-24 14:20     ` Ian Campbell
2012-04-24 16:00       ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F954422.1010803@tiscali.it \
    --to=fantonifabio@tiscali.it \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.