From 191e8d09d4a5edd048f9989b95b80cf214501462 Mon Sep 17 00:00:00 2001 From: adalbas Date: Wed, 12 Oct 2011 16:10:26 +0000 Subject: [PATCH] update build deb packages for xCAT - removed dependencies for most of xcat-dep packages - updating packages changes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10755 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/debian/control | 3 ++- xCAT/debian/dirs | 4 +++- xCAT/debian/postinst | 13 ++++++++++--- xCAT/debian/prerm | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 5 deletions(-) create mode 100644 xCAT/debian/prerm diff --git a/xCAT/debian/control b/xCAT/debian/control index 1c154ec79..554322b4f 100644 --- a/xCAT/debian/control +++ b/xCAT/debian/control @@ -7,6 +7,7 @@ Standards-Version: 3.7.2 Package: xcat Architecture: all -Depends: ${perl:Depends}, xcat-server, xcat-client, libdbd-sqlite3-perl, dhcp3-server, apache2, expect, nfs-kernel-server, nmap, fping, bind9, vsftpd, libxml-parser-perl, atftp-xcat, conserver, yaboot-xcat, libnet-telnet-perl, ipmitool (>=1.8.9), xnba-undi, syslinux-xcat, xcat-nbroot-oss-x86, xcat-nbroot-core-x86, xcat-nbkernel-x86, xcat-nbroot-oss-amd64, xcat-nbroot-core-amd64, xcat-nbkernel-amd64, xcat-nbroot-oss-ppc64, xcat-nbroot-core-ppc64, xcat-nbkernel-ppc64, syslinux +Depends: ${perl:Depends}, xcat-server, xcat-client, libdbd-sqlite3-perl, dhcp3-server, apache2, expect, nfs-kernel-server, nmap, fping, bind9, vsftpd, libxml-parser-perl, xinetd, tftpd-hpa, tftp-hpa, conserver, libnet-telnet-perl, ipmitool (>=1.8.9), syslinux, libsys-virt-perl +Recommends: xnba-undi, yaboot-xcat Description: Server and configuration utilities of the xCAT management project xcat-server provides the core server and configuration management components of xCAT. This package should be installed on your management server diff --git a/xCAT/debian/dirs b/xCAT/debian/dirs index 16d64dfee..ef4317183 100644 --- a/xCAT/debian/dirs +++ b/xCAT/debian/dirs @@ -1,6 +1,8 @@ +install install/postscripts +install/postscripts/hostkeys install/prescripts +install/kdump opt/xcat/share/xcat etc/apache2/conf.d opt/xcat/share/doc/packages/xCAT -etc diff --git a/xCAT/debian/postinst b/xCAT/debian/postinst index d51fc8cdc..fa1dc428e 100644 --- a/xCAT/debian/postinst +++ b/xCAT/debian/postinst @@ -1,5 +1,5 @@ #!/bin/sh -# postinst script for openmpi +# postinst script for xCAT # # see: dh_installdeb(1) @@ -20,8 +20,15 @@ set -e case "$1" in configure) - #. /etc/profile.d/xcat.sh - #xcatconfig -i + . /etc/profile.d/xcat.sh + if [ -f /tmp/xCAT_upgrade ] + then + xcatconfig -u + rm /tmp/xCAT_upgrade + else + xcatconfig -i -d -s + fi + /etc/init.d/apache2 restart ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/xCAT/debian/prerm b/xCAT/debian/prerm new file mode 100644 index 000000000..e527e288c --- /dev/null +++ b/xCAT/debian/prerm @@ -0,0 +1,41 @@ +#!/bin/sh +# prerm script for xCAT +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + upgrade) + touch /tmp/xCAT_upgrade.tmp + ;; + remove|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0