Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/kexec-tools/
Date: Tue, 05 Mar 2019 09:28:58
Message-Id: 1551778085.ec62157570dd20e6675d610a79d146ba807b3029.polynomial-c@gentoo
1 commit: ec62157570dd20e6675d610a79d146ba807b3029
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 5 09:28:05 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 5 09:28:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec621575
7
8 sys-apps/kexec-tools: Bump to version 2.0.19
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 sys-apps/kexec-tools/Manifest | 1 +
14 sys-apps/kexec-tools/kexec-tools-2.0.19.ebuild | 85 ++++++++++++++++++++++++++
15 2 files changed, 86 insertions(+)
16
17 diff --git a/sys-apps/kexec-tools/Manifest b/sys-apps/kexec-tools/Manifest
18 index 25ee9fca195..609f6985c68 100644
19 --- a/sys-apps/kexec-tools/Manifest
20 +++ b/sys-apps/kexec-tools/Manifest
21 @@ -1,2 +1,3 @@
22 DIST kexec-tools-2.0.17.tar.xz 290612 BLAKE2B 57ec5b5ed33a5c5bbe433099d6e80663717c8a086bdb8b95f4a1d81fd7e546619c0064698454dc79f489313f98696ee6dee4cafbc8b1b93db5c7909cdf7a6234 SHA512 e0f254ca2b26fa02cb61ba9a0735423b26bac2693fbd920eaf7cc2822c298de958bd65f7c37947ca1f6811a3752a58f7cf8aa903494f0109ea76b7159a037fa6
23 DIST kexec-tools-2.0.18.tar.xz 289816 BLAKE2B b894a5c563810b0a537a3837e902a8d1a3b903c2028393047d6e28d125582f82a4f7ad7c192857f7f58c2fb045deb39e6caf115434c8ba826c705d1363c6b683 SHA512 a4142e703a752eb270da29f02ea4fb213f3f4f965e73bb483c388a378821094317a4c63406ab0afe118f79eb168ff63b9d2d9530551c984592165430e269d697
24 +DIST kexec-tools-2.0.19.tar.xz 292348 BLAKE2B c9827d77c82f11351086f4cdf4bacd076a03c744969952706ffd6f17395f28fba2437dac976e12e8e5648ca09fac6ff241daf9b8d3fee215519ded9f18441ff0 SHA512 68b15fe46f9633d55c5ae51a6e7114b0c66bd8f4fe81197f581121939a7b21990a2eea89a0961ac6eb7af364ba0d3981ea504df81c7b4cc0b288ca6ac896730f
25
26 diff --git a/sys-apps/kexec-tools/kexec-tools-2.0.19.ebuild b/sys-apps/kexec-tools/kexec-tools-2.0.19.ebuild
27 new file mode 100644
28 index 00000000000..b2fcd90aca6
29 --- /dev/null
30 +++ b/sys-apps/kexec-tools/kexec-tools-2.0.19.ebuild
31 @@ -0,0 +1,85 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit flag-o-matic libtool linux-info systemd
38 +
39 +if [[ ${PV} == "9999" ]] ; then
40 + inherit git-r3 autotools
41 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
42 +else
43 + SRC_URI="mirror://kernel/linux/utils/kernel/kexec/${P}.tar.xz"
44 + KEYWORDS="~amd64 ~arm64 ~x86"
45 +fi
46 +
47 +DESCRIPTION="Load another kernel from the currently executing Linux kernel"
48 +HOMEPAGE="https://kernel.org/pub/linux/utils/kernel/kexec/"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +IUSE="booke lzma xen zlib"
53 +
54 +REQUIRED_USE="lzma? ( zlib )"
55 +
56 +DEPEND="
57 + lzma? ( app-arch/xz-utils )
58 + zlib? ( sys-libs/zlib )"
59 +RDEPEND="${DEPEND}"
60 +
61 +CONFIG_CHECK="~KEXEC"
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
65 + "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
66 +)
67 +
68 +pkg_setup() {
69 + # GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC)
70 + export ASFLAGS="${CCASFLAGS}"
71 +}
72 +
73 +src_prepare() {
74 + default
75 + if [[ ${PV} == "9999" ]] ; then
76 + eautoreconf
77 + else
78 + elibtoolize
79 + fi
80 + filter-flags '-mindirect-branch=thunk*'
81 +}
82 +
83 +src_configure() {
84 + local myeconfargs=(
85 + $(use_with booke)
86 + $(use_with lzma)
87 + $(use_with xen)
88 + $(use_with zlib)
89 + )
90 + econf "${myeconfargs[@]}"
91 +}
92 +
93 +src_install() {
94 + default
95 +
96 + dodoc "${FILESDIR}"/README.Gentoo
97 +
98 + newinitd "${FILESDIR}"/kexec.init-2.0.13-r1 kexec
99 + newconfd "${FILESDIR}"/kexec.conf-2.0.4 kexec
100 +
101 + insinto /etc
102 + doins "${FILESDIR}"/kexec.conf
103 +
104 + insinto /etc/kernel/postinst.d
105 + doins "${FILESDIR}"/90_kexec
106 +
107 + systemd_dounit "${FILESDIR}"/kexec.service
108 +}
109 +
110 +pkg_postinst() {
111 + if systemd_is_booted || has_version sys-apps/systemd; then
112 + elog "For systemd support the new config file is"
113 + elog " /etc/kexec.conf"
114 + elog "Please adopt it to your needs as there is no autoconfig anymore"
115 + fi
116 +}