build xcat-openstack on ubuntu

This commit is contained in:
xq2005 2013-11-06 23:47:48 -08:00
parent 3c1268bc75
commit 4e47350c59
3 changed files with 63 additions and 0 deletions

View File

@ -1 +1,11 @@
opt/xcat/lib/perl/xCAT_schema
opt/xcat/lib/perl/xCAT_plugin
opt/xcat/lib/perl/xCAT
opt/xcat/share/xcat/mypostscript
opt/xcat/share/xcat/templates
opt/xcat/sbin
opt/xcat/share/man/man5
opt/xcat/share/doc/man5
opt/xcat/share/man/man7
opt/xcat/share/doc/man7
install/postscripts

View File

@ -1 +1,10 @@
lib/perl/xCAT_schema/* opt/xcat/lib/perl/xCAT_schema/
lib/perl/xCAT_plugin/* opt/xcat/lib/perl/xCAT_plugin/
lib/perl/xCAT/* opt/xcat/lib/perl/xCAT/
sbin/* opt/xcat/sbin/
share/man/man5/* opt/xcat/share/man/man5/
share/doc/man5/* opt/xcat/share/doc/man5/
share/man/man7/* opt/xcat/share/man/man7/
share/doc/man7/* opt/xcat/share/doc/man7/
postscripts/* install/postscripts/
share/xcat/* opt/xcat/share/xcat/

View File

@ -0,0 +1,44 @@
#!/bin/sh
# postinst script for xCAT
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
if [ -f "/proc/cmdline" ];then
if [ -f "/opt/xcat/sbin/xcatd" ];then
/etc/init.d/xcatd reload
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst 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