add(sys-apps/kexec-tools)

This commit is contained in:
Greg Kroah-Hartman 2013-05-08 21:26:29 -07:00
parent e99e53e44a
commit 0d5da8ac30
19 changed files with 1157 additions and 0 deletions

View File

@ -111,6 +111,7 @@ RDEPEND="${RDEPEND}
RDEPEND="${RDEPEND}
sys-apps/findutils
sys-apps/kexec-tools
app-admin/sudo
app-admin/rsyslog
app-arch/sharutils

View File

@ -0,0 +1,276 @@
# ChangeLog for sys-apps/kexec-tools
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/ChangeLog,v 1.49 2013/04/01 13:17:49 jlec Exp $
01 Apr 2013; Justin Lecher <jlec@gentoo.org> files/kexec.init-2.0.4:
Fix bashism in init script, #463752
*kexec-tools-2.0.4-r1 (30 Mar 2013)
30 Mar 2013; Justin Lecher <jlec@gentoo.org> files/kexec.init-2.0.4,
-kexec-tools-2.0.4.ebuild, +kexec-tools-2.0.4-r1.ebuild:
Fix init script if no initrd is used, #463752
*kexec-tools-2.0.4 (27 Mar 2013)
27 Mar 2013; Justin Lecher <jlec@gentoo.org> files/kexec.init-2.0.3,
+files/kexec.conf-2.0.4, +files/kexec.init-2.0.4, +kexec-tools-2.0.4.ebuild,
+files/kexec-tools-2.0.4-disable-kexec-test.patch, metadata.xml:
Version BUmp; drop bashism from initscript, #447548; enhanced detection of
kernel and initrd image, #412039
*kexec-tools-2.0.3-r1 (18 Mar 2012)
18 Mar 2012; Justin Lecher <jlec@gentoo.org> +files/kexec.conf-2.0.3,
+files/kexec.init-2.0.3, +kexec-tools-2.0.3-r1.ebuild, +files/README.Gentoo:
Use $RC_REBOOT instead of /sbin/runlevel, #401231 thanks William Hubbs for
the patch; usability enhancements including better detection of the kernel
image, additional option parsing, better descriptions in the config file,
#392229, thanks teika for those things; better detection of genkernel,
#370207, thanks Łukasz Stelmach & Dennis Schridde for their contributions
*kexec-tools-2.0.3 (16 Feb 2012)
16 Feb 2012; Justin Lecher <jlec@gentoo.org> +kexec-tools-2.0.3.ebuild,
metadata.xml:
Add myself as maintainer, version bump
21 Sep 2011; Tim Harder <radhermit@gentoo.org> -kexec-tools-2.0.0-r1.ebuild,
-kexec-tools-2.0.0-r2.ebuild, -files/kexec-tools-2.0.0-asneeded.patch,
-kexec-tools-2.0.1.ebuild, -kexec-tools-2.0.1-r1.ebuild,
-kexec-tools-2.0.2.ebuild:
Remove old.
21 Sep 2011; Tony Vroon <chainsaw@gentoo.org> kexec-tools-2.0.2-r1.ebuild:
Marked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo,
Elijah "Armageddon" El Lazkani & Tomáš "Mepho" Pružina in bug #382659.
21 Sep 2011; Michał Górny <mgorny@gentoo.org> kexec-tools-9999.ebuild:
Migrate to git-2.
19 Sep 2011; Andreas Schuerch <nativemad@gentoo.org>
kexec-tools-2.0.2-r1.ebuild:
x86 stable, see bug 382659
15 Apr 2011; Diego E. Pettenò <flameeyes@gentoo.org>
kexec-tools-2.0.2-r1.ebuild:
Add fix for compiling with gcc 4.6 (bug #631069). Thanks to Vladimir for the
patch; upstream already fixed this one.
*kexec-tools-2.0.2-r1 (27 Mar 2011)
27 Mar 2011; Justin Lecher <jlec@gentoo.org> +kexec-tools-2.0.2-r1.ebuild,
+files/kexec.init-ng:
Allow bypassing of kexec during reboot, #357095; Proper usage of ASFLAGS,
#313611
29 Nov 2010; Tim Harder <radhermit@gentoo.org> kexec-tools-9999.ebuild:
Use the correct upstream git repository (bug #339600 by Pinky).
*kexec-tools-2.0.2 (29 Oct 2010)
29 Oct 2010; Tim Harder <radhermit@gentoo.org> +kexec-tools-2.0.2.ebuild,
metadata.xml:
Version bump (bug #343209 by jlec). Update SRC_URI, add lzma USE flag and
dependency, and add a couple die statements to helper functions.
29 Oct 2010; Justin Lecher <jlec@gentoo.org> files/kexec.init:
Cleaned extra whitespaces in init script
07 Oct 2010; Tim Harder <radhermit@gentoo.org>
kexec-tools-2.0.0-r1.ebuild, kexec-tools-2.0.0-r2.ebuild,
kexec-tools-2.0.1.ebuild, kexec-tools-2.0.1-r1.ebuild,
kexec-tools-9999.ebuild:
Fix HOMEPAGE for bug #336481, thanks to Christian Asseburg for reporting.
Update copyright header.
*kexec-tools-2.0.1-r1 (30 Jul 2010)
30 Jul 2010; Magnus Granberg <zorry@gentoo.org>
+kexec-tools-2.0.1-r1.ebuild:
fix #183062 disable -fPIE -pie thanks all in that bug.
18 Jul 2010; Jeroen Roovers <jer@gentoo.org> metadata.xml:
Remove useless maintainer entry.
28 Mar 2010; Jeremy Olexa <darkside@gentoo.org> metadata.xml:
Drop myself from metadata, add maintainer-needed
*kexec-tools-2.0.1 (10 Jan 2010)
10 Jan 2010; Robin H. Johnson <robbat2@gentoo.org>
+kexec-tools-2.0.1.ebuild:
Bug #293663: version bump.
20 Aug 2009; Jeremy Olexa <darkside@gentoo.org>
-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 <darkside@gentoo.org> 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 <maekke@gentoo.org> kexec-tools-2.0.0-r1.ebuild:
amd64/x86 stable, bug #260092
25 Jan 2009; Jeremy Olexa <darkside@gentoo.org>
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 <darkside@gentoo.org>
+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 <darkside@gentoo.org>
+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 <darkside@gentoo.org>
-kexec-tools-1.101-r6.ebuild, +kexec-tools-1.101-r7.ebuild:
Respect user CFLAGS, bug 241994
22 Jan 2009; Jeremy Olexa <darkside@gentoo.org> kexec-tools-9999.ebuild:
Fix git URL, bug 239512
22 Jan 2009; Jeremy Olexa <darkside@gentoo.org> metadata.xml:
update metedata.xml - I'll maintain this
*kexec-tools-1.101-r6 (18 Dec 2008)
18 Dec 2008; Daniel Drake <dsd@gentoo.org> 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 <zzam@gentoo.org> 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 <genstef@gentoo.org>
-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 <genstef@gentoo.org>
+files/kexec-tools-1.101-respect-LDFLAGS.patch,
kexec-tools-1.101-r4.ebuild:
respect ldflags, thanks to Arfrever Frehtes Taifersar Arahesis
<Arfrever.FTA@GMail.Com> in bug 181463
21 Jan 2008; Stefan Schweizer <genstef@gentoo.org> files/kexec.init:
set KPARAM correctly thanks to Friedrich Oslage <bluebird@porno-bullen.de>
in bug 203406
12 May 2007; Daniel Drake <dsd@gentoo.org> metadata.xml:
Move from kernel to kernel-misc herd
*kexec-tools-1.101-r4 (13 Mar 2007)
13 Mar 2007; Roy Marples <uberlord@gentoo.org> 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 <vapier@gentoo.org>
+files/kexec-tools-9999-LDFLAGS.patch, +kexec-tools-9999.ebuild:
Add ebuild for git tree.
06 Mar 2007; <genstef@gentoo.org> +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
<sheldonh@starjuice.net> in bug 169610
05 Nov 2006; <blubb@gentoo.org> kexec-tools-1.101-r3.ebuild:
stable on amd64
28 Oct 2006; Christian Faulhammer <opfer@gentoo.org>
kexec-tools-1.101-r3.ebuild:
x86 stable wrt bug #151251
13 Aug 2006; Roy Marples <uberlord@gentoo.org> 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 <dsd@gentoo.org> 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 <genstef@gentoo.org> 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 <golk@gmx.net> in bug
124966
25 Feb 2006; Mike Frysinger <vapier@gentoo.org>
+files/kexec-tools-1.101-ppc64.patch, kexec-tools-1.101-r1.ebuild:
Fix configure detection of ppc64 hosts.
29 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+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 <genstef@gentoo.org> files/kexec.conf,
files/kexec.init, +kexec-tools-1.101-r1.ebuild:
Add KPARAM autodetection thanks to James Le Cuirot <chewi@ffaura.com> in bug
107527
29 Oct 2005; Mark Loeser <halcy0n@gentoo.org> kexec-tools-1.101.ebuild:
Stable on x86; bug #110734
*kexec-tools-1.101 (12 Mar 2005)
12 Mar 2005; Stefan Schweizer <genstef@gentoo.org>
+kexec-tools-1.101.ebuild:
version bump
*kexec-tools-1.100-r1 (04 Feb 2005)
04 Feb 2005; Stefan Schweizer <genstef@gentoo.org> 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 <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

View File

@ -0,0 +1,30 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
AUX README.Gentoo 939 SHA256 e1fa00817a8230efbcdc149a64c6a65418a46d5e6977b3d3adb91d1d3f44e29f SHA512 884e88fefd7b917b34900fac71dbf38ecc54907af513b41d7423deba83811f951070c4715708973bd2935fdc35b625cc6ea5e88e9abdb11c401d92f63f14cec0 WHIRLPOOL 15a4f7dc41ec1ca1675387d4d7f922bbc47aae50663e4ff79b5cff8733c0a98727fbc54ea30949411d0eb1082afe05ce360f44dd70328c106c186e12543b663d
AUX kexec-tools-2.0.0-respect-LDFLAGS.patch 290 SHA256 c815c53eebcfddd687cefcaa835b604b489f14410bbd4c524e845cf31c69fa15 SHA512 8d34ecdf887ad8d6d09b0f65159285b6b54c434f59ea0e296b90f4e30b1f059acf933212f068172ddb1f02d854f568f24b2c899afefd782db69c252c9967efb7 WHIRLPOOL fca551236bfb55850e421654d43bb50d66fa83b1999f3d9b417a21506dd8d4ed2d75ba2699f0277cfb4681f35ecd7676b126769bbde2fb0ff6481855f0548142
AUX kexec-tools-2.0.4-disable-kexec-test.patch 473 SHA256 95d7d6756aa438af926358dc9e6c964e11201a7c19b2ed2b457f013313d47558 SHA512 c7fe9176db7c3f9c84add1c263c5a695684bf1db55d47152534f0bbb97c084ad5d3f2090307d0bdfcf5622fa810aca3c104f81b3d24baa76f42d3f32d1d4bbad WHIRLPOOL 3b0cebf5aa1cd923c7867d588af9b74002b6266d3065e7c59061c5b510ad1f8aea0e1fa78d2f17a94bf25424db1d566a5648530e9ce5044ead28407b7f6135c5
AUX kexec.conf 397 SHA256 59bd15f8a0be3a41a457e61cfbb3520252773ed6422b9b223b347dfeb54f152a SHA512 2c31ae780b6fd16f3a07857d30415fef50ca45297c639234eb6fad871e80819e73196d389a3e473bc9685569ce8688408428ee25a1328c16d1bf729912d63496 WHIRLPOOL 0bba1d957fff2d6eea1ffb0efd53eb2546df61a4209c14e8000ea00f3353ae57623188f50cfb38b614cacecf2af2cb83d1f13b8583c6229dbcac2e3a0e15db43
AUX kexec.conf-2.0.3 961 SHA256 ecc3903b0a302243be84e954c2f4bb1c0ce86ca516589a5a30fa12db821969d7 SHA512 c81235f0b3fabbf43409f2dc8622274b35aab8fed05ade553c1217a0826f36150633696f21ea894ff0f85e75bab230fc4629235c2c253617e802a0cd4ade771b WHIRLPOOL a6f9bebb1927e9a24c1d0dd898d10dff98b6e0972af46e911517bb3a326d091bf95aaf68838f9b6159dad2de55550197b4c17e14041424055bc4aaaac6324c8a
AUX kexec.conf-2.0.4 1013 SHA256 4c1b7e4651cd4be342db48389bc560589c896004f0274f8aba35a92fcd790531 SHA512 96db2834454aa4d038061e9b1f918932da3d3054021487425d0f70c6ad32096b9433ae2f3921e83196b23af901c32e591df3d6a84a6d14e064608d8ad895a599 WHIRLPOOL 3041644bf1688ac6c89e6078adcee987913bce124ea3ae4a2ce342c0956f319cccae93aabf39ee4aed9f23812e575f7f06cbf110bf39d9d961a1a19294108f27
AUX kexec.init 2106 SHA256 34c97c9d11ab741cb13160bab16e322929d2c84bbefaa13d33171bdf02b0dc98 SHA512 f25576d4821a54bf89e7b562392a04119caa800dad039c72cd4191e05b6e6a0d107f64607193782ddcb29c02b7f7f1fa841aec13e6171cd3d8cd51df778a58dd WHIRLPOOL 6cf7402ae612a439d1a3ff3acfada21734b586fc2cb72136ebec4b3da6f64342e334d089a5925c99bc2479e6ef034483313424bb37d9d08caa2c6c4a4d0622b8
AUX kexec.init-2.0.3 2825 SHA256 8dc2ef4c6391ec1e509381564d8c1b6602a16f107355465031efb46027d5a667 SHA512 3b1364cfd7beb03c9f1fda3d3d1e5382b2af23a2b9ad1fd981566786f5221985b35903ba62dc9cb7ba314375e05b9d6c7de9ac8e986c59c221e137ab46ffdde7 WHIRLPOOL 46eb2657e1fda4d18b6a6203bbed599e9bfd59638e4d4d363aaf69c79b58acb86bd1c13804d4945714bd8b0df64f3d77a2987888477758f08f1d67c32e10c959
AUX kexec.init-2.0.4 3173 SHA256 e7d16368ca8e9ba42d2fb7320362722729c50b360e7737578b3f8ab2187c57ee SHA512 8f4dc9b448662060d10c9dbc3175fc3085ced0435408d8cf5a29166d8ec270c71af7917efcee5364e4cd052666e415b11b838ca4ed596abd2b11caa239f9509a WHIRLPOOL 383dde8f3079b51f1651ebf661ad6841232d7490940437b74a7b8d70da17d3b84fd68bc8baf3dbb979678b371c2e00738449fc5620b8d87525d7158cbc0bd184
AUX kexec.init-ng 2264 SHA256 ba1a0d48a1a8663d2d48b83eeda987e83fa0440254573ded7c487e888824f947 SHA512 f87784856b3e0870ed0b4234d649d3567196d760da0c657c0b962d639ed953bbe9d258136587e9253b0d35cf069a62c35c4dbf70dd50196015ce1e583900a6b1 WHIRLPOOL b543f56b72f942272a17666e8d4027f8e51ac25c3c75c01127fda956b1b5d1da87b340013ec827aefd216fb7194257cac1327675dc6fe49d2aef08ab5e90fc56
DIST kexec-tools-2.0.2.tar.bz2 305961 SHA256 f9acb94dcf4cee2a04da18112a6e5732cdcbe98f893039a93582d88307e0103f SHA512 cacddfd67d30b4a21b02ddb35334cef2c60ca9038dea62e38f4b51879c77fa9f7f0e7c154fb46526fc7995b94ccf3e6a8d6ad851f865ef3362ed7a04c863cca6 WHIRLPOOL a9a620ded24e71339f4cb17e9d60a3020151937db7b65bb16657051a11f180965d2c0a83293b3fa327bc935342a3bc91051f35634d51d80f761b77af2f2bcc3d
DIST kexec-tools-2.0.3.tar.xz 264620 SHA256 a2dcb8320cab2ce22b3734ec07b1a63e27d0b301b4a88556b1b05d53f7d786a9 SHA512 f52d52a445cd4da418c3b4c3db017376a3eecda6e844f99387e2c4bc247c2d91a4ce27aed41bd703a04e7a0747597734be33fecf1419071d724012aa78507009 WHIRLPOOL 9c6b63d2eff3593fcba623ebd8c289e459467dd709a9288b58a584ff4d0bf69853af88d5cfc929eb3e2bd5b845265b2031a254ad76a6ef3580a4a9b9d03c74b5
DIST kexec-tools-2.0.4.tar.xz 271604 SHA256 e5f5ab00d746eb15b4714eca6a8ec5a1a86a62ce2bbdad1b3000161138a978c6 SHA512 2514f407d9150d2615dffc91a525fb28f159bef92b9543f9802e2618746b7d4c04137668ad8a8d8f0b75f68ed9057d09629ce736b6a061b5cf817b9d904f549e WHIRLPOOL 70ad298512e700cd1cdee7698e4fa68a769d91d3080d5d8387b8362ad49126ad68b0b6dbd1f13305958bdc988f805fa610e487682fd0eb5e4e9bcda0a9022627
EBUILD kexec-tools-2.0.2-r1.ebuild 1397 SHA256 168f11edfad0582a801776889a8d1e6a8452c8dccc9e13b0a669399138b5a9bc SHA512 1aa12ece2276ada998ea7d300a1dc6a7b079441ec7ab0ab028408ffdff559f80999d6c25d5acb12629d8ae16f59b1b3e3c505b2ef63bbba3c514ec1bb7a37970 WHIRLPOOL 78fd78ea9777d774634336b65dd6320194e8b20fc62788509394e9b42d6917cb5d6b7c56a627a0c9916e7ec652286821fdaed1945cb0971d6e7542d671e25ca7
EBUILD kexec-tools-2.0.3-r1.ebuild 1214 SHA256 75655273df06ced0c5e064880657804ea4b203048547da53c37deb0d3e2d0720 SHA512 2d10af4b3abe62e0ff9aaf58addb623b1091133da11ed4e13a99a1258813e57220fa6f8da52a2e0a08e30e5ab3013e4ca9ae97534bd42c78908ea41d86e5115c WHIRLPOOL 8553185d0dac06091b74836f48f850885c5426a843319dd35a57f45a3ef81773a4a714d79aeabc2d6d1f22ad883bcd9ac0ff6cebc12e6b974c75504a0b3326b4
EBUILD kexec-tools-2.0.3.ebuild 1132 SHA256 ef170e1267edb4152d1f681c1db1e1015dba3cd0666d399e6bc05bc4b3984eb2 SHA512 2c24365955f01a86a4ebef3fdc8dfae71ba4a8c6138f1e8fd9b2350348d35dd3877900fa63d62fdf821d8be6d5472f1a78e022a7480652a048e4a8586d9065ab WHIRLPOOL 924c2731a4ab215d5b60c6693601dc3fe6e40fc18166bc25d949cd01046eac80e4572becbe9f01d7a72cc572073236a1462f7e5dfa0e44cd3bf5fcf15eb15fa1
EBUILD kexec-tools-2.0.4-r1.ebuild 1282 SHA256 60668b4853acf88b3f485ad12566ee1b67bbc16099e529f980657af758d13c7a SHA512 89e4adf290c2ff740f86dded26b4a8ac1b319ee8523f7123242a924a0419b2a5e6b68589c5b117e9de74f86c9d60e005e7f5c6202d1b48bd95cf2bfa2b4a489c WHIRLPOOL b4fee943ecada40b8ba7672768872abb112d6c75e712b499d42b39cab805cefddf12d9d94557d2718187f6a97326bfc422a39b38c48c39577b452d4dc7333323
EBUILD kexec-tools-9999.ebuild 946 SHA256 2a644186ff46ec113f48d1952450b0b704082910b378f192c04d13e95945de03 SHA512 251a02276ce16bfd2844de53f7d89375c499d7025102bc345beae10be8ee2d8c3fd8ce9872425b7d485188177253dd050a2fe7bb15624ecc6f6e4563714580c3 WHIRLPOOL 1cc0d0cd59a90f98f1ec1b24b80d99aca300c323af8fe9621be1f04b08f4cc85278b9ceac991dd681c5e75d77aba51ea6723f7c1f211a56f7996b2fc8444c88b
MISC ChangeLog 10619 SHA256 e2ff95d45634a8adff8c5e969acff242702050902c0b05ce8005c348301377b3 SHA512 d18807ac50af3394f34846a0f62392442a13ce1b3465d784ecae5e4f7c7bc117549629c9a60c0b33f593c7a69d0d5cc185638d0d6d99e082b4b9d9bf74f6eb7a WHIRLPOOL 0489e11e0d1902cc5d030fbbb0faa2fb3b456587260096552888848ed87b19cd5fc72b7ca6d1ac44fdac0dc6979a611b41573839dfac8ad9e58e3c21f87a6d78
MISC metadata.xml 459 SHA256 9d84c6af2cbf56cf70a11bf399f623133b5da428fd00b6921e512195bce98c36 SHA512 c4def015a91deea9e8ca7269758d6d00d2d67ea242b33ffa327a0776f7c8a89d63890bd45d2377fdcbaa9f57f832418eed6bb543c58c1fd0ba5ca3fdb4987dba WHIRLPOOL 6218bde0407385cb46fc9d469e965f4933562f9be640916a882b21a8c7fbedb00ab12b466c660a1dc2354e5259ddecae01724ebac5eadfdf4bc385e5be2fe121
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEAREKAAYFAlFZiP4ACgkQgAnW8HDreRbjVgCfWnf7au96nB6zjRKyjS/85WBv
ANoAnAhQ7kWJOO6n1b2CsXd1+/R3Jgf7
=SWhC
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,33 @@
Usage
=====
Do
$ man 8 kexec
for full understanding of the underlying kexec command.
Gentoo offers a wrapper to the bare kexec command through
/etc/init.d/kexec.
Configuration
-------------
Configuration is done in /etc/conf.d/kexec, which is self-documented.
Usage
-----
In Gentoo, kexec is invoked, i.e., the new kernel will be booted when
rebooting, by reboot (8) command or by pressing Ctrl+Alt+Del.
If you want to use kexec once, just run
$ /etc/init.d/kexec start
It'll reserve kexec call at reboot. Later on, you can reboot anytime,
letting kexec starts another (or the same) kernel. When all is done in
the runlevel 6 - killing processes, unmounting volumes, etc - kexec
starts the new kernel instead of doing the normal hardware reboot.
If you want kexec to be run every time you reboot, add it to a runlevel:
$ rc-update add kexec <runlevel>
If you want to reboot in the normal way this time, do:
$ touch /nokexec

View File

@ -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

View File

@ -0,0 +1,17 @@
diff --git kexec-tools-2.0.3/kexec_test/Makefile kexec-tools-2.0.3/kexec_test/Makefile
index fec6210..2ed4d51 100644
--- kexec-tools-2.0.3/kexec_test/Makefile
+++ kexec-tools-2.0.3/kexec_test/Makefile
@@ -8,12 +8,6 @@ dist += kexec_test/Makefile $(KEXEC_TEST_SRCS) \
kexec_test/x86-setup-legacy-pic.S
BUILD_KEXEC_TEST = no
-ifeq ($(ARCH),i386)
-BUILD_KEXEC_TEST = yes
-endif
-ifeq ($(ARCH),x86_64)
-BUILD_KEXEC_TEST = yes
-endif
ifeq ($(BUILD_KEXEC_TEST),yes)

View File

@ -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"

View File

@ -0,0 +1,31 @@
# Load kexec kernel image into memory during shutdown instead of bootup
# (default: yes)
#LOAD_DURING_SHUTDOWN="yes"
# Additional arguments passed to kexec (8)
#KEXEC_OPT_ARGS=""
# Kernel image partition. Mounted automatically if not.
# (default: /boot)
#BOOTPART="/boot"
# Root partition (should be autodetected)
#ROOTPART="/dev/hda3"
# Kernel image pathname, relative from BOOTPART.
# If it's one of
# {kernel-genkernel,bzImage,vmlinuz,kernel}-<currently running kernel version>,
# or bzImage, vmlinuz (without suffix),
# then it's automaticaly detected.
# Setting it to "-" will disable kexec.
#KNAME="vmlinuz-2.6.10"
# Initrd
# Same automatic detection restriction as for KNAME apply.
# initramfs-genkernel-<currently running kernel version>,
# initrd{,.img}-<currently running kernel version>{,.img}
# will be detected.
#INITRD="/boot/fbsplash-emergence-1024x768"
# Kernel parameters (should be autodetected)
#KPARAM="splash=silent,theme:emergence"

View File

@ -0,0 +1,34 @@
# Load kexec kernel image into memory during shutdown instead of bootup
# (default: yes)
#LOAD_DURING_SHUTDOWN="yes"
# Additional arguments passed to kexec (8)
#KEXEC_OPT_ARGS=""
# Kernel image partition. Mounted automatically if not.
# (default: /boot)
#BOOTPART="/boot"
# Root partition (should be autodetected)
#ROOTPART="/dev/hda3"
# Kernel image pathname, relative from BOOTPART.
# If it's one of
# {kernel-genkernel,bzImage,vmlinuz,kernel}-<currently running kernel version>,
# or bzImage, vmlinuz (without suffix),
# then it's automaticaly detected.
# Setting it to "-" will disable kexec.
#KNAME="vmlinuz-3.9.0"
# Initrd
# Same automatic detection restriction as for KNAME apply.
# initramfs-genkernel-<currently running kernel version>,
# initrd{,.img}-<currently running kernel version>{,.img}
# will be detected.
#INITRD="/boot/fbsplash-emergence-1024x768"
# Kernel parameters (should be autodetected)
#KPARAM="splash=silent,theme:emergence"
# Do not try to mount /boot
# DONT_MOUNT_BOOT="yes"

View File

@ -0,0 +1,94 @@
#!/sbin/runscript
# 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/files/kexec.init,v 1.15 2010/10/29 06:44:51 jlec 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 $?
}

View File

@ -0,0 +1,119 @@
#!/sbin/runscript
# Copyright 1999-2013 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-2.0.3,v 1.2 2013/03/27 11:50:55 jlec Exp $
depend() {
need localmount
}
image_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${KNAME:-bzImage}" vmlinuz \
bzImage-${kver} vmlinuz-${kver} \
kernel-genkernel-${karch}-${kver} \
kernel-${kver} kernel-${karch}; do
if [[ -e "${BOOTPART}/${x}" ]] ; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
initrd_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${INITRD:-initrd}" \
initrd.img-${kver} initrd-${kver}.img \
initrd-${kver} initramfs-${kver}.img \
initramfs-genkernel-${karch}-${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)" initrd="$(initrd_path)" mounted=false initrdopt=
if [[ -z "${img}" ]] || [[ -z "${initrd}" ]]; 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)"
initrd="$(initrd_path)"
fi
fi
if [[ -z "${img}" ]]; then
eerror "No kernel image found in ${BOOTPART}!"
${mounted} && umount "${BOOTPART}"
return 1
else
ebegin "Loading kernel image ${img} for kexec"
fi
[[ -n "${ROOTPART}" ]] || \
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
[[ -n "${KPARAM}" ]] || KEXEC_OPT_ARGS+=" --reuse-cmdline"
[[ -n "${initrd}" ]] && [[ -e "${initrd}" ]] && initrdopt="--initrd=${initrd}"
einfo " Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}"
kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
local res=$?
${mounted} && umount "${BOOTPART}"
eend ${res}
return ${res}
}
start() {
if [[ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]]; then
image_path > /dev/null || \
ewarn "Cannot find kernel image. Please make sure a valid kernel image is present before reboot."
return 0
else
ebegin "Configuring kexec"
load_image
eend $?
fi
}
stop() {
[[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ]] && return 0
if ! yesno $RC_REBOOT; then
einfo "Not rebooting, so disabling"
kexec -u
return 0
fi
if [[ -f /nokexec ]]; then
einfo "Not using kexec during reboot"
rm -f /nokexec
kexec -u
return 0
fi
ebegin "Configuring kexec"
load_image
eend $?
}

