From 71eb28ebc6b43363058395f97af367f3a6b5794d Mon Sep 17 00:00:00 2001 From: mellor Date: Wed, 8 May 2013 20:42:00 +0000 Subject: [PATCH] remove template directory. added by mistake with HPC kit build files. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- .../kits/kit_build/template/buildkit.conf | 209 --------------- .../template/other_files/sample/exclude.lst | 0 .../other_files/sample/kitdeployparams.lst | 0 .../template/plugins/sample/imageprofile.pm | 175 ------------ .../template/plugins/sample/nodemgmt.pm | 251 ------------------ .../kit_build/template/scripts/sample/post.sh | 3 - .../template/scripts/sample/postboot.sh | 3 - .../template/scripts/sample/postun.sh | 3 - .../template/scripts/sample/postup.sh | 3 - .../kit_build/template/scripts/sample/pre.sh | 3 - .../template/scripts/sample/preun.sh | 3 - .../template/scripts/sample/preup.sh | 3 - .../sample/pkg1/pkg1-1-1.noarch.rpm | Bin 3388 -> 0 bytes .../source_packages/sample/pkg2/pkg2.spec | 76 ------ .../sample/pkg2/pkg2/cfg/pkg2.cfg | 3 - .../sample/pkg2/pkg2/files/pkg2.file1 | 1 - .../sample/pkg2/pkg2/files/pkg2.file2 | 2 - .../source_packages/sample/pkg3/pkg3.spec | 76 ------ .../source_packages/sample/pkg3/pkg3.tar.gz | Bin 271 -> 0 bytes .../sample/pkg4/pkg4-1-1.src.rpm | Bin 2692 -> 0 bytes 20 files changed, 814 deletions(-) delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/buildkit.conf delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/other_files/sample/exclude.lst delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/other_files/sample/kitdeployparams.lst delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/imageprofile.pm delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/nodemgmt.pm delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/post.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postboot.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postun.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postup.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/pre.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preun.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preup.sh delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg1/pkg1-1-1.noarch.rpm delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2.spec delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/cfg/pkg2.cfg delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file1 delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file2 delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.spec delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.tar.gz delete mode 100644 xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg4/pkg4-1-1.src.rpm diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/buildkit.conf b/xCAT-buildkit/share/xcat/kits/kit_build/template/buildkit.conf deleted file mode 100644 index c40d9d9c4..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/buildkit.conf +++ /dev/null @@ -1,209 +0,0 @@ -# Kit Build File -# -# This file was initially auto-generated by the buildkit CLI command. -# To create a new kit, the user should modify this file accordingly. -# Refer to the buildkit manpage for further details. -# - -# kit: This section defines general info for the Kit. -# There must be exactly one kit section in a kit build file. -# -# kit attributes: -# basename (mandatory) Kit base name. e.g., kit-lsf -# description (optional) Kit description. -# version (mandatory) Kit version. e.g., 1.0 -# ostype (mandatory) Kit OS type. Must be Linux. -# AIX is currently not supported. -# isinternal (optional) PCM use only. -# Indicate if Kit is for internal use. -# Use 1 for yes, 0 for no. Default: 0 -# kitdeployparams (optional) Filename containing a list of kit deployment -# parameters, relative to -# /other_files -# kitlicense (mandatory) Kit license string to be built into all -# kitcomponent packages -kit: - basename=template - description=description for template - version=1.0 - ostype=Linux - kitdeployparams=sample/kitdeployparams.lst - kitlicense=EPL - - -# kitrepo: This section defines a Kit Package Repository. -# There must be at least one kitrepo section in a kit build file. -# If you want to support multiple OSes, you should create a separate -# repo for each OS. Also, no two repos can be defined with the same -# OS name, major/minor version and arch. For example, you cannot have -# two repos for RHEL 6.2 x86_64 in the same kit. -# -# kitrepo attributes: -# kitrepoid (mandatory) Kit package repository ID. -# Must be unique within this file. -# osbasename (mandatory) OS distro base name. e.g., rhels. -# osmajorversion (mandatory) OS major version. e.g., 6 -# osminorversion (optional) OS minor version. -# osarch (mandatory) OS architecture. e.g., x86_64 -# compat_osbasenames (optional) Comma-separated list of compatible -# OS distro base names. e.g., centos - -kitrepo: - kitrepoid=rhels6.2 - osbasename=rhels - osmajorversion=6 - osminorversion=2 - osarch=ppc64 - - #compat_osbasenames= - - -# kitcomponent: This section defines one Kit Component. -# There can be zero or more kitcomponent sections. -# If you want to build a component which supports multiple OSes, -# you should create one kitcomponent section for each OS. -# Also, no two components in a kit can be defined with the same -# base name. -# You can define multiple kit components with the same base name -# only if each kit component using this base name meets these -# requirements: -# - Each kit component must be defined with the same version -# and release number -# - Each kit component must be defined with a unique kitrepoid - -# -# kitcomponent attributes: -# basename (mandatory) Kit component base name -# description (optional) Kit component description -# version (mandatory) Kit component version -# release (mandatory) Kit component release -# serverroles (mandatory) Comma-separated list of servers that this -# component can install on. Valid values: -# mgtnode,servicenode,compute,login,storage,utility -# kitrepoid (mandatory) The ID of the kit package repository this -# component belongs to -# kitcompdeps (optional) Comma-separated list of kit component -# dependencies. These kit components can be included in -# this kit or in other kits. -# ospkgdeps (optional) Comma-separated list of OS package dependencies -# These packages must be shipped with the OS distro. -# kitpkgdeps (optional) Comma-separated list of kit package names that -# will be listed as "REQUIRES" when building this kit -# component. Each package must be defined in a separate -# kitpackage section. Each package must be in the same -# kitrepo as this kit component. -# non_native_pkgs (optional) TBD -- NOT SUPPORTED YET! -# Comma-separated list of non-native package -# paths that will be included as files in this kit -# component. All filenames are relative to -# /source_packages -# Kit component deployment scripts must be specified -# to manage these files. -# driverpacks (optional) Comma-separated list of driver package filenames -# Each driverpack must be defined in a separate kitpackage -# section. -# exlist (optional) Exclude list file for stateless image, relative -# to /other_files -# Kit component deployment scripts (optional) Each attribute specifies -# script path relative to /scripts -# Script attributes: -# preinstall, postinstall, preuninstall, postuninstall, -# preupgrade, postupgrade, postbootscripts, -# genimage_postinstall -kitcomponent: - basename=template_compute - description=description for component template_compute - version=1.0 - release=1 - serverroles=compute - kitrepoid=rhels6.2 - #kitcompdeps= - #ospkgdeps= - kitpkgdeps=pkg1 - #kitpkgdeps=pkg1,pkg2,pkg2,pkg4 - #non_native_pkgs= - #driverpacks= - exlist=sample/exclude.lst - preinstall=sample/pre.sh - postinstall=sample/post.sh - preuninstall=sample/preun.sh - postuninstall=sample/postun.sh - preupgrade=sample/preup.sh - postupgrade=sample/postup.sh - postbootscripts=sample/postboot.sh - genimage_postinstall=sample/genimage_post.sh - - -# kitpackage: This section defines one Kit Package, and how to build it. -# There can be zero or more kitpackage sections. -# All filenames should be relative paths to -# /source_packages -# If you want to build a package which can run on multiple OSes, -# you have two options: -# 1. Build a separate package for each OS you want to support. -# For this option, you need to define one kitpackage section -# per supported OS. -# 2. Build one package that can run on multiple OSes. -# If you are building an RPM package, you are responsible for -# creating an RPM spec file that can run on multiple OSes. -# For this option, you need to define one kitpackage section -# which contains multiple kitrepoid lines. -# -# kitpackage attributes: -# filename (mandatory) Package filename -# kitrepoid (mandatory) The repo(s) this package belongs to. -# If multiple repos are defined, the package will be built for -# the first repo only. For the other repos, a symlink is created -# to the package built for the first repo. -# Package build methods (optional) -# Define how to build the packages. -# If you don't specify a build method, the default behavior is -# to assume the package is pre-built under -# /source_packages -# All files in this section are relative to -# /source_packages -# There are four methods to build packages. -# 1. Use pre-built RPM package -# isexternalpkg: 'no'|'0', 'yes'|'1' (default: 'no') -# Indicates whether the RPM package will be added to the -# the kit tar file now as part of the kit build process, -# or whether the customer will need to separately -# obtain the RPM pacakage and add it to the kit tar file -# using 'buildkit addpkgs' -# rpm_prebuiltdir: If isexternalpkg=no, path to directory -# containing pre-built RPM package -# 2. Build RPM from spec + src dir -# rpm_spec: Path to spec file. -# rpm_srcdir: Path to source directory. -# 3. Build RPM from spec + src tarball -# rpm_spec: Path to spec file. -# rpm_srctarball: Path to source tarball. -# 4. Build RPM from source RPM -# rpm_srpm: Path to source RPM package. -kitpackage: - filename=pkg1-1-1.noarch.rpm - kitrepoid=rhels6.2 - # Method 1: Use pre-built RPM package - isexternalpkg=no - rpm_prebuiltdir=sample/pkg1 - -#kitpackage: -# filename=pkg2-1-1.noarch.rpm -# kitrepoid=rhels6.2 -# # Method 2: Build RPM from spec + src dir -# rpm_spec=sample/pkg2/pkg2.spec -# rpm_srcdir=sample/pkg2/pkg2 -# -#kitpackage: -# filename=pkg3-1-1.noarch.rpm -# kitrepoid=rhels6.2 -# # Method 3: Build RPM from spec + src tarball -# rpm_spec=sample/pkg3/pkg3.spec -# rpm_srctarball=sample/pkg3/pkg3.tar.gz -# -#kitpackage: -# filename=pkg4-1-1.noarch.rpm -# kitrepoid=rhels6.2 -# # Method 4: Build RPM from source RPM -# rpm_srpm=sample/pkg4/pkg4-1-1.src.rpm -# diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/other_files/sample/exclude.lst b/xCAT-buildkit/share/xcat/kits/kit_build/template/other_files/sample/exclude.lst deleted file mode 100644 index e69de29bb..000000000 diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/other_files/sample/kitdeployparams.lst b/xCAT-buildkit/share/xcat/kits/kit_build/template/other_files/sample/kitdeployparams.lst deleted file mode 100644 index e69de29bb..000000000 diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/imageprofile.pm b/xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/imageprofile.pm deleted file mode 100644 index f42b70e7f..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/imageprofile.pm +++ /dev/null @@ -1,175 +0,0 @@ -package xCAT_plugin::<<>>_imageprofile; - -use strict; -use warnings; - -require xCAT::Utils; -require xCAT::Table; -require xCAT::KitPluginUtils; - - -# buildkit Processing -# In order to avoid collisions with other plugins, the package -# name for this plugin must contain the full kit name. -# The buildkit buildtar command will copy this file from your plugins -# directory to the the kit build directory, renaming the file with the -# correct kit name. All strings in this file of the form -# <<>> -# will be replaced with the full kit name. In order for buildkit to -# correctly edit this file, do not remove these strings. - - -# Global Variables - -# This is the full name of the kit which this plugin belongs -# to. The kit name is used by some code in process_request() -# to determine if the plugin should run. When you are testing -# your plugin the kit name should be set to "TESTMODE" to -# bypass the plugin check in process_request(). - -our ($PLUGIN_KITNAME); -#$PLUGIN_KITNAME = "TESTMODE"; -$PLUGIN_KITNAME = "<<>>"; - - -#------------------------------------------------------- - -=head1 - - Image Profile Kit Plugin - This plugin contains commands to run custom actions - during image profile operations. - -=cut - -#------------------------------------------------------- - - -#------------------------------------------------------- - -=head3 handled_commands - - Return list of kit plugin commands handled by this plugin - -=cut - -#------------------------------------------------------- - -sub handled_commands { - return { - kitimagevalidatecomps => '<<>>_imageprofile', - kitimageimport => '<<>>_imageprofile', - }; -} - - -#------------------------------------------------------- - -=head3 process_request - - Process the kit plugin command. - -=cut - -#------------------------------------------------------- - -sub process_request { - my $request = shift; - my $callback = shift; - - # This kit plugin is passed the name of an image profile. - # We need to determine which kits is used by this - # image profile to decide if this plugin should run or not. - - my $imgprofilename = $request->{arg}->[0]; - - my $kitdata = $request->{kitdata}; - if (! defined($kitdata)) { - $kitdata = xCAT::KitPluginUtils->get_kits_used_by_image_profiles([$imgprofilename]); - $request->{kitdata} = $kitdata; - } - - if ($PLUGIN_KITNAME ne "TESTMODE" && ! exists($kitdata->{$PLUGIN_KITNAME})) { - return; - } - - # Name of command and node list - my $command = $request->{command}->[0]; - my $args = $request->{arg}; - - if($command eq 'kitimagevalidatecomps') { - kitimagevalidatecomps($callback, $args); - } - elsif ($command eq 'kitimageimport') { - kitimageimport($callback, $args); - - } else { - my $rsp; - $rsp->{data}->[0] = "Command is not supported"; - xCAT::MsgUtils->message("E", $rsp, $callback); - } -} - - -#------------------------------------------------------- - -=head3 kitimagevalidatecomps - - This command is called to validate new changes to an - image profile's kit component list before the changes - are committed. - -=cut - -#------------------------------------------------------- - -sub kitimagevalidatecomps { - my $callback = shift; - my $args = shift; - my $rsp; - - # Parameters - my $imgprofilename = $args->[0]; - my $newcomplist = $args->[1]; - my @newcomplist = (); - if (defined($newcomplist)) { - @newcomplist = split(/,/, $newcomplist); - } - my $newosdistro = $args->[2]; - my $newosdistroupdate = $args->[3]; - - $rsp->{data}->[0] = "Running kitimagevalidatecomps"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - - -#------------------------------------------------------- - -=head3 kitimageimport - - This command is called after changes to an image profile - have been committed. - -=cut - -#------------------------------------------------------- - -sub kitimageimport { - my $callback = shift; - my $args = shift; - my $rsp; - - # Parameters - my $imgprofilename = $args->[0]; - - $rsp->{data}->[0] = "Running kitimageimport"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/nodemgmt.pm b/xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/nodemgmt.pm deleted file mode 100644 index 1eb766eb7..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/plugins/sample/nodemgmt.pm +++ /dev/null @@ -1,251 +0,0 @@ -package xCAT_plugin::<<>>_nodemgmt; - -use strict; -use warnings; - -require xCAT::Utils; -require xCAT::Table; -require xCAT::KitPluginUtils; - -# buildkit Processing -# In order to avoid collisions with other plugins, the package -# name for this plugin must contain the full kit name. -# The buildkit buildtar command will copy this file from your plugins -# directory to the the kit build directory, renaming the file with the -# correct kit name. All strings in this file of the form -# <<>> -# will be replaced with the full kit name. In order for buildkit to -# correctly edit this file, do not remove these strings. - -# Global Variables - -# This is the full name of the kit which this plugin belongs -# to. The kit name is used by some code in process_request() -# to determine if the plugin should run. When you are testing -# your plugin the kit name should be set to "TESTMODE" to -# bypass the plugin check in process_request(). - -our ($PLUGIN_KITNAME); -#$PLUGIN_KITNAME = "TESTMODE"; -$PLUGIN_KITNAME = "<<>>"; - - -#------------------------------------------------------- - -=head1 - - Node Management Kit Plugin - This plugin contains commands to run custom actions - during node management operations. - -=cut - -#------------------------------------------------------- - - -#------------------------------------------------------- - -=head3 handled_commands - - Return list of kit plugin commands handled by this plugin - -=cut - -#------------------------------------------------------- - -sub handled_commands { - return { - kitnodeadd => '<<>>_nodemgmt', - kitnoderemove => '<<>>_nodemgmt', - kitnodeupdate => '<<>>_nodemgmt', - kitnoderefresh => '<<>>_nodemgmt', - kitnodefinished => '<<>>_nodemgmt', - }; -} - - -#------------------------------------------------------- - -=head3 process_request - - Process the kit plugin command. - -=cut - -#------------------------------------------------------- - -sub process_request { - my $request = shift; - my $callback = shift; - - # Name of command and node list - my $command = $request->{command}->[0]; - my $nodes = $request->{node}; - - # This kit plugin is passed a list of node names. - # We need to determine which kits are used by these - # nodes to decide if this plugin should run or not. - - my $kitdata = $request->{kitdata}; - if (! defined($kitdata)) { - $kitdata = xCAT::KitPluginUtils->get_kits_used_by_nodes($nodes); - $request->{kitdata} = $kitdata; - } - - if ($PLUGIN_KITNAME ne "TESTMODE" && ! exists($kitdata->{$PLUGIN_KITNAME})) { - return; - } - - # Get the nodes using this plugin's kit - $nodes = $kitdata->{$PLUGIN_KITNAME}; - - - if($command eq 'kitnodeadd') { - kitnodeadd($callback, $nodes); - } - elsif ($command eq 'kitnoderemove') { - kitnoderemove($callback, $nodes); - } - elsif ($command eq 'kitnodeupdate') { - kitnodeupdate($callback, $nodes); - } - elsif ($command eq 'kitnoderefresh') { - kitnoderefresh($callback, $nodes); - } - elsif ($command eq 'kitnodefinished') { - kitnodefinished($callback); - - } else { - my $rsp; - $rsp->{data}->[0] = "Command is not supported"; - xCAT::MsgUtils->message("E", $rsp, $callback); - } -} - - -#------------------------------------------------------- - -=head3 kitnodeadd - - This command is called when one or more nodes are added - to the cluster. - -=cut - -#------------------------------------------------------- - -sub kitnodeadd { - my $callback = shift; - my $rsp; - - # Parameters - my $nodes = shift; - - $rsp->{data}->[0] = "Running kitnodeadd"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - - -#------------------------------------------------------- - -=head3 kitnoderemove - - This command is called when one or more nodes are - removed from the cluster. - -=cut - -#------------------------------------------------------- - -sub kitnoderemove { - my $callback = shift; - my $rsp; - - # Parameters - my $nodes = shift; - - $rsp->{data}->[0] = "Running kitnoderemove"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - - -#------------------------------------------------------- - -=head3 kitnodeupdate - - This command is called when the configuration of one - or more nodes are updated. - -=cut - -#------------------------------------------------------- - -sub kitnodeupdate { - my $callback = shift; - my $rsp; - - # Parameters - my $nodes = shift; - - $rsp->{data}->[0] = "Running kitnodeupdate"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - - -#------------------------------------------------------- - -=head3 kitnoderefresh - - This command is called when node-related configuration - files are updated. - -=cut - -#------------------------------------------------------- - -sub kitnoderefresh { - my $callback = shift; - my $rsp; - - # Parameters - my $nodes = shift; - - $rsp->{data}->[0] = "Running kitnoderefresh"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - - -#------------------------------------------------------- - -=head3 kitnodefinished - - This command is called at the end of a node management - operation. - -=cut - -#------------------------------------------------------- - -sub kitnodefinished { - my $callback = shift; - my $rsp; - - $rsp->{data}->[0] = "Running kitnodefinished"; - xCAT::MsgUtils->message("I", $rsp, $callback); - - # TODO - # ... ADD YOUR CODE HERE -} - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/post.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/post.sh deleted file mode 100644 index 2fa3d84e1..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/post.sh +++ /dev/null @@ -1,3 +0,0 @@ - -echo "running sample-comp1 post script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postboot.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postboot.sh deleted file mode 100644 index abbcb3e56..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postboot.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -echo "running sample-comp1 postboot script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postun.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postun.sh deleted file mode 100644 index a5596e931..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postun.sh +++ /dev/null @@ -1,3 +0,0 @@ - -echo "running sample-comp1 postun script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postup.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postup.sh deleted file mode 100644 index a4ad3c500..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/postup.sh +++ /dev/null @@ -1,3 +0,0 @@ - -echo "running sample-comp1 postup script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/pre.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/pre.sh deleted file mode 100644 index 36a88c970..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/pre.sh +++ /dev/null @@ -1,3 +0,0 @@ - -echo "running sample-comp1 pre script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preun.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preun.sh deleted file mode 100644 index e94c3aa8e..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preun.sh +++ /dev/null @@ -1,3 +0,0 @@ - -echo "running sample-comp1 preun script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preup.sh b/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preup.sh deleted file mode 100644 index bf2248496..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/scripts/sample/preup.sh +++ /dev/null @@ -1,3 +0,0 @@ - -echo "running sample-comp1 preup script" - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg1/pkg1-1-1.noarch.rpm b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg1/pkg1-1-1.noarch.rpm deleted file mode 100644 index f2f995a497d06e7e1adc378de92feef6cb266127..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3388 zcmbuB32+oe6oz}Vn~;Pcp}>+$7$XV@d*6@%Nyr5#i=+_bFtf8g*(vsNXE!DR)Tlrp zNGPtNC=M$goKlKVrJ`jDK@dDB1(Zw0#BfMJL4l$q@x9p&3DJOsz18#gH?RBko7X+P z)41j02{nO|8k$*b)Eb9DMZBk?BJu6VEq?o~irwo3S`T#uRBRuHno5YOGh+~v58MSb zA=V}^R(%%Q8mJMd$QM9yd?{2IuWn>q2@2!Ymq4-qA*ia#Tn*_KM-t-WCL|snPm+^T zx%%kF&~OY0GlT`%X8!dSS}w^hK*? z*N@}_9%{5u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~@@QymPR8(t=p$eKQgF4GyXS(;*}~bUkJi;b zyCduLz`R3$Y%D+0wd6*xdgBde`VX7>mR(((zINkkx}|YaUjF5(ZckRP`0(8^pT1(~ pJ!I$B!`sVO9@#tX>n=@6yF5FOZR`HywLU9{_v<@v=MvbJe*+n@*WdsE diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2.spec b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2.spec deleted file mode 100644 index d513149d9..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2.spec +++ /dev/null @@ -1,76 +0,0 @@ -Summary: Pkg2 for Sample Kit -Name: pkg2 -Version: 1 -Release: 1 -Epoch: 1 -License: EPL -Group: Applications/System -Source: pkg2.tar.gz -Packager: IBM Corp. -Vendor: IBM Corp. -Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} -Prefix: /opt/xcat-kitsample -BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root - -%ifos linux -BuildArch: noarch -#Requires: -%endif - -Provides: pkg2 = %{epoch}:%{version} - -%description -Testing package builds for xCAT Sample Kit - -%prep -%setup -q -n pkg2 -%build -%install -rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/%{prefix}/%{name}/files -mkdir -p $RPM_BUILD_ROOT/etc/%{name} - - -set +x - -%ifos linux -cp -a files/* $RPM_BUILD_ROOT/%{prefix}/%{name}/files/ -chmod -R 755 $RPM_BUILD_ROOT/%{prefix}/%{name}/files/* -cp -a cfg/* $RPM_BUILD_ROOT/etc/%{name}/ -chmod -R 644 $RPM_BUILD_ROOT/etc/%{name}/* -%endif - -set -x - - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%{prefix} -/etc/%{name} - -%changelog - -%pre -if [ "$1" = "1" ] ; then - echo "running pkg2 rpm pre section" -elif [ "$1" = "2" ] ; then - echo "running pkg2 rpm preup section" -fi - -%post -if [ "$1" = "1" ] ; then - echo "running pkg2 rpm post section" -elif [ "$1" = "2" ] ; then - echo "running pkg2 rpm postup section" -fi - -%preun -echo "running pkg2 rpm preun section" - -%postun -echo "running pkg2 rpm postun section" - - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/cfg/pkg2.cfg b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/cfg/pkg2.cfg deleted file mode 100644 index cb5c4c3e6..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/cfg/pkg2.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# -# -# a config file for pkg2 diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file1 b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file1 deleted file mode 100644 index dc75e0788..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file1 +++ /dev/null @@ -1 +0,0 @@ -file 1 in pkg2 diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file2 b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file2 deleted file mode 100644 index d5bcb4d69..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg2/pkg2/files/pkg2.file2 +++ /dev/null @@ -1,2 +0,0 @@ -file 2 in pkg2 - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.spec b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.spec deleted file mode 100644 index 17270eeaf..000000000 --- a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.spec +++ /dev/null @@ -1,76 +0,0 @@ -Summary: Pkg3 for Sample Kit -Name: pkg3 -Version: 1 -Release: 1 -Epoch: 1 -License: EPL -Group: Applications/System -Source: pkg3.tar.gz -Packager: IBM Corp. -Vendor: IBM Corp. -Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} -Prefix: /opt/xcat-kitsample -BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root - -%ifos linux -BuildArch: noarch -#Requires: -%endif - -Provides: pkg3 = %{epoch}:%{version} - -%description -Testing package builds for xCAT Sample Kit - -%prep -%setup -q -n pkg3 -%build -%install -rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/%{prefix}/%{name}/files -mkdir -p $RPM_BUILD_ROOT/etc/%{name} - -set +x - -%ifos linux -cp -a files/* $RPM_BUILD_ROOT/%{prefix}/%{name}/files/ -chmod -R 755 $RPM_BUILD_ROOT/%{prefix}/%{name}/files/* -cp -a cfg/* $RPM_BUILD_ROOT/etc/%{name}/ -chmod -R 644 $RPM_BUILD_ROOT/etc/%{name}/* -%endif - -set -x - - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%{prefix} -/etc/%{name} - -%changelog - -%pre -if [ "$1" = "1" ] ; then - echo "running pkg3 rpm pre section" -elif [ "$1" = "2" ] ; then - echo "running pkg3 rpm preup section" -fi - -%post -if [ "$1" = "1" ] ; then - echo "running pkg3 rpm post section" -elif [ "$1" = "2" ] ; then - echo "running pkg3 rpm postup section" -fi - -%preun -echo "running pkg3 rpm preun section" - -%postun -echo "running pkg3 rpm postun section" - - - diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.tar.gz b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg3/pkg3.tar.gz deleted file mode 100644 index af7442d05102bb93831e6bb5b763bedc15b6c056..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 271 zcmV+q0r37GiwFR$+koKFD8!FC~9=G9dp1Ci(m6+E01mHGIH@wXgH%@}58Y`Zq>N{%YZU zJoV@K`@D&%?a0TUe|tNS*t7cA3$HO-|9aa0i(CCW)PD-0{`FY@XaIjE)PGesG5-NR zI{#T;|ICHM`7ebr|Iqzq5@C(m{%?wh{Iz37|4(6+%SE)Ms_*Kyq3}JZ`vJ#600000 V00000004mBbp@$}BI*Dr008!Zj{X1u diff --git a/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg4/pkg4-1-1.src.rpm b/xCAT-buildkit/share/xcat/kits/kit_build/template/source_packages/sample/pkg4/pkg4-1-1.src.rpm deleted file mode 100644 index c2ef074cab0cbe7c336411bd84522297f36487a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2692 zcmbW3d05j&8pnU(G72alC{!t-0z!pAEw2?;qcP%2Og%Aw-f zRk>P`TBxhyf#AU*3U(1_MdhrrB8P&C3Ml8!(CI#I_t}4T^1S)Z=l8xd^UgcJ%#-2L zm!0YuM!@u>(Ghez%4&)o1^a&+0n_~J(EVoz2ueHew(c8?Y`= ztv~u8FHC&^^fiDffI%Jt3dgH}f${3Yi1z{oFnu*lOH(b7*t!W@ zFkg?&l|<8&SmcVsx>e1-#+<>(;5d3+Yjk>=#+M5Q_kC=@D}0oDYKc-^IFyP;*L zic)NoUh+OIc-jBXqxuk*XL7VNBdW~Mv?D{QK9HZbDE27#1y&FtXm_=YXX;!3aw0!E z|LLyA+{KMx>(yX^xf;&S&gOtVr~!t3RA*bT?N0E>4H&2s;U7R@3?CQ~7;Jym71mh| z@gPvhu(r_u9Pxa_FMz_j>L7;a0OR4@Fdm)*WDCSEfx`Fz#PD38e>36{pwJ(Q_zh6# z7a@L&SdMrM@z;pQ5vL%2k2nkQ1W>r&0>slm;rykDXAocbgEe3-(5?alHPL{v;HQCA zBZhT=T!(l8P#E8USQ{u@uLUuz6JUY?V)$Nzc!D9~MaaJ#F{~quw?b?L6vjIsHb(3O z6x3V81SpJmLHr5gZHTRbf;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