From d5a8048fa7f5a06c431012931cbedde3bc8831ac Mon Sep 17 00:00:00 2001 From: memotype Date: Mon, 5 May 2008 21:04:10 +0000 Subject: [PATCH] Scripts and control files for building debian packages. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1281 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- debperldepends | 36 +++++ makeclientdeb | 15 ++ makedebs | 3 + makeperlxcatdeb | 13 ++ perl-xCAT-2.0/debian/changelog | 7 +- perl-xCAT-2.0/debian/control | 12 +- perl-xCAT-2.0/debian/control.template | 14 ++ perl-xCAT-2.0/debian/copyright | 100 ++++++++++-- perl-xCAT-2.0/debian/dirs | 3 + perl-xCAT-2.0/debian/docs | 2 + perl-xCAT-2.0/debian/perl-xcat.install | 1 + perl-xCAT-2.0/debian/perl-xcat.substvars | 1 + perl-xCAT-2.0/debian/postinst | 41 +++++ perl-xCAT-2.0/debian/rules | 98 +++++------- xCAT-client-2.0/debian/changelog | 12 +- xCAT-client-2.0/debian/compat | 1 + xCAT-client-2.0/debian/control | 10 +- xCAT-client-2.0/debian/control.template | 12 ++ xCAT-client-2.0/debian/copyright | 99 ++++++++++-- xCAT-client-2.0/debian/dirs | 7 + xCAT-client-2.0/debian/docs | 0 xCAT-client-2.0/debian/files | 1 - xCAT-client-2.0/debian/rules | 152 +++++-------------- xCAT-client-2.0/debian/xcat-client.install | 3 + xCAT-client-2.0/debian/xcat-client.links | 49 ++++++ xCAT-client-2.0/debian/xcat-client.substvars | 1 + 26 files changed, 481 insertions(+), 212 deletions(-) create mode 100755 debperldepends create mode 100755 makeclientdeb create mode 100755 makedebs create mode 100755 makeperlxcatdeb create mode 100644 perl-xCAT-2.0/debian/control.template create mode 100644 perl-xCAT-2.0/debian/dirs create mode 100644 perl-xCAT-2.0/debian/docs create mode 100644 perl-xCAT-2.0/debian/perl-xcat.install create mode 100644 perl-xCAT-2.0/debian/perl-xcat.substvars create mode 100644 perl-xCAT-2.0/debian/postinst create mode 100644 xCAT-client-2.0/debian/compat create mode 100644 xCAT-client-2.0/debian/control.template create mode 100644 xCAT-client-2.0/debian/dirs create mode 100644 xCAT-client-2.0/debian/docs delete mode 100644 xCAT-client-2.0/debian/files create mode 100644 xCAT-client-2.0/debian/xcat-client.install create mode 100644 xCAT-client-2.0/debian/xcat-client.links create mode 100644 xCAT-client-2.0/debian/xcat-client.substvars diff --git a/debperldepends b/debperldepends new file mode 100755 index 000000000..d2989c1a2 --- /dev/null +++ b/debperldepends @@ -0,0 +1,36 @@ +#!/bin/sh + +found="" + +find . -name .svn -prune -o -type f \ + | xargs grep -l '^#!.*perl' \ + | xargs grep -hE '^\s*(use|require) ' \ + | while read mod; do + pkg=$( awk '{ sub(";", "", $2); + sub("::", "-", $2); + print $2 }' <<<"$mod" \ + | tr '[:upper:]' '[:lower:]' ) + + if apt-cache show lib${pkg}-perl >/dev/null 2>&1; then + + pkgname="lib${pkg}-perl" + + case "$found" in + *$pkgname*) continue ;; + *) + [ -n "$found" ] && echo -n ", " + echo -n "$pkgname" + found="$found $pkgname" + ;; + esac + + elif perl <<<"$mod" >/dev/null 2>&1; then + continue + elif [ "$1" == "-w" ]; then + echo + echo "warning: $pkg not found and perl doesn't like \"$mod\"" >&2 + fi + done +echo + +# vim: set sts=2 sw=2 et: diff --git a/makeclientdeb b/makeclientdeb new file mode 100755 index 000000000..dd2c143aa --- /dev/null +++ b/makeclientdeb @@ -0,0 +1,15 @@ +#!/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 +dpkg-buildpackage -b +cd .. +rm -rf xcat-client-2.0 + diff --git a/makedebs b/makedebs new file mode 100755 index 000000000..5f20f86b8 --- /dev/null +++ b/makedebs @@ -0,0 +1,3 @@ +#!/bin/sh +./makeperlxcatdeb +./makexcatclientdeb diff --git a/makeperlxcatdeb b/makeperlxcatdeb new file mode 100755 index 000000000..71743e92b --- /dev/null +++ b/makeperlxcatdeb @@ -0,0 +1,13 @@ +#!/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 +dpkg-buildpackage -b +cd .. +rm -rf perl-xcat-2.0 + diff --git a/perl-xCAT-2.0/debian/changelog b/perl-xCAT-2.0/debian/changelog index 941823abf..982fec024 100644 --- a/perl-xCAT-2.0/debian/changelog +++ b/perl-xCAT-2.0/debian/changelog @@ -1,7 +1,6 @@ -perl-xcat (2.0-1) experimental; urgency=low +perl-xcat (2.0-1) testing; urgency=low - * Converted from .rpm format to .deb + * Initial release (Closes: #nnnn) - -- Andy Wray Thu, 10 Jan 2008 16:49:11 -0500 + -- Isaac Freeman Fri, 18 Apr 2008 11:42:09 -0400 -- Made changes to make this work on AIX diff --git a/perl-xCAT-2.0/debian/control b/perl-xCAT-2.0/debian/control index 66cbfae4a..12b46361b 100644 --- a/perl-xCAT-2.0/debian/control +++ b/perl-xCAT-2.0/debian/control @@ -1,12 +1,14 @@ Source: perl-xcat -Section: admin +Section: libs Priority: extra -Maintainer: Andy Wray -Build-Depends: debhelper (>= 5), dpatch +Maintainer: Isaac Freeman +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 Package: perl-xcat -Architecture: all -Depends: ${perl:Depends}, libdbi-perl, libexpect-perl, libsnmp-perl, libxml-simple-perl, libio-socket-ssl-perl, libio-socket-inet6-perl, libwww-perl +Architecture: any +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. + diff --git a/perl-xCAT-2.0/debian/control.template b/perl-xCAT-2.0/debian/control.template new file mode 100644 index 000000000..caab08161 --- /dev/null +++ b/perl-xCAT-2.0/debian/control.template @@ -0,0 +1,14 @@ +Source: perl-xcat +Section: libs +Priority: extra +Maintainer: Isaac Freeman +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 + +Package: perl-xcat +Architecture: any +Depends: ${perl:Depends}, ###debian-depends### +Description: xCAT perl libraries + Provides perl xCAT libraries for core functionality. Required for all xCAT installations. + Includes xCAT::Table, xCAT::NodeRange, among others. + diff --git a/perl-xCAT-2.0/debian/copyright b/perl-xCAT-2.0/debian/copyright index ceb20ba5c..f61d34dfe 100644 --- a/perl-xCAT-2.0/debian/copyright +++ b/perl-xCAT-2.0/debian/copyright @@ -1,16 +1,88 @@ -Copyright: EPL +Eclipse Public License - v 1.0 -Information from the binary package: -Name : perl-xCAT Relocations: /opt/xcat -Version : 2.0 Vendor: IBM Corp. -Release : snap200801100447 Build Date: Thu 10 Jan 2008 04:47:45 AM EST -Install Date: (not installed) Build Host: mgt.cluster -Group : System Environment/Libraries Source RPM: perl-xCAT-2.0-snap200801100447.src.rpm -Size : 903460 License: EPL -Signature : (none) -Packager : IBM Corp. -Summary : xCAT perl libraries -Description : -Provides perl xCAT libraries for core functionality. Required for all xCAT installations. -Includes xCAT::Table, xCAT::NodeRange, among others. +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. +1. DEFINITIONS + +"Contribution" means: + +a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and +b) in the case of each subsequent Contributor: + +i) changes to the Program, and + +ii) additions to the Program; + +where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. + +"Contributor" means any person or entity that distributes the Program. + +"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. + +"Program" means the Contributions distributed in accordance with this Agreement. + +"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. + +2. GRANT OF RIGHTS + +a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. + +b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. + +c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. + +d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. + +3. REQUIREMENTS + +A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: + +a) it complies with the terms and conditions of this Agreement; and + +b) its license agreement: + +i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; + +ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; + +iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and + +iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. + +When the Program is made available in source code form: + +a) it must be made available under this Agreement; and + +b) a copy of this Agreement must be included with each copy of the Program. + +Contributors may not remove or alter any copyright notices contained within the Program. + +Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. + + diff --git a/perl-xCAT-2.0/debian/dirs b/perl-xCAT-2.0/debian/dirs new file mode 100644 index 000000000..fb1150dd9 --- /dev/null +++ b/perl-xCAT-2.0/debian/dirs @@ -0,0 +1,3 @@ +usr/lib/perl/xCAT +usr/lib/perl/xCAT/data + diff --git a/perl-xCAT-2.0/debian/docs b/perl-xCAT-2.0/debian/docs new file mode 100644 index 000000000..060eccefe --- /dev/null +++ b/perl-xCAT-2.0/debian/docs @@ -0,0 +1,2 @@ +README +LICENSE.html diff --git a/perl-xCAT-2.0/debian/perl-xcat.install b/perl-xCAT-2.0/debian/perl-xcat.install new file mode 100644 index 000000000..a6df29d24 --- /dev/null +++ b/perl-xCAT-2.0/debian/perl-xcat.install @@ -0,0 +1 @@ +xCAT/* usr/lib/perl5/xCAT diff --git a/perl-xCAT-2.0/debian/perl-xcat.substvars b/perl-xCAT-2.0/debian/perl-xcat.substvars new file mode 100644 index 000000000..cd2d004a5 --- /dev/null +++ b/perl-xCAT-2.0/debian/perl-xcat.substvars @@ -0,0 +1 @@ +perl:Depends=perl diff --git a/perl-xCAT-2.0/debian/postinst b/perl-xCAT-2.0/debian/postinst new file mode 100644 index 000000000..b130478fb --- /dev/null +++ b/perl-xCAT-2.0/debian/postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for perl-xcat +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + ;; + + 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 + + diff --git a/perl-xCAT-2.0/debian/rules b/perl-xCAT-2.0/debian/rules index cda765180..269bed876 100755 --- a/perl-xCAT-2.0/debian/rules +++ b/perl-xCAT-2.0/debian/rules @@ -1,83 +1,67 @@ #!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# Use v4 compatability mode, so ldconfig gets added to maint scripts. -#export DH_COMPAT=4 +export DH_COMPAT=5 -PACKAGE = $(shell dh_listpackages) -TMPDIR = $(CURDIR)/debian/$(PACKAGE) -DOCSDIR = $(TMPDIR)/usr/share/doc/$(PACKAGE) -INSTALL = install build: dh_testdir + ./db2man clean: dh_testdir dh_testroot dh_clean -d -install: build - dh_testdir - dh_testroot - dh_clean -k - $(INSTALL) -D xCAT/Client.pm $(TMPDIR)/usr/lib/perl/xCAT/Client.pm - $(INSTALL) -D xCAT/DBobjUtils.pm $(TMPDIR)/usr/lib/perl/xCAT/DBobjUtils.pm - $(INSTALL) -D xCAT/DSHCLI.pm $(TMPDIR)/usr/lib/perl/xCAT/DSHCLI.pm - $(INSTALL) -D xCAT/DSHContext.pm $(TMPDIR)/usr/lib/perl/xCAT/DSHContext.pm - $(INSTALL) -D xCAT/DSHCore.pm $(TMPDIR)/usr/lib/perl/xCAT/DSHCore.pm - $(INSTALL) -D xCAT/DSHRemoteShell.pm $(TMPDIR)/usr/lib/perl/xCAT/DSHRemoteShell.pm - $(INSTALL) -D xCAT/GlobalDef.pm $(TMPDIR)/usr/lib/perl/xCAT/GlobalDef.pm - $(INSTALL) -D xCAT/MacMap.pm $(TMPDIR)/usr/lib/perl/xCAT/MacMap.pm - $(INSTALL) -D xCAT/MsgUtils.pm $(TMPDIR)/usr/lib/perl/xCAT/MsgUtils.pm - $(INSTALL) -D xCAT/NodeRange.pm $(TMPDIR)/usr/lib/perl/xCAT/NodeRange.pm - $(INSTALL) -D xCAT/NotifHandler.pm $(TMPDIR)/usr/lib/perl/xCAT/NotifHandler.pm - $(INSTALL) -D xCAT/Postage.pm $(TMPDIR)/usr/lib/perl/xCAT/Postage.pm - $(INSTALL) -D xCAT/PPCboot.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCboot.pm - $(INSTALL) -D xCAT/PPCdb.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCdb.pm - $(INSTALL) -D xCAT/PPCfsp.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCfsp.pm - $(INSTALL) -D xCAT/PPCinv.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCinv.pm - $(INSTALL) -D xCAT/PPClog.pm $(TMPDIR)/usr/lib/perl/xCAT/PPClog.pm - $(INSTALL) -D xCAT/PPCmac.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCmac.pm - $(INSTALL) -D xCAT/PPC.pm $(TMPDIR)/usr/lib/perl/xCAT/PPC.pm - $(INSTALL) -D xCAT/PPCpower.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCpower.pm - $(INSTALL) -D xCAT/PPCscan.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCscan.pm - $(INSTALL) -D xCAT/PPCvitals.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCvitals.pm - $(INSTALL) -D xCAT/PPCvm.pm $(TMPDIR)/usr/lib/perl/xCAT/PPCvm.pm - $(INSTALL) -D xCAT/RSH.pm $(TMPDIR)/usr/lib/perl/xCAT/RSH.pm - $(INSTALL) -D xCAT/RSYNC.pm $(TMPDIR)/usr/lib/perl/xCAT/RSYNC.pm - $(INSTALL) -D xCAT/Schema.pm $(TMPDIR)/usr/lib/perl/xCAT/Schema.pm - $(INSTALL) -D xCAT/SSH.pm $(TMPDIR)/usr/lib/perl/xCAT/SSH.pm - $(INSTALL) -D xCAT/Table.pm $(TMPDIR)/usr/lib/perl/xCAT/Table.pm - $(INSTALL) -D xCAT/Template.pm $(TMPDIR)/usr/lib/perl/xCAT/Template.pm - $(INSTALL) -D xCAT/Utils.pm $(TMPDIR)/usr/lib/perl/xCAT/Utils.pm - $(INSTALL) -D xCAT/data/ibmleds.pm $(TMPDIR)/usr/lib/perl/xCAT/data/ibmleds.pm - $(INSTALL) -D xCAT/data/ipmigenericevents.pm $(TMPDIR)/usr/lib/perl/xCAT/data/ipmigenericevents.pm - $(INSTALL) -D xCAT/data/ipmisensorevents.pm $(TMPDIR)/usr/lib/perl/xCAT/data/ipmisensorevents.pm - $(INSTALL) -D LICENSE.html $(TMPDIR)/usr/share/doc/$(PACKAGE)/LICENSE.html - $(INSTALL) -D README $(TMPDIR)/usr/share/doc/$(PACKAGE)/README - $(INSTALL) -D xCAT2.0.doc $(TMPDIR)/usr/share/doc/$(PACKAGE)/xCAT2.0.doc - $(INSTALL) -D xCAT2.0.pdf $(TMPDIR)/usr/share/doc/$(PACKAGE)/xCAT2.0.pdf - -binary-indep: build install - -binary-arch: build install +install: dh_testdir dh_testroot dh_installdirs + dh_install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs dh_installdocs - dh_installchangelogs - dh_strip - dh_compress - dh_fixperms +# dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman +# dh_link +# dh_strip +# dh_compress +# dh_fixperms + dh_perl dh_makeshlibs dh_installdeb - dh_perl xCAT + dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/xCAT-client-2.0/debian/changelog b/xCAT-client-2.0/debian/changelog index ffe7fe7b8..feea73ae8 100644 --- a/xCAT-client-2.0/debian/changelog +++ b/xCAT-client-2.0/debian/changelog @@ -1,7 +1,11 @@ -xcat-client (2.0-1) experimental; urgency=low +xcat-client (2.0-2) testing; urgency=low - * Converted from .rpm format to .deb + * Testing re-release + + -- Isaac Freeman Mon, 21 Apr 2008 15:20:37 -0400 - -- Andy Wray Thu, 10 Jan 2008 16:15:54 -0500 +xcat-client (2.0-1) testing; urgency=low -- Made changes to make this work on AIX + * Initial release (Closes: #nnnn) + + -- Isaac Freeman Tue, 15 Apr 2008 17:12:26 -0400 diff --git a/xCAT-client-2.0/debian/compat b/xCAT-client-2.0/debian/compat new file mode 100644 index 000000000..7ed6ff82d --- /dev/null +++ b/xCAT-client-2.0/debian/compat @@ -0,0 +1 @@ +5 diff --git a/xCAT-client-2.0/debian/control b/xCAT-client-2.0/debian/control index 97aaae811..7703ede0f 100644 --- a/xCAT-client-2.0/debian/control +++ b/xCAT-client-2.0/debian/control @@ -1,10 +1,12 @@ Source: xcat-client -Section: admin +Section: main/admin Priority: extra -Maintainer: Andy Wray +Maintainer: Isaac Freeman +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 Package: xcat-client -Architecture: all -Depends: perl-xcat, conserver-client (>=8.1.16-2) +Architecture: any +Depends: ${perl:Depends}, perl-xcat, libsys-syslog-perl, libio-socket-ssl-perl, libxml-simple-perl Description: Core executables and data of the xCAT management project xCAT-client provides the fundamental xCAT commands (chtab, chnode, rpower, etc) helpful in administrating systems at scale, with particular attention paid to large HPC clusters. diff --git a/xCAT-client-2.0/debian/control.template b/xCAT-client-2.0/debian/control.template new file mode 100644 index 000000000..07f57a35e --- /dev/null +++ b/xCAT-client-2.0/debian/control.template @@ -0,0 +1,12 @@ +Source: xcat-client +Section: admin +Priority: extra +Maintainer: Isaac Freeman +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 + +Package: xcat-client +Architecture: any +Depends: ${perl:Depends}, perl-xcat, ###debian-depends### +Description: Core executables and data of the xCAT management project + xCAT-client provides the fundamental xCAT commands (chtab, chnode, rpower, etc) helpful in administrating systems at scale, with particular attention paid to large HPC clusters. diff --git a/xCAT-client-2.0/debian/copyright b/xCAT-client-2.0/debian/copyright index a4bbac94d..f61d34dfe 100644 --- a/xCAT-client-2.0/debian/copyright +++ b/xCAT-client-2.0/debian/copyright @@ -1,15 +1,88 @@ -Copyright: EPL +Eclipse Public License - v 1.0 -Information from the binary package: -Name : xCAT-client Relocations: /opt/xcat -Version : 2.0 Vendor: IBM Corp. -Release : snap200801100447 Build Date: Thu 10 Jan 2008 04:47:09 AM EST -Install Date: (not installed) Build Host: mgt.cluster -Group : Applications/System Source RPM: xCAT-client-2.0-snap200801100447.src.rpm -Size : 203154 License: EPL -Signature : (none) -Packager : IBM Corp. -Summary : Core executables and data of the xCAT management project -Description : -xCAT-client provides the fundamental xCAT commands (chtab, chnode, rpower, etc) helpful in administrating systems at scale, with particular attention paid to large HPC clusters. +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. +1. DEFINITIONS + +"Contribution" means: + +a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and +b) in the case of each subsequent Contributor: + +i) changes to the Program, and + +ii) additions to the Program; + +where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. + +"Contributor" means any person or entity that distributes the Program. + +"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. + +"Program" means the Contributions distributed in accordance with this Agreement. + +"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. + +2. GRANT OF RIGHTS + +a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. + +b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. + +c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. + +d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. + +3. REQUIREMENTS + +A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: + +a) it complies with the terms and conditions of this Agreement; and + +b) its license agreement: + +i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; + +ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; + +iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and + +iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. + +When the Program is made available in source code form: + +a) it must be made available under this Agreement; and + +b) a copy of this Agreement must be included with each copy of the Program. + +Contributors may not remove or alter any copyright notices contained within the Program. + +Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION + +Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. + +5. NO WARRANTY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY + +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. + + diff --git a/xCAT-client-2.0/debian/dirs b/xCAT-client-2.0/debian/dirs new file mode 100644 index 000000000..63cf9220c --- /dev/null +++ b/xCAT-client-2.0/debian/dirs @@ -0,0 +1,7 @@ +usr/bin +usr/sbin +usr/share/man/man1 +usr/share/man/man3 +usr/share/man/man5 +usr/share/man/man8 +usr/share/doc diff --git a/xCAT-client-2.0/debian/docs b/xCAT-client-2.0/debian/docs new file mode 100644 index 000000000..e69de29bb diff --git a/xCAT-client-2.0/debian/files b/xCAT-client-2.0/debian/files deleted file mode 100644 index 4a8a18cd9..000000000 --- a/xCAT-client-2.0/debian/files +++ /dev/null @@ -1 +0,0 @@ -xcat-client_2.0-1_all.deb admin extra diff --git a/xCAT-client-2.0/debian/rules b/xCAT-client-2.0/debian/rules index 14bf344c0..df3652c0b 100755 --- a/xCAT-client-2.0/debian/rules +++ b/xCAT-client-2.0/debian/rules @@ -1,135 +1,67 @@ #!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -# Use v4 compatability mode, so ldconfig gets added to maint scripts. -export DH_COMPAT=4 +export DH_COMPAT=5 -PACKAGE=$(shell dh_listpackages) -TMPDIR = $(CURDIR)/debian/$(PACKAGE) -DOCSDIR = $(TMPDIR)/usr/share/doc/$(PACKAGE) -INSTALL = install - - build: - dh_testdir + ./xpod2man clean: dh_testdir dh_testroot dh_clean -d -install: build - dh_testdir - dh_testroot - dh_clean -k -d - $(INSTALL) -D bin/getnodecfg $(TMPDIR)/usr/bin/getnodecfg - $(INSTALL) -D bin/pping $(TMPDIR)/usr/bin/pping - $(INSTALL) -D bin/psh $(TMPDIR)/usr/bin/psh - $(INSTALL) -D bin/rcons $(TMPDIR)/usr/bin/rcons - $(INSTALL) -D bin/wcons $(TMPDIR)/usr/bin/wcons - $(INSTALL) -D bin/xcatclient $(TMPDIR)/usr/bin/xcatclient - $(INSTALL) -D bin/xcatclientnnr $(TMPDIR)/usr/bin/xcatclientnnr - $(INSTALL) -D bin/xcatDBcmds $(TMPDIR)/usr/bin/xcatDBcmds - $(INSTALL) -D bin/xcoll $(TMPDIR)/usr/bin/xcoll - $(INSTALL) -D bin/xdsh $(TMPDIR)/usr/bin/xdsh - $(INSTALL) -D bin/xdshbak $(TMPDIR)/usr/bin/xdshbak - $(INSTALL) -D sbin/tabedit $(TMPDIR)/usr/sbin/tabedit - $(INSTALL) -D sbin/tabrestore $(TMPDIR)/usr/sbin/tabrestore - $(INSTALL) -D share/man/man1/chdef.1 $(TMPDIR)/usr/share/man/man1/chdef.1 - $(INSTALL) -D share/man/man1/chvm.1 $(TMPDIR)/usr/share/man/man1/chvm.1 - $(INSTALL) -D share/man/man1/lsdef.1 $(TMPDIR)/usr/share/man/man1/lsdef.1 - $(INSTALL) -D share/man/man1/lsslp.1 $(TMPDIR)/usr/share/man/man1/lsslp.1 - $(INSTALL) -D share/man/man1/lsvm.1 $(TMPDIR)/usr/share/man/man1/lsvm.1 - $(INSTALL) -D share/man/man1/makedhcp.1 $(TMPDIR)/usr/share/man/man1/makedhcp.1 - $(INSTALL) -D share/man/man1/mkdef.1 $(TMPDIR)/usr/share/man/man1/mkdef.1 - $(INSTALL) -D share/man/man1/mkvm.1 $(TMPDIR)/usr/share/man/man1/mkvm.1 - $(INSTALL) -D share/man/man1/nodels.1 $(TMPDIR)/usr/share/man/man1/nodels.1 - $(INSTALL) -D share/man/man1/regnotif.1 $(TMPDIR)/usr/share/man/man1/regnotif.1 - $(INSTALL) -D share/man/man1/reventlog.1 $(TMPDIR)/usr/share/man/man1/reventlog.1 - $(INSTALL) -D share/man/man1/rinv.1 $(TMPDIR)/usr/share/man/man1/rinv.1 - $(INSTALL) -D share/man/man1/rmdef.1 $(TMPDIR)/usr/share/man/man1/rmdef.1 - $(INSTALL) -D share/man/man1/rmvm.1 $(TMPDIR)/usr/share/man/man1/rmvm.1 - $(INSTALL) -D share/man/man1/rnetboot.1 $(TMPDIR)/usr/share/man/man1/rnetboot.1 - $(INSTALL) -D share/man/man1/rpower.1 $(TMPDIR)/usr/share/man/man1/rpower.1 - $(INSTALL) -D share/man/man1/rscan.1 $(TMPDIR)/usr/share/man/man1/rscan.1 - $(INSTALL) -D share/man/man1/rvitals.1 $(TMPDIR)/usr/share/man/man1/rvitals.1 - $(INSTALL) -D share/man/man1/monstart.1 $(TMPDIR)/usr/share/man/man1/monstart.1 - $(INSTALL) -D share/man/man1/monstop.1 $(TMPDIR)/usr/share/man/man1/monstop.1 - $(INSTALL) -D share/man/man1/monls.1 $(TMPDIR)/usr/share/man/man1/monls.1 - $(INSTALL) -D share/man/man1/unregnotif.1 $(TMPDIR)/usr/share/man/man1/unregnotif.1 - $(INSTALL) -D share/man/man1/xcat2nim.1 $(TMPDIR)/usr/share/man/man1/xcat2nim.1 - $(INSTALL) -D share/man/man1/xdsh.1 $(TMPDIR)/usr/share/man/man1/xdsh.1 - $(INSTALL) -D share/man/man1/xdshbak.1 $(TMPDIR)/usr/share/man/man1/xdshbak.1 - $(INSTALL) -D share/man/man3/noderange.3 $(TMPDIR)/usr/share/man/man3/noderange.3 - $(INSTALL) -D share/man/man5/xcatstanzafile.5 $(TMPDIR)/usr/share/man/man5/xcatstanzafile.5 - $(INSTALL) -D share/man/man8/getmacs.8 $(TMPDIR)/usr/share/man/man8/getmacs.8 - $(INSTALL) -D LICENSE.html $(TMPDIR)/usr/share/doc/$(PACKAGE)/LICENSE.html - $(INSTALL) -D README $(TMPDIR)/usr/share/doc/$(PACKAGE)/README - mkdir -p $(TMPDIR)/usr/share/xcat/scripts - dh_link usr/bin/xcatclient usr/bin/rpower - dh_link usr/bin/xcatclient usr/bin/rscan - dh_link usr/bin/xcatclient usr/sbin/makedhcp - dh_link usr/bin/xcatclient usr/sbin/makehosts - dh_link usr/bin/xcatclient usr/sbin/nodeset - dh_link usr/bin/xcatclient usr/sbin/makeconservercf - dh_link usr/bin/xcatclient usr/bin/rbeacon - dh_link usr/bin/xcatclient usr/bin/rvitals - dh_link usr/bin/xcatclient usr/bin/rinv - dh_link usr/bin/xcatclient usr/bin/rspreset - dh_link usr/bin/xcatclient usr/bin/rsetboot - dh_link usr/bin/xcatclient usr/bin/rbootseq - dh_link usr/bin/xcatclient usr/bin/reventlog - dh_link usr/bin/xcatclient usr/bin/nodels - dh_link usr/bin/xcatclient usr/bin/nodech - dh_link usr/bin/xcatclient usr/bin/noderm - dh_link usr/bin/xcatclient usr/bin/rnetboot - dh_link usr/bin/xcatclient usr/bin/getmacs - dh_link usr/bin/xcatclient usr/bin/mkvm - dh_link usr/bin/xcatclient usr/bin/rmvm - dh_link usr/bin/xcatclient usr/bin/lsvm - dh_link usr/bin/xcatclient usr/bin/chvm - dh_link usr/bin/xcatclientnnr usr/bin/lsslp - dh_link usr/bin/xcatclientnnr usr/sbin/tabdump - dh_link usr/bin/xcatclientnnr usr/sbin/makedns - dh_link usr/bin/xcatclientnnr usr/bin/gettab - dh_link usr/bin/xcatclientnnr usr/sbin/nodeadd - dh_link usr/bin/xcatclientnnr usr/sbin/makenetworks - dh_link usr/bin/xcatclientnnr usr/sbin/copycds - dh_link usr/bin/xcatclientnnr usr/bin/regnotif - dh_link usr/bin/xcatclientnnr usr/bin/unregnotif - dh_link usr/bin/xcatclientnnr usr/bin/monstart - dh_link usr/bin/xcatclientnnr usr/bin/monstop - dh_link usr/bin/xcatclientnnr usr/bin/monls - dh_link usr/bin/xcatclientnnr usr/sbin/monupdate - dh_link usr/bin/xcatclientnnr usr/sbin/monaddnode - dh_link usr/bin/xcatclientnnr usr/sbin/monrmnode - dh_link usr/bin/xcatDBcmds usr/bin/mkdef - dh_link usr/bin/xcatDBcmds usr/bin/chdef - dh_link usr/bin/xcatDBcmds usr/bin/lsdef - dh_link usr/bin/xcatDBcmds usr/bin/rmdef - dh_link usr/bin/xcatDBcmds usr/bin/xcat2nim - dh_link usr/bin/xdsh usr/bin/xdcp - -binary-indep: build install - -binary-arch: build install +install: dh_testdir dh_testroot dh_installdirs + dh_install + dh_link + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: + dh_testdir + dh_testroot + dh_installchangelogs dh_installdocs - dh_installchangelogs - dh_strip - dh_compress - dh_fixperms +# dh_installexamples + dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman +# dh_link +# dh_strip +# dh_compress +# dh_fixperms + dh_perl dh_makeshlibs dh_installdeb - dh_perl bin sbin + dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/xCAT-client-2.0/debian/xcat-client.install b/xCAT-client-2.0/debian/xcat-client.install new file mode 100644 index 000000000..e3aa40145 --- /dev/null +++ b/xCAT-client-2.0/debian/xcat-client.install @@ -0,0 +1,3 @@ +bin/* usr/bin/ +sbin/* usr/sbin/ +share/* usr/share/ diff --git a/xCAT-client-2.0/debian/xcat-client.links b/xCAT-client-2.0/debian/xcat-client.links new file mode 100644 index 000000000..53c292c9c --- /dev/null +++ b/xCAT-client-2.0/debian/xcat-client.links @@ -0,0 +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 diff --git a/xCAT-client-2.0/debian/xcat-client.substvars b/xCAT-client-2.0/debian/xcat-client.substvars new file mode 100644 index 000000000..cd2d004a5 --- /dev/null +++ b/xCAT-client-2.0/debian/xcat-client.substvars @@ -0,0 +1 @@ +perl:Depends=perl