debian packages should work now. build-debs should take care of everything
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4e9d2d14f5
commit
0db9774360
13
build-debs
Executable file
13
build-debs
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
# Accepts directories to build packages from on the commandline, but defaults
|
||||
# to building: perl-xCAT-2.0 and xCAT-client-2.0
|
||||
|
||||
packages="${@:-perl-xCAT-2.0 xCAT-client-2.0}"
|
||||
|
||||
for pkg in $packages; do
|
||||
mkdir -p debs/$pkg
|
||||
echo Building .dsc source package for $pkg
|
||||
cd $pkg
|
||||
svn-buildpackage --svn-ignore --svn-lintian --svn-move-to=../debs/$pkg
|
||||
cd -
|
||||
done
|
2
debperldepends
Executable file → Normal file
2
debperldepends
Executable file → Normal file
@ -7,7 +7,7 @@ find . -name .svn -prune -o -type f \
|
||||
| xargs grep -hE '^\s*(use|require) ' \
|
||||
| while read mod; do
|
||||
pkg=$( awk '{ sub(";", "", $2);
|
||||
sub("::", "-", $2);
|
||||
gsub("::", "-", $2);
|
||||
print $2 }' <<<"$mod" \
|
||||
| tr '[:upper:]' '[:lower:]' )
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# debian doesn't like caps in package names (and we want to trim the .svn dirs)
|
||||
[ -d xcat-client-2.0 ] || cp -R xCAT-client-2.0 xcat-client-2.0
|
||||
cd xcat-client-2.0
|
||||
#rm debian/files
|
||||
find . -name .svn | xargs rm -rf
|
||||
deps=$(../debperldepends)
|
||||
sed -e "s/###debian-depends###/$deps/" <debian/control.template >debian/control
|
||||
dpkg-buildpackage -b
|
||||
cd ..
|
||||
rm -rf xcat-client-2.0
|
||||
|
@ -1,13 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# debian doesn't like caps in package names
|
||||
[ -d perl-xcat-2.0 ] || cp -R perl-xCAT-2.0 perl-xcat-2.0
|
||||
cd perl-xcat-2.0
|
||||
#rm debian/files
|
||||
find . -name .svn | xargs rm -rf
|
||||
deps=$(../debperldepends)
|
||||
sed -e "s/###debian-depends###/$deps/" <debian/control.template >debian/control
|
||||
dpkg-buildpackage -b
|
||||
cd ..
|
||||
rm -rf perl-xcat-2.0
|
||||
|
@ -1,6 +1,6 @@
|
||||
perl-xcat (2.0-1) testing; urgency=low
|
||||
perl-xcat (2.0-1) lenny; urgency=low
|
||||
|
||||
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||
* Initial release
|
||||
|
||||
-- Isaac Freeman <memotype@gmail.com> Fri, 18 Apr 2008 11:42:09 -0400
|
||||
-- Isaac Freeman <ifreeman@us.ibm.com> Thu, 08 May 2008 13:14:33 -0400
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
Source: perl-xcat
|
||||
Section: libs
|
||||
Priority: extra
|
||||
Maintainer: Isaac Freeman <memotype@gmail.com>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Maintainer: Isaac Freeman <ifreeman@us.ibm.com>
|
||||
Build-Depends: debhelper (>= 5), libdbi-perl
|
||||
Standards-Version: 3.7.2
|
||||
|
||||
Package: perl-xcat
|
||||
Architecture: any
|
||||
Depends: ${perl:Depends}, libio-socket-ssl-perl, libxml-simple-perl, libstorable-perl, libsys-syslog-perl, libsnmp-perl, libdbi-perl
|
||||
Architecture: all
|
||||
Depends: ${perl:Depends}, libio-socket-ssl-perl, libxml-simple-perl, libstorable-perl, libsys-syslog-perl, libsnmp-perl, libdbi-perl
|
||||
Description: xCAT perl libraries
|
||||
Provides perl xCAT libraries for core functionality. Required for all xCAT installations.
|
||||
Includes xCAT::Table, xCAT::NodeRange, among others.
|
||||
|
@ -1,8 +1,8 @@
|
||||
Source: perl-xcat
|
||||
Section: libs
|
||||
Priority: extra
|
||||
Maintainer: Isaac Freeman <memotype@gmail.com>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Maintainer: Isaac Freeman <ifreeman@us.ibm.com>
|
||||
Build-Depends: debhelper (>= 5), libdbi-perl
|
||||
Standards-Version: 3.7.2
|
||||
|
||||
Package: perl-xcat
|
||||
|
@ -1,3 +1,2 @@
|
||||
usr/lib/perl/xCAT
|
||||
usr/lib/perl/xCAT/data
|
||||
|
||||
usr/lib/perl5/xCAT
|
||||
usr/lib/perl5/xCAT/data
|
||||
|
@ -1,11 +1,5 @@
|
||||
xcat-client (2.0-2) testing; urgency=low
|
||||
xcat-client (2.0-1) lenny; urgency=low
|
||||
|
||||
* Testing re-release
|
||||
|
||||
-- Isaac Freeman <memotype@gmail.com> Mon, 21 Apr 2008 15:20:37 -0400
|
||||
* Initial release
|
||||
|
||||
xcat-client (2.0-1) testing; urgency=low
|
||||
|
||||
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||
|
||||
-- Isaac Freeman <memotype@gmail.com> Tue, 15 Apr 2008 17:12:26 -0400
|
||||
-- Isaac Freeman <ifreeman@us.ibm.com> Thu, 08 May 2008 13:16:08 -0400
|
||||
|
@ -1,7 +1,7 @@
|
||||
Source: xcat-client
|
||||
Section: main/admin
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Isaac Freeman <memotype@gmail.com>
|
||||
Maintainer: Isaac Freeman <ifreeman@us.ibm.com>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.7.2
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
Source: xcat-client
|
||||
Section: admin
|
||||
Priority: extra
|
||||
Maintainer: Isaac Freeman <memotype@gmail.com>
|
||||
Maintainer: Isaac Freeman <ifreeman@us.ibm.com>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.7.2
|
||||
|
||||
|
@ -1,3 +1,12 @@
|
||||
This package was debianized by Isaac Freeman <ifreeman@us.ibm.com> on
|
||||
Tue May 6 11:40:34 EDT 2008
|
||||
|
||||
It was downloaded via svn from http://sourceforge.net/projects/xcat/
|
||||
|
||||
Upstream Author(s): IBM
|
||||
|
||||
Copyright:
|
||||
|
||||
Eclipse Public License - v 1.0
|
||||
|
||||
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
|
||||
|
2
xCAT-client-2.0/debian/files
Normal file
2
xCAT-client-2.0/debian/files
Normal file
@ -0,0 +1,2 @@
|
||||
xcat-client_2.0-2_i386.deb admin extra
|
||||
xcat-client_2.0-2_i386.deb admin extra
|
@ -13,6 +13,9 @@ export DH_COMPAT=5
|
||||
|
||||
|
||||
build:
|
||||
echo *** debian/rules build
|
||||
echo -n ***
|
||||
pwd
|
||||
./xpod2man
|
||||
|
||||
clean:
|
||||
@ -21,6 +24,9 @@ clean:
|
||||
dh_clean -d
|
||||
|
||||
install:
|
||||
echo *** debian/rules install
|
||||
echo -n ***
|
||||
pwd
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installdirs
|
||||
@ -34,6 +40,9 @@ binary-indep: build install
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch:
|
||||
echo *** debian/rules binary-arch
|
||||
echo -n ***
|
||||
pwd
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
@ -53,7 +62,7 @@ binary-arch:
|
||||
dh_installman
|
||||
# dh_link
|
||||
# dh_strip
|
||||
# dh_compress
|
||||
dh_compress
|
||||
# dh_fixperms
|
||||
dh_perl
|
||||
dh_makeshlibs
|
||||
|
@ -1,49 +1,49 @@
|
||||
xcatclient bin/rpower
|
||||
xcatclient bin/rscan
|
||||
bin/xcatclient sbin/makedhcp
|
||||
bin/xcatclient sbin/makehosts
|
||||
bin/xcatclient sbin/nodeset
|
||||
bin/xcatclient sbin/setupiscsidev
|
||||
bin/xcatclient sbin/makeconservercf
|
||||
bin/xcatclient bin/rbeacon
|
||||
bin/xcatclient bin/rvitals
|
||||
bin/xcatclient bin/nodestat
|
||||
bin/xcatclient bin/rinv
|
||||
bin/xcatclient bin/rspreset
|
||||
bin/xcatclient bin/rsetboot
|
||||
bin/xcatclient bin/rbootseq
|
||||
bin/xcatclient bin/reventlog
|
||||
bin/xcatclient bin/nodels
|
||||
bin/xcatclient bin/nodech
|
||||
bin/xcatclient bin/noderm
|
||||
bin/xcatclient bin/rnetboot
|
||||
bin/xcatclient bin/getmacs
|
||||
bin/xcatclient bin/mkvm
|
||||
bin/xcatclient bin/rmvm
|
||||
bin/xcatclient bin/lsvm
|
||||
bin/xcatclient bin/chvm
|
||||
bin/xcatclient bin/tabgrep
|
||||
bin/xcatclientnnr bin/lsslp
|
||||
bin/xcatclientnnr sbin/tabdump
|
||||
bin/xcatclientnnr sbin/packimage
|
||||
bin/xcatclientnnr sbin/makedns
|
||||
bin/xcatclientnnr bin/gettab
|
||||
bin/xcatclientnnr sbin/nodeadd
|
||||
bin/xcatclientnnr sbin/makenetworks
|
||||
bin/xcatclientnnr sbin/copycds
|
||||
bin/xcatclientnnr bin/regnotif
|
||||
bin/xcatclientnnr bin/unregnotif
|
||||
bin/xcatclientnnr bin/monstart
|
||||
bin/xcatclientnnr bin/monstop
|
||||
bin/xcatclientnnr bin/monls
|
||||
bin/xcatclientnnr sbin/monupdate
|
||||
bin/xcatclientnnr sbin/monaddnode
|
||||
bin/xcatclientnnr sbin/monrmnode
|
||||
bin/xcatclientnnr bin/mkdsklsnode
|
||||
bin/xcatclientnnr bin/mkdsklsimage
|
||||
bin/xcatDBcmds bin/mkdef
|
||||
bin/xcatDBcmds bin/chdef
|
||||
bin/xcatDBcmds bin/lsdef
|
||||
bin/xcatDBcmds bin/rmdef
|
||||
bin/xcatDBcmds bin/xcat2nim
|
||||
bin/xdsh bin/xdcp
|
||||
usr/bin/xcatclient usr/bin/rpower
|
||||
usr/bin/xcatclient usr/bin/rscan
|
||||
usr/bin/xcatclient usr/sbin/makedhcp
|
||||
usr/bin/xcatclient usr/sbin/makehosts
|
||||
usr/bin/xcatclient usr/sbin/nodeset
|
||||
usr/bin/xcatclient usr/sbin/setupiscsidev
|
||||
usr/bin/xcatclient usr/sbin/makeconservercf
|
||||
usr/bin/xcatclient usr/bin/rbeacon
|
||||
usr/bin/xcatclient usr/bin/rvitals
|
||||
usr/bin/xcatclient usr/bin/nodestat
|
||||
usr/bin/xcatclient usr/bin/rinv
|
||||
usr/bin/xcatclient usr/bin/rspreset
|
||||
usr/bin/xcatclient usr/bin/rsetboot
|
||||
usr/bin/xcatclient usr/bin/rbootseq
|
||||
usr/bin/xcatclient usr/bin/reventlog
|
||||
usr/bin/xcatclient usr/bin/nodels
|
||||
usr/bin/xcatclient usr/bin/nodech
|
||||
usr/bin/xcatclient usr/bin/noderm
|
||||
usr/bin/xcatclient usr/bin/rnetboot
|
||||
usr/bin/xcatclient usr/bin/getmacs
|
||||
usr/bin/xcatclient usr/bin/mkvm
|
||||
usr/bin/xcatclient usr/bin/rmvm
|
||||
usr/bin/xcatclient usr/bin/lsvm
|
||||
usr/bin/xcatclient usr/bin/chvm
|
||||
usr/bin/xcatclient usr/bin/tabgrep
|
||||
usr/bin/xcatclientnnr usr/bin/lsslp
|
||||
usr/bin/xcatclientnnr usr/sbin/tabdump
|
||||
usr/bin/xcatclientnnr usr/sbin/packimage
|
||||
usr/bin/xcatclientnnr usr/sbin/makedns
|
||||
usr/bin/xcatclientnnr usr/bin/gettab
|
||||
usr/bin/xcatclientnnr usr/sbin/nodeadd
|
||||
usr/bin/xcatclientnnr usr/sbin/makenetworks
|
||||
usr/bin/xcatclientnnr usr/sbin/copycds
|
||||
usr/bin/xcatclientnnr usr/bin/regnotif
|
||||
usr/bin/xcatclientnnr usr/bin/unregnotif
|
||||
usr/bin/xcatclientnnr usr/bin/monstart
|
||||
usr/bin/xcatclientnnr usr/bin/monstop
|
||||
usr/bin/xcatclientnnr usr/bin/monls
|
||||
usr/bin/xcatclientnnr usr/sbin/monupdate
|
||||
usr/bin/xcatclientnnr usr/sbin/monaddnode
|
||||
usr/bin/xcatclientnnr usr/sbin/monrmnode
|
||||
usr/bin/xcatclientnnr usr/bin/mkdsklsnode
|
||||
usr/bin/xcatclientnnr usr/bin/mkdsklsimage
|
||||
usr/bin/xcatDBcmds usr/bin/mkdef
|
||||
usr/bin/xcatDBcmds usr/bin/chdef
|
||||
usr/bin/xcatDBcmds usr/bin/lsdef
|
||||
usr/bin/xcatDBcmds usr/bin/rmdef
|
||||
usr/bin/xcatDBcmds usr/bin/xcat2nim
|
||||
usr/bin/xdsh usr/bin/xdcp
|
||||
|
Loading…
Reference in New Issue
Block a user