diff --git a/grub2-xcat/debian/changelog b/grub2-xcat/debian/changelog new file mode 100644 index 0000000..1a7ef46 --- /dev/null +++ b/grub2-xcat/debian/changelog @@ -0,0 +1,5 @@ +grub2-xcat (1.0-1) unstable; urgency=low + + * Initial release (Closes: #nnnn) + + -- XCAT Thu, 20 Mar 2014 06:35:44 -0700 diff --git a/grub2-xcat/debian/compat b/grub2-xcat/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/grub2-xcat/debian/compat @@ -0,0 +1 @@ +8 diff --git a/grub2-xcat/debian/control b/grub2-xcat/debian/control new file mode 100644 index 0000000..c4a8758 --- /dev/null +++ b/grub2-xcat/debian/control @@ -0,0 +1,12 @@ +Source: grub2-xcat +Section: admin +Priority: extra +Maintainer: xCAT +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.4 +Homepage:http://xcat.sourceforge.net/ + +Package: grub2-xcat +Architecture: all +#Depends: ${shlibs:Depends}, ${misc:Depends} +Description: grub2-xcat provides some grub2 resources generated by grub2-mknetdir,including grub2 modules and grub2 image. diff --git a/grub2-xcat/debian/copyright b/grub2-xcat/debian/copyright new file mode 100644 index 0000000..a583a60 --- /dev/null +++ b/grub2-xcat/debian/copyright @@ -0,0 +1,38 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: grub2-xcat +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: 2014 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. +# Please avoid to pick license terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/grub2-xcat/debian/dirs b/grub2-xcat/debian/dirs new file mode 100644 index 0000000..7ca9711 --- /dev/null +++ b/grub2-xcat/debian/dirs @@ -0,0 +1 @@ +tftpboot/boot/grub2 diff --git a/grub2-xcat/debian/docs b/grub2-xcat/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/grub2-xcat/debian/grub2-xcat.substvars b/grub2-xcat/debian/grub2-xcat.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/grub2-xcat/debian/grub2-xcat.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/grub2-xcat/debian/install b/grub2-xcat/debian/install new file mode 100644 index 0000000..5d4ca46 --- /dev/null +++ b/grub2-xcat/debian/install @@ -0,0 +1 @@ +powerpc-ieee1275/* tftpboot/boot/grub2/powerpc-ieee1275/ diff --git a/grub2-xcat/debian/postinst b/grub2-xcat/debian/postinst new file mode 100644 index 0000000..f510eca --- /dev/null +++ b/grub2-xcat/debian/postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for grub2-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) + rm -f /tftpboot/boot/grub2/grub2.ppc + cp /tftpboot/boot/grub2/powerpc-ieee1275/core.elf /tftpboot/boot/grub2/grub2.ppc + ;; + + 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/grub2-xcat/debian/postrm b/grub2-xcat/debian/postrm new file mode 100644 index 0000000..5ec3500 --- /dev/null +++ b/grub2-xcat/debian/postrm @@ -0,0 +1,39 @@ +#!/bin/sh +# postrm script for grub2-xcat +# +# 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) + rm /tftpboot/boot/grub2/grub2.ppc + ;; + upgrade) + ;; + *) + 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/grub2-xcat/debian/rules b/grub2-xcat/debian/rules new file mode 100755 index 0000000..733de96 --- /dev/null +++ b/grub2-xcat/debian/rules @@ -0,0 +1,72 @@ +#!/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 + +export DH_COMPAT=5 + + +build: + pwd + tar -zxvf ./grub2-res.tar.gz + +clean: + dh_testdir + dh_testroot + dh_clean -d + rm -rf ./powerpc-ieee1275 + +install: + pwd + dh_testdir + dh_testroot + dh_installdirs + dh_install -X".svn" + 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: + pwd + export + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples + dh_install -X".svn" +# 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_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch clean +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/grub2-xcat/debian/source/format b/grub2-xcat/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/grub2-xcat/debian/source/format @@ -0,0 +1 @@ +3.0 (native)