1 |
commit: 794684f82667e5352cffc3055f03c058c0f6823f |
2 |
Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me> |
3 |
AuthorDate: Fri Jan 11 17:41:01 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 21 14:22:20 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=794684f8 |
7 |
|
8 |
sys-kernel/dracut: update live ebuild |
9 |
|
10 |
- EAPI-7 bump |
11 |
- Update optional packages: syslog-ng support is actually not implemented, |
12 |
networking support is provided by NetworkManager by default |
13 |
- Remove "debug" USE-flag |
14 |
- Replace SRC_URI with github mirror |
15 |
|
16 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
17 |
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me> |
18 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
19 |
|
20 |
sys-kernel/dracut/dracut-9999.ebuild | 36 +++++++++++++++++++++--------------- |
21 |
1 file changed, 21 insertions(+), 15 deletions(-) |
22 |
|
23 |
diff --git a/sys-kernel/dracut/dracut-9999.ebuild b/sys-kernel/dracut/dracut-9999.ebuild |
24 |
index a686d0637f2..7ccd4d0b0e5 100644 |
25 |
--- a/sys-kernel/dracut/dracut-9999.ebuild |
26 |
+++ b/sys-kernel/dracut/dracut-9999.ebuild |
27 |
@@ -1,7 +1,7 @@ |
28 |
-# Copyright 1999-2018 Gentoo Authors |
29 |
+# Copyright 1999-2019 Gentoo Authors |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
|
32 |
-EAPI=6 |
33 |
+EAPI=7 |
34 |
|
35 |
inherit bash-completion-r1 eutils linux-info systemd toolchain-funcs |
36 |
|
37 |
@@ -10,8 +10,8 @@ if [[ ${PV} == 9999 ]] ; then |
38 |
EGIT_REPO_URI="https://github.com/dracutdevs/dracut" |
39 |
else |
40 |
[[ "${PV}" = *_rc* ]] || \ |
41 |
- KEYWORDS="~alpha amd64 ~arm ia64 ~mips ~ppc ~ppc64 sparc x86" |
42 |
- SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.xz" |
43 |
+ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
44 |
+ SRC_URI="https://github.com/dracutdevs/dracut/archive/${PV}.tar.gz -> ${P}.tar.gz" |
45 |
fi |
46 |
|
47 |
DESCRIPTION="Generic initramfs generation tool" |
48 |
@@ -19,37 +19,38 @@ HOMEPAGE="https://dracut.wiki.kernel.org" |
49 |
|
50 |
LICENSE="GPL-2" |
51 |
SLOT="0" |
52 |
-IUSE="debug selinux" |
53 |
+IUSE="selinux" |
54 |
|
55 |
# Tests need root privileges, bug #298014 |
56 |
RESTRICT="test" |
57 |
|
58 |
-COMMON_DEPEND=">=sys-apps/kmod-23[tools] |
59 |
- virtual/pkgconfig |
60 |
- virtual/udev |
61 |
- " |
62 |
-RDEPEND="${COMMON_DEPEND} |
63 |
+RDEPEND=" |
64 |
app-arch/cpio |
65 |
>=app-shells/bash-4.0:0 |
66 |
sys-apps/coreutils[xattr(-)] |
67 |
+ >=sys-apps/kmod-23[tools] |
68 |
|| ( |
69 |
>=sys-apps/sysvinit-2.87-r3 |
70 |
sys-apps/systemd[sysv-utils] |
71 |
) |
72 |
>=sys-apps/util-linux-2.21 |
73 |
+ virtual/pkgconfig |
74 |
+ virtual/udev |
75 |
|
76 |
- debug? ( dev-util/strace ) |
77 |
selinux? ( |
78 |
sec-policy/selinux-dracut |
79 |
sys-libs/libselinux |
80 |
sys-libs/libsepol |
81 |
) |
82 |
" |
83 |
-DEPEND="${COMMON_DEPEND} |
84 |
+DEPEND=">=sys-apps/kmod-23" |
85 |
+ |
86 |
+BDEPEND=" |
87 |
app-text/asciidoc |
88 |
app-text/docbook-xml-dtd:4.5 |
89 |
>=app-text/docbook-xsl-stylesheets-1.75.2 |
90 |
>=dev-libs/libxslt-1.1.26 |
91 |
+ virtual/pkgconfig |
92 |
" |
93 |
|
94 |
DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules |
95 |
@@ -72,6 +73,11 @@ src_configure() { |
96 |
|
97 |
echo ./configure "${myconf[@]}" |
98 |
./configure "${myconf[@]}" || die |
99 |
+ |
100 |
+ if [[ ${PV} != 9999 ]] ; then |
101 |
+ # Source tarball from github doesn't include this file |
102 |
+ echo "DRACUT_VERSION=${PV}" > dracut-version.sh || die |
103 |
+ fi |
104 |
} |
105 |
|
106 |
src_install() { |
107 |
@@ -126,7 +132,8 @@ pkg_postinst() { |
108 |
elog "To get additional features, a number of optional runtime" |
109 |
elog "dependencies may be installed:" |
110 |
elog "" |
111 |
- optfeature "Networking support" net-misc/curl "net-misc/dhcp[client]" \ |
112 |
+ optfeature "Networking support" net-misc/networkmanager |
113 |
+ optfeature "Legacy networking support" net-misc/curl "net-misc/dhcp[client]" \ |
114 |
sys-apps/iproute2 "net-misc/iputils[arping]" |
115 |
optfeature \ |
116 |
"Measure performance of the boot process for later visualisation" \ |
117 |
@@ -153,6 +160,5 @@ pkg_postinst() { |
118 |
optfeature \ |
119 |
"Install ssh and scp along with config files and specified keys" \ |
120 |
net-misc/openssh |
121 |
- optfeature "Enable logging with syslog-ng or rsyslog" app-admin/syslog-ng \ |
122 |
- app-admin/rsyslog |
123 |
+ optfeature "Enable logging with rsyslog" app-admin/rsyslog |
124 |
} |