diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2005-01-31 16:19:13 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2005-01-31 16:19:13 +0000 |
commit | 306a0feed514f2c71d5d92b6f42d51496c2963b2 (patch) | |
tree | e9dd67602dc877c829c27694abe1d17189d049ea /sys-apps | |
parent | ~amd64 (diff) | |
download | gentoo-2-306a0feed514f2c71d5d92b6f42d51496c2963b2.tar.gz gentoo-2-306a0feed514f2c71d5d92b6f42d51496c2963b2.tar.bz2 gentoo-2-306a0feed514f2c71d5d92b6f42d51496c2963b2.zip |
New ebuild thanks to Starz McCllelan <starz@antisocial.com>, Jay Pfeifer <pfeifer@gentoo.org>, Christopher Sidebottom <damouse@zero10.demon.co.uk>, Justus Winter <justus@sunny-winter.de>, Radoslaw -AstralStorm- Szkodzinski <astralstorm@gmail.com>, Daniel Webert <rockoo@gmail.com> and Carlos Silva <r3pek@r3pek.homelinux.org> in bug 50313
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/kexec-tools/ChangeLog | 14 | ||||
-rw-r--r-- | sys-apps/kexec-tools/Manifest | 6 | ||||
-rw-r--r-- | sys-apps/kexec-tools/files/digest-kexec-tools-1.100 | 1 | ||||
-rw-r--r-- | sys-apps/kexec-tools/files/kexec.conf | 15 | ||||
-rwxr-xr-x | sys-apps/kexec-tools/files/kexec.init | 55 | ||||
-rw-r--r-- | sys-apps/kexec-tools/kexec-tools-1.100.ebuild | 26 | ||||
-rw-r--r-- | sys-apps/kexec-tools/metadata.xml | 9 |
7 files changed, 126 insertions, 0 deletions
diff --git a/sys-apps/kexec-tools/ChangeLog b/sys-apps/kexec-tools/ChangeLog new file mode 100644 index 000000000000..35dc16683f39 --- /dev/null +++ b/sys-apps/kexec-tools/ChangeLog @@ -0,0 +1,14 @@ +# ChangeLog for sys-apps/kexec-tools +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.1 2005/01/31 16:19:13 genstef Exp $ + +*kexec-tools-1.100 (31 Jan 2005) + + 31 Jan 2005; Stefan Schweizer <genstef@gentoo.org> +metadata.xml, + +files/kexec.conf, +files/kexec.init, +kexec-tools-1.100.ebuild: + New ebuild thanks to Starz McCllelan <starz@antisocial.com>, Jay Pfeifer + <pfeifer@gentoo.org>, Christopher Sidebottom <damouse@zero10.demon.co.uk>, + Justus Winter <justus@sunny-winter.de>, Radoslaw -AstralStorm- Szkodzinski + <astralstorm@gmail.com>, Daniel Webert <rockoo@gmail.com> and Carlos Silva + <r3pek@r3pek.homelinux.org> in bug 50313 + diff --git a/sys-apps/kexec-tools/Manifest b/sys-apps/kexec-tools/Manifest new file mode 100644 index 000000000000..114835276eed --- /dev/null +++ b/sys-apps/kexec-tools/Manifest @@ -0,0 +1,6 @@ +MD5 0b78d0367d3bbc5f4fb1aa5e8fcf3579 kexec-tools-1.100.ebuild 603 +MD5 5a423a4beaa29bc40e659ee07189b141 ChangeLog 640 +MD5 6e89ba8198764bfd079a0cfa18dca593 metadata.xml 264 +MD5 3346c0b5fcc5f5974c6edb1a43acec3e files/digest-kexec-tools-1.100 69 +MD5 2fb1b484f2ce28a6f360ca237856b532 files/kexec.conf 267 +MD5 f8b9b340a121eaa017fd3e33aff29535 files/kexec.init 1127 diff --git a/sys-apps/kexec-tools/files/digest-kexec-tools-1.100 b/sys-apps/kexec-tools/files/digest-kexec-tools-1.100 new file mode 100644 index 000000000000..d020ed5730af --- /dev/null +++ b/sys-apps/kexec-tools/files/digest-kexec-tools-1.100 @@ -0,0 +1 @@ +MD5 089b933077fb9d9f87c601f80f892c5e kexec-tools-1.100.tar.gz 197124 diff --git a/sys-apps/kexec-tools/files/kexec.conf b/sys-apps/kexec-tools/files/kexec.conf new file mode 100644 index 000000000000..eb8cb7273ced --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.conf @@ -0,0 +1,15 @@ +# Boot partition +#BOOTPART="/boot" +#BOOTMOUNT=1 + +# Kernel name +#KNAME="vmlinuz-2.6.10" + +# Root partition (should be autodetected) +#ROOTPART="/dev/hda3" + +# Kernel parameters +#KPARAM="splash=silent,theme:emergence" + +# Initrd +#INITRD="/boot/fbsplash-emergence-1024x768" diff --git a/sys-apps/kexec-tools/files/kexec.init b/sys-apps/kexec-tools/files/kexec.init new file mode 100755 index 000000000000..cb53cda6701c --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.init @@ -0,0 +1,55 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init,v 1.1 2005/01/31 16:19:13 genstef Exp $ + +depend() { + need checkfs +} + +start() { + [ -z "$KNAME" ] && KNAME="bzImage" + [ -z "$BOOTPATH" ] && BOOTPATH="/boot" + [ -z "$BOOTMOUNT" ] && BOOTMOUNT=1 + [ -z "$ROOTPART" ] && ROOTPART="`cut -f 1 -d' ' /etc/mtab | grep / | tr '\n' '\t' | cut -f 1`" + [ -n "$INITRD" ] && INITRDOPT='--initrd="$INITRD"' + + if [ "$KNAME" != "-" ] + then + ebegin "Loading kernel $KNAME for Kexec..." + MNT=1 + LOCS="`cut -f 2 -d' ' /etc/mtab | tr '\n' ' '`" + for x in $LOCS + do + if [ "$x" == "$BOOTPATH" ] + then + MNT=0 + fi + done + + if [ $MNT -eq 1 -a $BOOTMOUNT -eq 1 ] + then + /bin/mount $BOOTPATH + if [ $? -ne 0 ] + then + eerror "Couldn't mount $BOOTPART" + MNT="0" + fi + fi + kexec -l $BOOTPATH/$KNAME --append="root=$ROOTPART $KPARAM" $INITRDOPT + RES=$? + if [ $MNT -eq 1 -a $BOOTMOUNT -eq 1 ] + then + /bin/umount $BOOTPATH + if [ $? -ne 0 ]; then + eerror "Couldn't umount $BOOTPART" + fi + fi + else + ebegin "Disabling kexec..." + kexec -u + RES=$? + fi + + eend $RES +} diff --git a/sys-apps/kexec-tools/kexec-tools-1.100.ebuild b/sys-apps/kexec-tools/kexec-tools-1.100.ebuild new file mode 100644 index 000000000000..c21879da62aa --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-1.100.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-1.100.ebuild,v 1.1 2005/01/31 16:19:13 genstef Exp $ + +DESCRIPTION="Load another kernel from the currently executing Linux kernel." +HOMEPAGE="http://www.xmission.com/~ebiederm/files/kexec/" +SRC_URI="http://www.xmission.com/~ebiederm/files/kexec/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +src_install() { + into / + dosbin ${S}/objdir/build/sbin/kexec + + exeinto /etc/init.d + newexe ${FILESDIR}/kexec.init kexec + + insinto /etc/conf.d + newins ${FILESDIR}/kexec.conf kexec + + doman kexec/kexec.8 + dodoc News AUTHORS TODO +} diff --git a/sys-apps/kexec-tools/metadata.xml b/sys-apps/kexec-tools/metadata.xml new file mode 100644 index 000000000000..c8f81b37cf66 --- /dev/null +++ b/sys-apps/kexec-tools/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>kernel</herd> + <maintainer> + <email>genstef@gentoo.org</email> + <name>Stefan Schweizer</name> + </maintainer> +</pkgmetadata> |