1 |
commit: a2d227d92566084882bc56dce4556f2f8e258661 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 2 01:49:48 2021 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 2 01:50:11 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2d227d9 |
7 |
|
8 |
sys-kernel/dracut: 053 bump |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
sys-kernel/dracut/Manifest | 1 + |
14 |
sys-kernel/dracut/dracut-053.ebuild | 158 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 159 insertions(+) |
16 |
|
17 |
diff --git a/sys-kernel/dracut/Manifest b/sys-kernel/dracut/Manifest |
18 |
index 57a8bb9eba7..1f7643564be 100644 |
19 |
--- a/sys-kernel/dracut/Manifest |
20 |
+++ b/sys-kernel/dracut/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST dracut-050.tar.xz 333592 BLAKE2B cb0bfa5a8e7547260b8a80a3606eb284182c062926269c85b09e07d26ad177df0eeaa64b17005bff9290611f1c83fc8cd8e2216cfe14b5e66ec7f659d4c2fa7b SHA512 eba046cf1c8013369a398e585e0bff233daa8595d469ce9acc8bbc6a32d55c6a5429d4219db19abbf6001104be05b357f0961f9e66b7f926039a5d3ee7c2b850 |
23 |
DIST dracut-051.tar.xz 346500 BLAKE2B 38129b6b713b3338bbb2554fffd611f80216969eebac9fca7fb72df2db2036d4fbe66ebd54e646e562e24801e61064e54b62f066bab9e77ca88814100ebdd8ff SHA512 f3533430e479bc91c538e0a198ca97450ec449a7d661d876ecd0ad3e417e22f7e4abf0a384fc676a63a4d3479f25d717c8acdcd1bdec7d0a5714298c5c4ea6b8 |
24 |
+DIST dracut-053.tar.xz 354668 BLAKE2B d20d0f1675e18cf44615a98255c8b1a73f23e9c665a771a1fe99716d3bf0b6082961ab20fe058bf31c106c4f521d9e8708e2ae98cff00f613197bbf9dd3abda3 SHA512 4736f84442bda208a38d3285ffeb8b845f06e52e3bf60d2aaea121240cf695e1369208c2d2cee1137a6c1d3f8f7794385675006beaf5cd86ade259d5f42d039a |
25 |
|
26 |
diff --git a/sys-kernel/dracut/dracut-053.ebuild b/sys-kernel/dracut/dracut-053.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..0c1239e5c4b |
29 |
--- /dev/null |
30 |
+++ b/sys-kernel/dracut/dracut-053.ebuild |
31 |
@@ -0,0 +1,158 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+inherit bash-completion-r1 linux-info optfeature systemd toolchain-funcs |
38 |
+ |
39 |
+if [[ ${PV} == 9999 ]] ; then |
40 |
+ inherit git-r3 |
41 |
+ EGIT_REPO_URI="https://github.com/dracutdevs/dracut" |
42 |
+else |
43 |
+ [[ "${PV}" = *_rc* ]] || \ |
44 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
45 |
+ SRC_URI="https://www.kernel.org/pub/linux/utils/boot/${PN}/${P}.tar.xz" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="Generic initramfs generation tool" |
49 |
+HOMEPAGE="https://dracut.wiki.kernel.org" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+IUSE="selinux" |
54 |
+ |
55 |
+# Tests need root privileges, bug #298014 |
56 |
+RESTRICT="test" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ app-arch/cpio |
60 |
+ >=app-shells/bash-4.0:0 |
61 |
+ sys-apps/coreutils[xattr(-)] |
62 |
+ >=sys-apps/kmod-23[tools] |
63 |
+ || ( |
64 |
+ >=sys-apps/sysvinit-2.87-r3 |
65 |
+ sys-apps/openrc[sysv-utils(-),selinux?] |
66 |
+ sys-apps/systemd[sysv-utils] |
67 |
+ ) |
68 |
+ >=sys-apps/util-linux-2.21 |
69 |
+ virtual/pkgconfig |
70 |
+ virtual/udev |
71 |
+ |
72 |
+ elibc_musl? ( sys-libs/fts-standalone ) |
73 |
+ selinux? ( |
74 |
+ sec-policy/selinux-dracut |
75 |
+ sys-libs/libselinux |
76 |
+ sys-libs/libsepol |
77 |
+ ) |
78 |
+" |
79 |
+DEPEND=" |
80 |
+ >=sys-apps/kmod-23 |
81 |
+ elibc_musl? ( sys-libs/fts-standalone ) |
82 |
+" |
83 |
+ |
84 |
+BDEPEND=" |
85 |
+ app-text/asciidoc |
86 |
+ app-text/docbook-xml-dtd:4.5 |
87 |
+ >=app-text/docbook-xsl-stylesheets-1.75.2 |
88 |
+ >=dev-libs/libxslt-1.1.26 |
89 |
+ virtual/pkgconfig |
90 |
+" |
91 |
+ |
92 |
+DOCS=( AUTHORS README.md README.generic README.kernel ) |
93 |
+ |
94 |
+QA_MULTILIB_PATHS="usr/lib/dracut/.*" |
95 |
+ |
96 |
+PATCHES=( |
97 |
+ "${FILESDIR}"/gentoo-ldconfig-paths.patch |
98 |
+) |
99 |
+ |
100 |
+src_configure() { |
101 |
+ local myconf=( |
102 |
+ --prefix="${EPREFIX}/usr" |
103 |
+ --sysconfdir="${EPREFIX}/etc" |
104 |
+ --bashcompletiondir="$(get_bashcompdir)" |
105 |
+ --systemdsystemunitdir="$(systemd_get_systemunitdir)" |
106 |
+ ) |
107 |
+ |
108 |
+ tc-export CC PKG_CONFIG |
109 |
+ |
110 |
+ echo ./configure "${myconf[@]}" |
111 |
+ ./configure "${myconf[@]}" || die |
112 |
+ |
113 |
+ if [[ ${PV} != 9999 && ! -f dracut-version.sh ]] ; then |
114 |
+ # Source tarball from github doesn't include this file |
115 |
+ echo "DRACUT_VERSION=${PV}" > dracut-version.sh || die |
116 |
+ fi |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ default |
121 |
+ |
122 |
+ docinto html |
123 |
+ dodoc dracut.html |
124 |
+} |
125 |
+ |
126 |
+pkg_postinst() { |
127 |
+ if linux-info_get_any_version && linux_config_exists; then |
128 |
+ ewarn "" |
129 |
+ ewarn "If the following test report contains a missing kernel" |
130 |
+ ewarn "configuration option, you should reconfigure and rebuild your" |
131 |
+ ewarn "kernel before booting image generated with this Dracut version." |
132 |
+ ewarn "" |
133 |
+ |
134 |
+ local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" |
135 |
+ |
136 |
+ # Kernel configuration options descriptions: |
137 |
+ local ERROR_DEVTMPFS='CONFIG_DEVTMPFS: "Maintain a devtmpfs filesystem to mount at /dev" ' |
138 |
+ ERROR_DEVTMPFS+='is missing and REQUIRED' |
139 |
+ local ERROR_BLK_DEV_INITRD='CONFIG_BLK_DEV_INITRD: "Initial RAM filesystem and RAM disk ' |
140 |
+ ERROR_BLK_DEV_INITRD+='(initramfs/initrd) support" is missing and REQUIRED' |
141 |
+ |
142 |
+ check_extra_config |
143 |
+ echo |
144 |
+ else |
145 |
+ ewarn "" |
146 |
+ ewarn "Your kernel configuration couldn't be checked." |
147 |
+ ewarn "Please check manually if following options are enabled:" |
148 |
+ ewarn "" |
149 |
+ ewarn " CONFIG_BLK_DEV_INITRD" |
150 |
+ ewarn " CONFIG_DEVTMPFS" |
151 |
+ ewarn "" |
152 |
+ fi |
153 |
+ |
154 |
+ elog "To get additional features, a number of optional runtime" |
155 |
+ elog "dependencies may be installed:" |
156 |
+ elog "" |
157 |
+ optfeature "Networking support" net-misc/networkmanager |
158 |
+ optfeature "Legacy networking support" net-misc/curl "net-misc/dhcp[client]" \ |
159 |
+ sys-apps/iproute2 "net-misc/iputils[arping]" |
160 |
+ optfeature \ |
161 |
+ "Measure performance of the boot process for later visualisation" \ |
162 |
+ app-benchmarks/bootchart2 app-admin/killproc sys-process/acct |
163 |
+ optfeature "Scan for Btrfs on block devices" sys-fs/btrfs-progs |
164 |
+ optfeature "Load kernel modules and drop this privilege for real init" \ |
165 |
+ sys-libs/libcap |
166 |
+ optfeature "Support CIFS" net-fs/cifs-utils |
167 |
+ optfeature "Decrypt devices encrypted with cryptsetup/LUKS" \ |
168 |
+ "sys-fs/cryptsetup[-static-libs]" |
169 |
+ optfeature "Support for GPG-encrypted keys for crypt module" \ |
170 |
+ app-crypt/gnupg |
171 |
+ optfeature \ |
172 |
+ "Allows use of dash instead of default bash (on your own risk)" \ |
173 |
+ app-shells/dash |
174 |
+ optfeature "Support iSCSI" sys-block/open-iscsi |
175 |
+ optfeature "Support Logical Volume Manager" sys-fs/lvm2 |
176 |
+ optfeature "Support MD devices, also known as software RAID devices" \ |
177 |
+ sys-fs/mdadm |
178 |
+ optfeature "Support Device Mapper multipathing" sys-fs/multipath-tools |
179 |
+ optfeature "Plymouth boot splash" '>=sys-boot/plymouth-0.8.5-r5' |
180 |
+ optfeature "Support network block devices" sys-block/nbd |
181 |
+ optfeature "Support NFS" net-fs/nfs-utils net-nds/rpcbind |
182 |
+ optfeature \ |
183 |
+ "Install ssh and scp along with config files and specified keys" \ |
184 |
+ net-misc/openssh |
185 |
+ optfeature "Enable logging with rsyslog" app-admin/rsyslog |
186 |
+ optfeature \ |
187 |
+ "Enable rngd service to help generating entropy early during boot" \ |
188 |
+ sys-apps/rng-tools |
189 |
+} |