View File

@ -0,0 +1,144 @@
#!/sbin/runscript
# Copyright 1999-2013 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-2.0.4,v 1.3 2013/04/01 13:17:49 jlec Exp $
depend() {
need localmount
}
image_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${KNAME:-bzImage}" vmlinuz \
bzImage-${kver} vmlinuz-${kver} \
kernel-genkernel-${karch}-${kver} \
kernel-${kver} kernel-${karch}; do
if [ -e "${BOOTPART}/${x}" ]; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
initrd_path() {
local x= kver=$(uname -r) karch=$(uname -m)
BOOTPART="${BOOTPART:-/boot}"
for x in "${INITRD:-initrd}" \
initrd.img-${kver} initrd-${kver}.img \
initrd-${kver} initramfs-${kver}.img \
initramfs-genkernel-${karch}-${kver} ; do
if [ -e "${BOOTPART}/${x}" ]; then
echo "${BOOTPART}/${x}"
return 0
fi
done
return 1
}
mount_boot(){
local ret
[ -n ${DONT_MOUNT_BOOT} ] && return 1
grep -q " ${BOOTPART:-/boot} " /proc/mounts && return 1
BOOTPART="${BOOTPART:-/boot}"
ebegin "Mounting ${BOOTPART}"
mount "${BOOTPART}"; ret=$?
eend ${ret}
return ${ret}
}
load_image() {
local ret
if [ "${KNAME}" = "-" ]; then
ebegin "Disabling kexec"
kexec -u; ret=$?
eend ${ret}
return ${ret}
fi
BOOTPART="${BOOTPART:-/boot}"
local img= initrd="$(initrd_path)" mounted=false initrdopt=
if ! img="$(image_path)"; then
if mount_boot; then
if img="$(image_path)"; then
mounted=true
initrd="$(initrd_path)"
else
eerror "No kernel image found in ${BOOTPART}!"
umount "${BOOTPART}"
return 1
fi
else
eerror "No kernel image found in ${BOOTPART}!"
return 1
fi
fi
if [ -n "${INITRD}" ] && \
! [ "${INITRD}" = "${initrd}" ]; then
eerror "Requested initrd: ${INITRD}"
eerror "could not be found"
return 1
fi
[ -n "${ROOTPART}" ] || \
ROOTPART="$(readlink -f "$(sed -n '/^\/[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /proc/mounts)")"
[ -n "${KPARAM}" ] || KEXEC_OPT_ARGS="${KEXEC_OPT_ARGS} --reuse-cmdline"
[ -n "${initrd}" ] && [ -e "${initrd}" ] && initrdopt="--initrd=${initrd}"
local msg=
[ -n ${initrd} ] && \
msg="with ${initrd}"
einfo "Using kernel image ${img} ${msg} for kexec"
ebegin "Setting kexec with ${KEXEC_OPT_ARGS} -l ${img} root=${ROOTPART} ${KPARAM} ${initrdopt}"
kexec ${KEXEC_OPT_ARGS} -l "${img}" --append="root=${ROOTPART} ${KPARAM}" ${initrdopt}
local res=$?
${mounted} && umount "${BOOTPART}"
eend ${res}
return ${res}
}
start() {
if [ "${LOAD_DURING_SHUTDOWN:-yes}" = "yes" ]; then
if ! image_path > /dev/null; then
ewarn "Cannot find kernel image!"
ewarn "Please make sure a valid kernel image is present before reboot."
return 0
fi
else
ebegin "Configuring kexec"
load_image
eend $?
fi
}
stop() {
[ "${LOAD_DURING_SHUTDOWN:-yes}" != "yes" ] && return 0
if ! yesno $RC_REBOOT; then
einfo "Not rebooting, so disabling"
kexec -u
return 0
fi
if [ -f /nokexec ]; then
einfo "Not using kexec during reboot"
rm -f /nokexec
kexec -u
return 0
fi
ebegin "Configuring kexec"
load_image
eend $?
}

View File

@ -0,0 +1,101 @@
#!/sbin/runscript
# Copyright 1999-2011 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-ng,v 1.1 2011/03/27 08:31:50 jlec 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
if [ "`/sbin/runlevel|/bin/cut -c 3`" = "6" ] && [ -f /nokexec ]; then
einfo "Not using kexec during reboot"
rm -f /nokexec
kexec -u
return 0
fi
load_image
eend $?
}

