diff --git a/xCAT-genesis-scripts/debian/changelog b/xCAT-genesis-scripts/debian/changelog new file mode 100644 index 000000000..461db1cf3 --- /dev/null +++ b/xCAT-genesis-scripts/debian/changelog @@ -0,0 +1,11 @@ +xcat-genesis-scripts-amd64 (2.8-snap20130205) precise; urgency=low + + * Nightly_Builds + + -- root Tue, 05 Feb 2013 16:52:00 +0800 + +xcat-genesis-scripts (2.8-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- root Mon, 04 Feb 2013 17:26:52 +0800 diff --git a/xCAT-genesis-scripts/debian/compat b/xCAT-genesis-scripts/debian/compat new file mode 100644 index 000000000..45a4fb75d --- /dev/null +++ b/xCAT-genesis-scripts/debian/compat @@ -0,0 +1 @@ +8 diff --git a/xCAT-genesis-scripts/debian/control b/xCAT-genesis-scripts/debian/control new file mode 100644 index 000000000..5900a1acc --- /dev/null +++ b/xCAT-genesis-scripts/debian/control @@ -0,0 +1,13 @@ +Source: xcat-genesis-scripts-amd64 +Section: admin +Priority: extra +Maintainer: root +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.2 + +Package: xcat-genesis-scripts-amd64 +Architecture: all +Depends: xcat-genesis-base-amd64 +Description: xCAT genesis + (Genesis Enhanced Netboot Environment for System Information and Servicing) is a small, embedded-like environment for xCAT's use in discovery and management actions when interaction with an OS is infeasible. This package reperesents the EPL content that is more tightly bound to specific xcat-core versions + diff --git a/xCAT-genesis-scripts/debian/copyright b/xCAT-genesis-scripts/debian/copyright new file mode 100644 index 000000000..15de46f36 --- /dev/null +++ b/xCAT-genesis-scripts/debian/copyright @@ -0,0 +1,36 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: xcat-genesis-scripts +Source: + +Files: * +Copyright: + +License: + + + . + + +# If you want to use GPL v2 or later for the /debian/* files use +# the following clauses, or change it to suit. Delete these two lines +Files: debian/* +Copyright: 2013 root +License: GPL-2+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/xCAT-genesis-scripts/debian/dirs b/xCAT-genesis-scripts/debian/dirs new file mode 100644 index 000000000..699b7d54d --- /dev/null +++ b/xCAT-genesis-scripts/debian/dirs @@ -0,0 +1 @@ +/opt/xcat/share/xcat/netboot/genesis/x86_64/fs diff --git a/xCAT-genesis-scripts/debian/docs b/xCAT-genesis-scripts/debian/docs new file mode 100644 index 000000000..e69de29bb diff --git a/xCAT-genesis-scripts/debian/install b/xCAT-genesis-scripts/debian/install new file mode 100644 index 000000000..5cb0e422d --- /dev/null +++ b/xCAT-genesis-scripts/debian/install @@ -0,0 +1,3 @@ +./etc/ opt/xcat/share/xcat/netboot/genesis/x86_64/fs +./bin/ opt/xcat/share/xcat/netboot/genesis/x86_64/fs +./sbin/ opt/xcat/share/xcat/netboot/genesis/x86_64/fs diff --git a/xCAT-genesis-scripts/debian/postinst b/xCAT-genesis-scripts/debian/postinst new file mode 100644 index 000000000..f5e28d707 --- /dev/null +++ b/xCAT-genesis-scripts/debian/postinst @@ -0,0 +1,40 @@ +#!/bin/sh +# postinst script for xcat-genesis-scripts +# +# 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) + touch /etc/xcat/genesis-scripts-updated + ;; + + 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/xCAT-genesis-scripts/debian/postrm b/xCAT-genesis-scripts/debian/postrm new file mode 100644 index 000000000..c1d7ffa21 --- /dev/null +++ b/xCAT-genesis-scripts/debian/postrm @@ -0,0 +1,37 @@ +#!/bin/sh +# postrm script for xcat-genesis-scripts +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm 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/xCAT-genesis-scripts/debian/preinst b/xCAT-genesis-scripts/debian/preinst new file mode 100644 index 000000000..6a96151b9 --- /dev/null +++ b/xCAT-genesis-scripts/debian/preinst @@ -0,0 +1,35 @@ +#!/bin/sh +# preinst script for xcat-genesis-scripts +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + ;; + + abort-upgrade) + ;; + + *) + echo "preinst 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/xCAT-genesis-scripts/debian/prerm b/xCAT-genesis-scripts/debian/prerm new file mode 100644 index 000000000..6dbaef845 --- /dev/null +++ b/xCAT-genesis-scripts/debian/prerm @@ -0,0 +1,38 @@ +#!/bin/sh +# prerm script for xcat-genesis-scripts +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + ;; + + failed-upgrade) + ;; + + *) + echo "prerm 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/xCAT-genesis-scripts/debian/rules b/xCAT-genesis-scripts/debian/rules new file mode 100755 index 000000000..c64076ab2 --- /dev/null +++ b/xCAT-genesis-scripts/debian/rules @@ -0,0 +1,39 @@ +#!/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 + +build: + pwd + +clean: + dh_testdir + dh_testroot + dh_clean -d + +install: + pwd + dh_testdir + dh_testroot + dh_installdirs + dh_install -X".svn" + dh_compress + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-independent files here. +binary-indep: build install + +binary-arch: + pwd + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure