[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] tools: Improve make deb
# 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@xxxxxxxxxx> 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:
improve_make_deb.patch Attachment:
smime.p7s _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |