summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2016-03-24 15:21:44 -0400
committerMike Frysinger <vapier@gentoo.org>2016-03-24 17:39:33 -0400
commit2ad6174bad17a8a426b977d82017d399111ab963 (patch)
treec414a0e667f1a65ecece4978447a739534851347 /sys-apps/kexec-tools/kexec-tools-9999.ebuild
parentapp-text/asciidoc: move to readme.gentoo-r1 eclass (diff)
downloadgentoo-2ad6174bad17a8a426b977d82017d399111ab963.tar.gz
gentoo-2ad6174bad17a8a426b977d82017d399111ab963.tar.bz2
gentoo-2ad6174bad17a8a426b977d82017d399111ab963.zip
sys-apps/kexec-tools: merge git & release versions
Diffstat (limited to 'sys-apps/kexec-tools/kexec-tools-9999.ebuild')
-rw-r--r--sys-apps/kexec-tools/kexec-tools-9999.ebuild23
1 files changed, 13 insertions, 10 deletions
diff --git a/sys-apps/kexec-tools/kexec-tools-9999.ebuild b/sys-apps/kexec-tools/kexec-tools-9999.ebuild
index 008925c94fd..8e66b4e631b 100644
--- a/sys-apps/kexec-tools/kexec-tools-9999.ebuild
+++ b/sys-apps/kexec-tools/kexec-tools-9999.ebuild
@@ -1,21 +1,25 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI="5"
-AUTOTOOLS_AUTORECONF=true
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
+ AUTOTOOLS_AUTORECONF=true
+else
+ SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
-inherit autotools-utils linux-info systemd git-r3
+inherit autotools-utils linux-info systemd
DESCRIPTION="Load another kernel from the currently executing Linux kernel"
HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
-SRC_URI=""
-EGIT_REPO_URI="git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS=""
IUSE="booke lzma xen zlib"
REQUIRED_USE="lzma? ( zlib )"
@@ -30,7 +34,6 @@ CONFIG_CHECK="~KEXEC"
PATCHES=(
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
- "${FILESDIR}"/${PN}-2.0.9-hardened.patch
)
pkg_setup() {
@@ -53,8 +56,8 @@ src_install() {
dodoc "${FILESDIR}"/README.Gentoo
- newinitd "${FILESDIR}"/kexec.init-${PV} kexec
- newconfd "${FILESDIR}"/kexec.conf-${PV} kexec
+ newinitd "${FILESDIR}"/kexec.init-2.0.4-r3 kexec
+ newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
insinto /etc
doins "${FILESDIR}"/kexec.conf