From 4b7699e338599d099f8a84319d9e2dfba9c77fe0 Mon Sep 17 00:00:00 2001 From: andywray Date: Mon, 14 Jan 2008 23:14:58 +0000 Subject: [PATCH] Added debian directory for building *.deb package git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/debian/changelog | 7 +++ perl-xCAT-2.0/debian/compat | 1 + perl-xCAT-2.0/debian/control | 12 +++++ perl-xCAT-2.0/debian/copyright | 16 +++++++ perl-xCAT-2.0/debian/files | 1 + perl-xCAT-2.0/debian/rules | 83 ++++++++++++++++++++++++++++++++++ 6 files changed, 120 insertions(+) create mode 100644 perl-xCAT-2.0/debian/changelog create mode 100644 perl-xCAT-2.0/debian/compat create mode 100644 perl-xCAT-2.0/debian/control create mode 100644 perl-xCAT-2.0/debian/copyright create mode 100644 perl-xCAT-2.0/debian/files create mode 100755 perl-xCAT-2.0/debian/rules diff --git a/perl-xCAT-2.0/debian/changelog b/perl-xCAT-2.0/debian/changelog new file mode 100644 index 000000000..941823abf --- /dev/null +++ b/perl-xCAT-2.0/debian/changelog @@ -0,0 +1,7 @@ +perl-xcat (2.0-1) experimental; urgency=low + + * Converted from .rpm format to .deb + + -- Andy Wray Thu, 10 Jan 2008 16:49:11 -0500 + +- Made changes to make this work on AIX diff --git a/perl-xCAT-2.0/debian/compat b/perl-xCAT-2.0/debian/compat new file mode 100644 index 000000000..7ed6ff82d --- /dev/null +++ b/perl-xCAT-2.0/debian/compat @@ -0,0 +1 @@ +5 diff --git a/perl-xCAT-2.0/debian/control b/perl-xCAT-2.0/debian/control new file mode 100644 index 000000000..66cbfae4a --- /dev/null +++ b/perl-xCAT-2.0/debian/control @@ -0,0 +1,12 @@ +Source: perl-xcat +Section: admin +Priority: extra +Maintainer: Andy Wray +Build-Depends: debhelper (>= 5), dpatch + +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 +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 new file mode 100644 index 000000000..ceb20ba5c --- /dev/null +++ b/perl-xCAT-2.0/debian/copyright @@ -0,0 +1,16 @@ +Copyright: EPL + +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. + diff --git a/perl-xCAT-2.0/debian/files b/perl-xCAT-2.0/debian/files new file mode 100644 index 000000000..7acd7de11 --- /dev/null +++ b/perl-xCAT-2.0/debian/files @@ -0,0 +1 @@ +perl-xcat_2.0-1_all.deb admin extra diff --git a/perl-xCAT-2.0/debian/rules b/perl-xCAT-2.0/debian/rules new file mode 100755 index 000000000..cda765180 --- /dev/null +++ b/perl-xCAT-2.0/debian/rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f + +# 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 + +PACKAGE = $(shell dh_listpackages) +TMPDIR = $(CURDIR)/debian/$(PACKAGE) +DOCSDIR = $(TMPDIR)/usr/share/doc/$(PACKAGE) +INSTALL = install + +build: + dh_testdir + +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 + dh_testdir + dh_testroot + dh_installdirs + dh_installdocs + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_perl xCAT + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install