diff --git a/perl-xCAT/debian/perl-xcat.install b/perl-xCAT/debian/perl-xcat.install index a6df29d24..1fcc2afc2 100644 --- a/perl-xCAT/debian/perl-xcat.install +++ b/perl-xCAT/debian/perl-xcat.install @@ -1 +1,7 @@ xCAT/* usr/lib/perl5/xCAT +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 +LICENSE.html opt/xcat/share/doc/packages/perl-xCAT +README opt/xcat/ \ No newline at end of file diff --git a/perl-xCAT/debian/postrm b/perl-xCAT/debian/postrm new file mode 100644 index 000000000..e9d178f89 --- /dev/null +++ b/perl-xCAT/debian/postrm @@ -0,0 +1,43 @@ +#!/bin/sh +# postrm script for perl-xcat +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + upgrade) + if [ -x /etc/init.d/xcatd ] && [ -f "/proc/cmdline" ]; then + . /etc/profile.d/xcat.sh + /etc/init.d/xcatd reload + fi + ;; + purge|remove|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm 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 diff --git a/perl-xCAT/debian/rules b/perl-xCAT/debian/rules index 6101f8b63..df51f967b 100755 --- a/perl-xCAT/debian/rules +++ b/perl-xCAT/debian/rules @@ -41,6 +41,14 @@ binary-arch: build install dh_installdocs # dh_installexamples dh_install + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/lib/perl/xCAT/* + chmod 755 `pwd`/debian/perl-xcat/opt/xcat/lib/perl/xCAT/data + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/packages/perl-xCAT/* + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/README + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/man/man5/* + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/man5/* + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/man/man7/* + chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/man7/* # dh_installmenu # dh_installdebconf # dh_installlogrotate