build xcat-openstack on ubuntu

This commit is contained in:
xq2005 2013-11-07 00:12:12 -08:00
parent 770f50f9ba
commit 57ec0d82b6
4 changed files with 73 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

View File

@ -22,9 +22,19 @@ install:
dh_testdir
dh_testroot
dh_installdirs
`pwd`/db2man
dh_install -X".svn"
chmod 755 `pwd`/debian/xcat-openstack/opt/xcat/lib/perl/xCAT_schema
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/lib/perl/xCAT_schema/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/lib/perl/xCAT_plugin/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/lib/perl/xCAT/*
chmod 755 `pwd`/debian/xcat-openstack/opt/xcat/sbin/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/share/man/man5/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/share/doc/man5/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/share/man/man7/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/share/doc/man7/*
chmod 755 `pwd`/debian/xcat-openstack/install/postscripts/*
chmod 644 `pwd`/debian/xcat-openstack/opt/xcat/share/xcat/*
dh_link
binary-indep: build install