View File

@ -0,0 +1,50 @@
# Copyright 1999-2011 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.2-r1.ebuild,v 1.4 2011/09/21 15:28:08 chainsaw Exp $
EAPI=2
inherit eutils flag-o-matic
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
# gcc 4.6 compatibility (bug #361069)
sed -i 's/--no-undefined/-Wl,--no-undefined/g' purgatory/Makefile || die "sed failed"
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf $(use_with lzma) $(use_with xen) $(use_with zlib)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
doman kexec/kexec.8 || die "doman failed"
dodoc News AUTHORS TODO || die "dodoc failed"
newinitd "${FILESDIR}"/kexec.init-ng kexec || die
newconfd "${FILESDIR}"/kexec.conf kexec || die
}

View File

@ -0,0 +1,48 @@
# Copyright 1999-2012 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.3-r1.ebuild,v 1.1 2012/03/18 07:46:02 jlec Exp $
EAPI=4
inherit eutils flag-o-matic linux-info
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="booke lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
CONFIG_CHECK="~KEXEC"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf $(use_with lzma) $(use_with xen) $(use_with zlib) $(use_with booke)
}
src_install() {
default
dodoc "${FILESDIR}"/README.Gentoo
newinitd "${FILESDIR}"/kexec.init-${PV} kexec
newconfd "${FILESDIR}"/kexec.conf-${PV} kexec
}

