hpoa packaging fixes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5154 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4fc37f936b
commit
4df9f7cfec
2
perl-xCAT/xCAT/hpoa.pm → perl-xCAT/include/hpoa.pm
Executable file → Normal file
2
perl-xCAT/xCAT/hpoa.pm → perl-xCAT/include/hpoa.pm
Executable file → Normal file
@ -10,7 +10,7 @@
|
||||
## For example:
|
||||
## hpoa->new(oaAddress => '16.129.49.209');
|
||||
|
||||
package xCAT::hpoa;
|
||||
package hpoa;
|
||||
|
||||
use strict;
|
||||
|
@ -44,6 +44,7 @@ Includes xCAT::Table, xCAT::NodeRange, among others.
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/data
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/lib/include/
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/perl-xCAT
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man5
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man5
|
||||
@ -55,11 +56,13 @@ cp -r xCAT/* $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/
|
||||
chmod 644 $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/*
|
||||
chmod 755 $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/data
|
||||
chmod 644 $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/data/*
|
||||
cp -r include/* $RPM_BUILD_ROOT/%{prefix}/lib/include/
|
||||
chmod 644 $RPM_BUILD_ROOT/%{prefix}/lib/include/*
|
||||
|
||||
|
||||
# For now, don't ship these plugins - to avoid AIX dependency error.
|
||||
%ifnos linux
|
||||
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/hpoa.pm
|
||||
rm $RPM_BUILD_ROOT/%{prefix}/lib/include/hpoa.pm
|
||||
%endif
|
||||
|
||||
cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/perl-xCAT
|
||||
|
@ -12,6 +12,7 @@ BEGIN
|
||||
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
|
||||
}
|
||||
use lib "$::XCATROOT/lib/perl";
|
||||
use lib "$::XCATROOT/lib/include";
|
||||
|
||||
use strict;
|
||||
use xCAT::Table;
|
||||
@ -27,7 +28,7 @@ use Net::SSLeay qw(die_now die_if_ssl_error);
|
||||
use Data::Dumper;
|
||||
use POSIX "WNOHANG";
|
||||
use Getopt::Long;
|
||||
use xCAT::hpoa;
|
||||
use hpoa;
|
||||
|
||||
sub handled_commands {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user