# HG changeset patch # User Nathan Phillip Brink # Date 2010-04-06 18:54:49 # Node ID 9df7bba14ccc84b4c3a861c23a224f2151493b0f # Parent 0b673f79788d6e40d51f9a63649755b9a8b588da sys-apps/kexec-tools: Initial import from Gentoo's Portage diff --git a/sys-apps/kexec-tools/ChangeLog b/sys-apps/kexec-tools/ChangeLog new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/ChangeLog @@ -0,0 +1,185 @@ +# ChangeLog for sys-apps/kexec-tools +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.32 2010/03/28 04:01:58 darkside Exp $ + + 28 Mar 2010; Jeremy Olexa metadata.xml: + Drop myself from metadata, add maintainer-needed + +*kexec-tools-2.0.1 (10 Jan 2010) + + 10 Jan 2010; Robin H. Johnson + +kexec-tools-2.0.1.ebuild: + Bug #293663: version bump. + + 20 Aug 2009; Jeremy Olexa + -files/kexec-tools-1.101-LDFLAGS.patch, + -files/kexec-tools-1.101-ppc64.patch, + -files/kexec-tools-1.101-respect-LDFLAGS.patch, + -files/kexec-linux-headers.patch: + remove old patches + +*kexec-tools-2.0.0-r2 (12 Apr 2009) + + 12 Apr 2009; Jeremy Olexa files/kexec.init, + -kexec-tools-1.101-r4.ebuild, -kexec-tools-1.101-r7.ebuild, + +kexec-tools-2.0.0-r2.ebuild: + revision bump to force installation of a new init script that is compatible + with openrc-0.4.3. Stable users need not upgrade but can without issues + + 22 Mar 2009; Markus Meier kexec-tools-2.0.0-r1.ebuild: + amd64/x86 stable, bug #260092 + + 25 Jan 2009; Jeremy Olexa + files/kexec-tools-2.0.0-respect-LDFLAGS.patch: + Update patch, submitted by Arfrever Frehtes Taifersar Arahesis, bug 256135 + +*kexec-tools-2.0.0-r1 (25 Jan 2009) + + 25 Jan 2009; Jeremy Olexa + +files/kexec-tools-2.0.0-respect-LDFLAGS.patch, -kexec-tools-2.0.0.ebuild, + +kexec-tools-2.0.0-r1.ebuild: + Add patch to respect LDFLAGS in kdump + +*kexec-tools-2.0.0 (23 Jan 2009) + + 23 Jan 2009; Jeremy Olexa + +files/kexec-tools-2.0.0-asneeded.patch, metadata.xml, + +kexec-tools-2.0.0.ebuild, kexec-tools-9999.ebuild: + Version bump to 2.0.0 and allign -9999 ebuild with 2.0.0 (style changes). + New use flag to disable extended xen support if desired. + +*kexec-tools-1.101-r7 (22 Jan 2009) + + 22 Jan 2009; Jeremy Olexa + -kexec-tools-1.101-r6.ebuild, +kexec-tools-1.101-r7.ebuild: + Respect user CFLAGS, bug 241994 + + 22 Jan 2009; Jeremy Olexa kexec-tools-9999.ebuild: + Fix git URL, bug 239512 + + 22 Jan 2009; Jeremy Olexa metadata.xml: + update metedata.xml - I'll maintain this + +*kexec-tools-1.101-r6 (18 Dec 2008) + + 18 Dec 2008; Daniel Drake files/kexec.init, + +kexec-tools-1.101-r6.ebuild: + Fix 2 bugs in init script, patch from Richard Li and Chris Slycord in bug + #219315 + +*kexec-tools-1.101-r5 (01 Aug 2008) + + 01 Aug 2008; Matthias Schwarzott files/kexec.init, + +kexec-tools-1.101-r5.ebuild: + Fixed init script to detect reboot also with baselayout-2, Bug #218268. + + 21 Mar 2008; Stefan Schweizer + -files/kexec-tools-9999-LDFLAGS.patch, files/kexec.init, + kexec-tools-9999.ebuild: + remove failing patch thanks to pioto in bug 213426 and fix init script for + openrc, bug 214018 + + 11 Mar 2008; Stefan Schweizer + +files/kexec-tools-1.101-respect-LDFLAGS.patch, + kexec-tools-1.101-r4.ebuild: + respect ldflags, thanks to Arfrever Frehtes Taifersar Arahesis + in bug 181463 + + 21 Jan 2008; Stefan Schweizer files/kexec.init: + set KPARAM correctly thanks to Friedrich Oslage + in bug 203406 + + 12 May 2007; Daniel Drake metadata.xml: + Move from kernel to kernel-misc herd + +*kexec-tools-1.101-r4 (13 Mar 2007) + + 13 Mar 2007; Roy Marples files/kexec.init, + +kexec-tools-1.101-r4.ebuild: + New init script works with non bash shells. + +*kexec-tools-9999 (06 Mar 2007) + + 06 Mar 2007; Mike Frysinger + +files/kexec-tools-9999-LDFLAGS.patch, +kexec-tools-9999.ebuild: + Add ebuild for git tree. + + 06 Mar 2007; +files/kexec-linux-headers.patch, + -kexec-tools-1.101.ebuild, kexec-tools-1.101-r3.ebuild: + Do not use linux-headers incorrectly, thanks to Sheldon Hearn + in bug 169610 + + 05 Nov 2006; kexec-tools-1.101-r3.ebuild: + stable on amd64 + + 28 Oct 2006; Christian Faulhammer + kexec-tools-1.101-r3.ebuild: + x86 stable wrt bug #151251 + + 13 Aug 2006; Roy Marples files/kexec.conf, + files/kexec.init: + Update the init script so that it's more intelligent working things out + so it should just work for most peoples installs. + + We now confiure kexec on shutdown by default instead of startup. + +*kexec-tools-1.101-r3 (13 Jun 2006) + + 13 Jun 2006; Daniel Drake files/kexec.conf, + files/kexec.init, -kexec-tools-1.100-r1.ebuild, + -kexec-tools-1.101-r1.ebuild, -kexec-tools-1.101-r2.ebuild, + +kexec-tools-1.101-r3.ebuild: + Add new configuration variable, which allows you to load the kernel image + during shutdown rather than startup. This saves some memory during system + operation, but poses an inconvenience if you like to use 'kexec --unload' + during operation to disable kexec for the next reboot. + +*kexec-tools-1.101-r2 (04 Mar 2006) + + 04 Mar 2006; Stefan Schweizer files/kexec.init, + +kexec-tools-1.101-r2.ebuild: + version bump, add kdump patches from fastboot mailing list, use make + install, sanitize init script thanks to David Danier in bug + 124966 + + 25 Feb 2006; Mike Frysinger + +files/kexec-tools-1.101-ppc64.patch, kexec-tools-1.101-r1.ebuild: + Fix configure detection of ppc64 hosts. + + 29 Jan 2006; Mike Frysinger + +files/kexec-tools-1.101-LDFLAGS.patch, kexec-tools-1.101-r1.ebuild: + Fix building with LDFLAGS. + +*kexec-tools-1.101-r1 (20 Jan 2006) + + 20 Jan 2006; Stefan Schweizer files/kexec.conf, + files/kexec.init, +kexec-tools-1.101-r1.ebuild: + Add KPARAM autodetection thanks to James Le Cuirot in bug + 107527 + + 29 Oct 2005; Mark Loeser kexec-tools-1.101.ebuild: + Stable on x86; bug #110734 + +*kexec-tools-1.101 (12 Mar 2005) + + 12 Mar 2005; Stefan Schweizer + +kexec-tools-1.101.ebuild: + version bump + +*kexec-tools-1.100-r1 (04 Feb 2005) + + 04 Feb 2005; Stefan Schweizer files/kexec.init, + +kexec-tools-1.100-r1.ebuild: + Making initrd support actually work, thanks to mayday147 in + http://forums.gentoo.org/viewtopic.php?p=2055679#2055679 + +*kexec-tools-1.100 (31 Jan 2005) + + 31 Jan 2005; Stefan Schweizer +metadata.xml, + +files/kexec.conf, +files/kexec.init, +kexec-tools-1.100.ebuild: + New ebuild thanks to Starz McCllelan , Jay Pfeifer + , Christopher Sidebottom , + Justus Winter , Radoslaw -AstralStorm- Szkodzinski + , Daniel Webert and Carlos Silva + in bug 50313 + diff --git a/sys-apps/kexec-tools/Manifest b/sys-apps/kexec-tools/Manifest new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/Manifest @@ -0,0 +1,12 @@ +AUX kexec-tools-2.0.0-asneeded.patch 649 RMD160 e4686dbdd2acb6713499553b1a8141857f517876 SHA1 75ea096fab33f3173d17207f23e1471c12c7b776 SHA256 734774df849124ebd3202b57a47a025f9b6e9d94585f0257b282a2d5e214db06 +AUX kexec-tools-2.0.0-respect-LDFLAGS.patch 290 RMD160 d49f079dc270d602f7f7802ec56ee2fe867da359 SHA1 8d65add25fee582433b08e5cd09018e2efbe55e8 SHA256 c815c53eebcfddd687cefcaa835b604b489f14410bbd4c524e845cf31c69fa15 +AUX kexec.conf 397 RMD160 a366158ef7a24764c7e42bd0a246e035587d0c42 SHA1 46760b27c210c7514a86f9d2f2b35b3ffc5f9d90 SHA256 59bd15f8a0be3a41a457e61cfbb3520252773ed6422b9b223b347dfeb54f152a +AUX kexec.init 2115 RMD160 ecd6acfb42923fdc0bfb8f094e5a212a5926b59d SHA1 da5c950250700bc50c35d77a64b689059f72f07a SHA256 6dae3ca906749857d372359431d5ceccc4047dbacb975b988dbcd81cacf1f919 +DIST kexec-tools-2.0.0.tar.bz2 262331 RMD160 88b8e0cf6fc7772f5f5d63536996f6afe67c2232 SHA1 5e822216553258c788480984cd214f7d13b212ca SHA256 41439d49957d0400c7bd9e26b7573049025133cb5edac18c1eb08993953e2044 +DIST kexec-tools-2.0.1.tar.bz2 269432 RMD160 42726138bcd4342df768f41d0aef4e003c2a2090 SHA1 d3711794a2161bb88c75b74b5d6b41596e505b25 SHA256 f61f7be8896d4e3ee788712c564296bcb431e2e0b0564cc14b40a81b6df8d311 +EBUILD kexec-tools-2.0.0-r1.ebuild 993 RMD160 2d68c08d6af398d21ba130d678a8af839b31c915 SHA1 fc674c6db01f294593c511defed7349e5ef56199 SHA256 6d6dcbd1cb48e50b7a72b5629606189d4043dd907c3eea4fb2be4e5ff9196c9b +EBUILD kexec-tools-2.0.0-r2.ebuild 997 RMD160 eaccc5168b44daef797c30b0e3095057e93cfbf3 SHA1 011d49c1fe27c348ca164f934826f0f8f1a9a933 SHA256 3d8c5ea277b69b4a16d83f36426b5c37534873fb8504d219b80cde97018bf0c8 +EBUILD kexec-tools-2.0.1.ebuild 1028 RMD160 ea0a72d3b142c3a71515aacdd6317d3ffe7e1ed7 SHA1 b3bba4beb0853c2bc17bf331d347abe81296bdfb SHA256 dcdc2b82f5ded268f7f5e966c795bda2d67b4537c78c2561fa8922417d77c644 +EBUILD kexec-tools-9999.ebuild 965 RMD160 d8352bef2a700ff169d82b1a7f3081cbd8b32814 SHA1 7c0f4c1ca0a2fde7b6b932040252616d618edb45 SHA256 1482ab267103c9a27a9d45b3525adccc6e54397a0859947ab3c0ad8aaa0b135c +MISC ChangeLog 6978 RMD160 4374d514424dc03396ded643c62fbf6dcaaac8b1 SHA1 272ad76285a422af0a41095d482f2bff0b62407f SHA256 0655d6b339b213238f8a24bb9e9b79109cbcb0abfdf54bbd969a192362f7a538 +MISC metadata.xml 317 RMD160 199bfdf7ca592ea70bfaf830c17300d252cbf3a6 SHA1 e681cd2f0685e1e3325b7b350b78e49d144070f6 SHA256 63d6d7e1e0ba930dc69ae78e9df7a03965c2a0534af7222929a69e80978000d8 diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.0-asneeded.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.0-asneeded.patch new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.0-asneeded.patch @@ -0,0 +1,17 @@ +Upstream already: +http://git.kernel.org/?p=linux/kernel/git/horms/kexec-tools.git;a=blobdiff;f=kexec/Makefile;h=99949c44f94e5c727d6e379e86bb373730e74237;hp=61479040891440a76d95771b8f9d318526cb83fa;hb=6abf3ba5dc63ef670010927d5572d38c3ce2a587;hpb=8108aeeef14a2ab40756e90c980ac09687eff007 + +--- kexec/Makefile.orig 2009-01-22 22:09:36.502007555 -0600 ++++ kexec/Makefile 2009-01-22 22:10:21.644256852 -0600 +@@ -67,10 +67,9 @@ + + -include $(KEXEC_DEPS) + +-$(KEXEC): LDFLAGS+=$(LIBS) + $(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB) + @$(MKDIR) -p $(@D) +- $(LINK.o) -o $@ $^ ++ $(LINK.o) -o $@ $^ $(LIBS) + + $(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include + diff --git a/sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch b/sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec-tools-2.0.0-respect-LDFLAGS.patch @@ -0,0 +1,11 @@ +--- kdump/Makefile ++++ kdump/Makefile +@@ -18,7 +18,7 @@ + $(KDUMP): CC=$(TARGET_CC) + $(KDUMP): $(KDUMP_OBJS) + @$(MKDIR) -p $(@D) +- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $(KDUMP_OBJS) ++ $(CC) $(LDFLAGS) -o $@ $(KDUMP_OBJS) + + $(KDUMP_MANPAGE): kdump/kdump.8 + $(MKDIR) -p $(MANDIR)/man8 diff --git a/sys-apps/kexec-tools/files/kexec.conf b/sys-apps/kexec-tools/files/kexec.conf new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.conf @@ -0,0 +1,18 @@ +# Boot partition +#BOOTPART="/boot" + +# Kernel name +#KNAME="vmlinuz-2.6.10" + +# Root partition (should be autodetected) +#ROOTPART="/dev/hda3" + +# Kernel parameters (should be autodetected) +#KPARAM="splash=silent,theme:emergence" + +# Initrd +#INITRD="/boot/fbsplash-emergence-1024x768" + +# Load kexec kernel image into memory during shutdown instead of bootup +# (default: yes) +#LOAD_DURING_SHUTDOWN="yes" diff --git a/sys-apps/kexec-tools/files/kexec.init b/sys-apps/kexec-tools/files/kexec.init new file mode 100755 --- /dev/null +++ b/sys-apps/kexec-tools/files/kexec.init @@ -0,0 +1,94 @@ +#!/sbin/runscript +# 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/files/kexec.init,v 1.14 2009/04/12 04:45:19 darkside Exp $ + +depend() { + need localmount +} + +image_path() { + local x= kver=$(uname -r) + for x in "${KNAME:-bzImage}" vmlinuz \ + bzImage-"${kver}" vmlinuz-"${kver}" ; do + if [ -e "${BOOTPART}/${x}" ] ; then + echo "${BOOTPART}/${x}" + return 0 + fi + done + + return 1 +} + +load_image() { + if [ "${KNAME}" = "-" ] ; then + ebegin "Disabling kexec" + kexec -u + eend $? + return $? + fi + + BOOTPART="${BOOTPART:-/boot}" + local img="$(image_path)" mounted=false initrdopt= + + if [ -z "${img}" ] ; then + # If we cannot find our image, try mounting ${BOOTPART} + if ! grep -q " ${BOOTPART} " /proc/mounts ; then + ebegin "Mounting ${BOOTPART}" + mount "${BOOTPART}" && mounted=true + eend $? || return $? + img="$(image_path)" + fi + fi + + if [ -z "${img}" ] ; then + eerror "No kernel image found in ${BOOTPART}!" + ${mounted} && umount "${BOOTPART}" + return 1 + fi + + ebegin "Loading kernel image ${img} for kexec" + if [ -z "${ROOTPART}" ] ; then + ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab)")" + fi + if [ -z "${KPARAM}" ] ; then + KPARAM="$(sed -e 's/ /\n/g' /proc/cmdline | grep -v -e "^root=" | tr '\n' ' ')" + fi + + # Use the default initrd if it exists and none other given + if [ -z "${INITRD}" -a -e "${BOOTPART}"/initrd ] ; then + INITRD="${BOOTPART}/initrd" + fi + if [ -e "${INITRD}" ] ; then + initrdopt="--initrd=${INITRD}" + fi + + kexec -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt} + local res=$? + + ${mounted} && umount "${BOOTPART}" + eend ${res} + return ${res} +} + +start() { + [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ] && return 0 + + ebegin "Configuring kexec" + load_image + eend 0 +} + +stop() { + [ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0 + + ebegin "Configuring kexec" + if [ "`/sbin/runlevel|/bin/cut -c 3`" != "6" ]; then + einfo "Not rebooting, so disabling" + kexec -u + return 0 + fi + + load_image + eend $? +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.0-r1.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.0-r1.ebuild new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.0-r1.ebuild,v 1.2 2009/03/22 16:26:25 maekke Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools" +SRC_URI="mirror://kernel/linux/kernel/people/horms/kexec-tools/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="xen zlib" +DEPEND="zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-asneeded.patch" + epatch "${FILESDIR}/${P}-respect-LDFLAGS.patch" +} + +src_configure() { + econf $(use_with zlib) $(use_with xen) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + doman kexec/kexec.8 + dodoc News AUTHORS TODO + + newinitd "${FILESDIR}"/kexec.init kexec || die + newconfd "${FILESDIR}"/kexec.conf kexec || die +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.0-r2.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.0-r2.ebuild new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.0-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.0-r2.ebuild,v 1.1 2009/04/12 04:45:19 darkside Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools" +SRC_URI="mirror://kernel/linux/kernel/people/horms/kexec-tools/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="xen zlib" +DEPEND="zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-asneeded.patch" + epatch "${FILESDIR}/${P}-respect-LDFLAGS.patch" +} + +src_configure() { + econf $(use_with zlib) $(use_with xen) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + doman kexec/kexec.8 + dodoc News AUTHORS TODO + + newinitd "${FILESDIR}"/kexec.init kexec || die + newconfd "${FILESDIR}"/kexec.conf kexec || die +} diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.1.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.1.ebuild new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-2.0.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-2.0.1.ebuild,v 1.1 2010/01/10 09:57:10 robbat2 Exp $ + +EAPI=2 + +inherit eutils + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools" +SRC_URI="mirror://kernel/linux/kernel/people/horms/kexec-tools/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="xen zlib" +DEPEND="zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +src_prepare() { + # merged upstream + #epatch "${FILESDIR}/${PN}-2.0.0-asneeded.patch" + + epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch" +} + +src_configure() { + econf $(use_with zlib) $(use_with xen) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + doman kexec/kexec.8 + dodoc News AUTHORS TODO + + newinitd "${FILESDIR}"/kexec.init kexec || die + newconfd "${FILESDIR}"/kexec.conf kexec || die +} diff --git a/sys-apps/kexec-tools/kexec-tools-9999.ebuild b/sys-apps/kexec-tools/kexec-tools-9999.ebuild new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-9999.ebuild,v 1.4 2009/01/23 04:43:47 darkside Exp $ + +EAPI=2 + +EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/horms/kexec-tools.git" +inherit git autotools + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/" +SRC_URI="" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="xen zlib" +DEPEND="zlib? ( sys-libs/zlib )" +RDEPEND="${DEPEND}" + +src_unpack() { + git_src_unpack + cd "${S}" + eautoreconf +} + +src_configure() { + econf $(use_with zlib) $(use_with xen) +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + doman kexec/kexec.8 + dodoc News AUTHORS TODO doc/*.txt + + newinitd "${FILESDIR}"/kexec.init kexec || die + newconfd "${FILESDIR}"/kexec.conf kexec || die +} diff --git a/sys-apps/kexec-tools/metadata.xml b/sys-apps/kexec-tools/metadata.xml new file mode 100644 --- /dev/null +++ b/sys-apps/kexec-tools/metadata.xml @@ -0,0 +1,11 @@ + + + + kernel-misc + + maintainer-needed@gentoo.org + + + Enable extended xen support + +