View File

@ -0,0 +1,44 @@
# Copyright 1999-2012 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.3.ebuild,v 1.1 2012/02/16 22:13:00 jlec Exp $
EAPI=4
inherit eutils flag-o-matic
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="booke lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${PN}-2.0.0-respect-LDFLAGS.patch"
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf $(use_with lzma) $(use_with xen) $(use_with zlib) $(use_with booke)
}
src_install() {
default
newinitd "${FILESDIR}"/kexec.init-ng kexec
newconfd "${FILESDIR}"/kexec.conf kexec
}

View File

@ -0,0 +1,54 @@
# Copyright 1999-2013 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.4-r1.ebuild,v 1.1 2013/03/30 13:01:49 jlec Exp $
EAPI=5
inherit eutils flag-o-matic linux-info
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="booke lzma xen zlib"
DEPEND="
lzma? ( app-arch/xz-utils )
zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
CONFIG_CHECK="~KEXEC"
src_prepare() {
epatch \
"${FILESDIR}"/${PN}-2.0.0-respect-LDFLAGS.patch \
"${FILESDIR}"/${P}-disable-kexec-test.patch
# to disable the -fPIE -pie in the hardened compiler
if gcc-specs-pie ; then
filter-flags -fPIE
append-ldflags -nopie
fi
}
src_configure() {
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
export ASFLAGS="${CCASFLAGS}"
econf \
$(use_with booke) \
$(use_with lzma) \
$(use_with xen) \
$(use_with zlib)
}
src_install() {
default
dodoc "${FILESDIR}"/README.Gentoo
newinitd "${FILESDIR}"/kexec.init-${PV} kexec
newconfd "${FILESDIR}"/kexec.conf-${PV} kexec
}

View File

@ -0,0 +1,39 @@
# Copyright 1999-2011 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.7 2011/09/21 08:31:54 mgorny Exp $
EAPI=2
EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
inherit git-2 autotools
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="http://kernel.org/pub/linux/utils/kernel/kexec/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="xen zlib"
DEPEND="zlib? ( sys-libs/zlib )"
RDEPEND="${DEPEND}"
src_unpack() {
git-2_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
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>kernel-misc</herd>
<maintainer>
<email>jlec@gentoo.org</email>
</maintainer>
<use>
<flag name="lzma">Enables support for LZMA compressed kernel images</flag>
<flag name="booke">Include support for Book-E memory management</flag>
<flag name="xen">Enable extended xen support</flag>
</use>
</pkgmetadata>