1 |
commit: e1b5c04466dbe144b71f74aee6d93fa752d781d4 |
2 |
Author: Peter Levine <plevine457 <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Oct 7 23:54:19 2021 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 8 11:12:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1b5c044 |
7 |
|
8 |
sys-boot/os-prober: bump live ebuild |
9 |
|
10 |
Bump 9999 ebuild for live testing upstream. |
11 |
|
12 |
Package-Manager: Portage-3.0.26, Repoman-3.0.3 |
13 |
Signed-off-by: Peter Levine <plevine457 <AT> gmail.com> |
14 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
15 |
|
16 |
sys-boot/os-prober/os-prober-9999.ebuild | 100 +++++++++++++++++++++++++++++++ |
17 |
1 file changed, 100 insertions(+) |
18 |
|
19 |
diff --git a/sys-boot/os-prober/os-prober-9999.ebuild b/sys-boot/os-prober/os-prober-9999.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..27278da5f56 |
22 |
--- /dev/null |
23 |
+++ b/sys-boot/os-prober/os-prober-9999.ebuild |
24 |
@@ -0,0 +1,100 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+inherit readme.gentoo-r1 toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="Utility to detect other OSs on a set of drives" |
32 |
+HOMEPAGE="https://salsa.debian.org/installer-team/os-prober" |
33 |
+ |
34 |
+if [[ ${PV} == 9999 ]]; then |
35 |
+ inherit git-r3 |
36 |
+ EGIT_REPO_URI="https://salsa.debian.org/installer-team/${PN}.git" |
37 |
+else |
38 |
+ SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${PN}_${PV}.tar.xz" |
39 |
+ KEYWORDS="~amd64 ~x86" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="GPL-3" |
43 |
+SLOT="0" |
44 |
+ |
45 |
+# grub-mount needed per bug #607518 |
46 |
+RDEPEND="sys-boot/grub:2[mount]" |
47 |
+ |
48 |
+# bug 594250 |
49 |
+QA_MULTILIB_PATHS="usr/lib/os-prober/.*" |
50 |
+ |
51 |
+PATCHES=( |
52 |
+ "${FILESDIR}"/${PN}-1.76-exherbo.patch |
53 |
+ "${FILESDIR}"/${PN}-1.78-btrfsfix.patch |
54 |
+) |
55 |
+ |
56 |
+DOC_CONTENTS=" |
57 |
+ If you intend for os-prober to detect versions of Windows installed on |
58 |
+ NTFS-formatted partitions, your system must be capable of reading the |
59 |
+ NTFS filesystem. One way to do this is by installing sys-fs/ntfs3g. |
60 |
+ Also, in a chroot environment, it is necessary to bind mount /run/udev |
61 |
+ (see https://wiki.gentoo.org/wiki/GRUB2#os-prober_and_UEFI_in_chroot). |
62 |
+ |
63 |
+ NOTE: Since sys-boot/grub-2.06-rc1, grub-mkconfig disables os-prober by default. |
64 |
+ To enable it, add GRUB_DISABLE_OS_PROBER=false to /etc/default/grub. |
65 |
+" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ # use default GNU rules |
70 |
+ rm Makefile || die 'rm Makefile failed' |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ tc-export CC |
75 |
+ emake newns |
76 |
+} |
77 |
+ |
78 |
+src_install() { |
79 |
+ dobin os-prober linux-boot-prober |
80 |
+ |
81 |
+ # Note: as no shared libraries are installed, /usr/lib is correct |
82 |
+ exeinto /usr/lib/os-prober |
83 |
+ doexe newns |
84 |
+ |
85 |
+ insinto /usr/share/os-prober |
86 |
+ doins common.sh |
87 |
+ |
88 |
+ keepdir /var/lib/os-prober |
89 |
+ |
90 |
+ local debarch=${ARCH%-*} dir |
91 |
+ |
92 |
+ case ${debarch} in |
93 |
+ amd64) debarch=x86 ;; |
94 |
+ ppc|ppc64) debarch=powerpc ;; |
95 |
+ esac |
96 |
+ |
97 |
+ for dir in os-probes{,/mounted,/init} linux-boot-probes{,/mounted}; do |
98 |
+ exeinto /usr/lib/${dir} |
99 |
+ doexe ${dir}/common/* |
100 |
+ if [[ -d ${dir}/${debarch} ]]; then |
101 |
+ for exe in ${dir}/${debarch}/*; do |
102 |
+ [[ ! -d "${exe}" ]] && doexe "${exe}" |
103 |
+ done |
104 |
+ fi |
105 |
+ if [[ -d ${dir}/${debarch}/efi ]]; then |
106 |
+ exeinto /usr/lib/${dir}/efi |
107 |
+ doexe ${dir}/${debarch}/efi/* |
108 |
+ fi |
109 |
+ done |
110 |
+ |
111 |
+ if use amd64 || use x86; then |
112 |
+ exeinto /usr/lib/os-probes/mounted |
113 |
+ doexe os-probes/mounted/powerpc/20macosx |
114 |
+ fi |
115 |
+ |
116 |
+ einstalldocs |
117 |
+ dodoc debian/changelog |
118 |
+ |
119 |
+ readme.gentoo_create_doc |
120 |
+} |
121 |
+ |
122 |
+pkg_postinst() { |
123 |
+ readme.gentoo_print_elog |
124 |
+} |