1 |
commit: 823e81cf3cca05da337a94ce86a6f583f2d1b37a |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 4 06:26:11 2019 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 4 06:26:11 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=823e81cf |
7 |
|
8 |
sys-boot/syslinux: restore syslinux-4 |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
11 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
12 |
|
13 |
sys-boot/syslinux/Manifest | 1 + |
14 |
sys-boot/syslinux/syslinux-4.07.ebuild | 70 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 71 insertions(+) |
16 |
|
17 |
diff --git a/sys-boot/syslinux/Manifest b/sys-boot/syslinux/Manifest |
18 |
index b9ab5dc8f24..f247daa7748 100644 |
19 |
--- a/sys-boot/syslinux/Manifest |
20 |
+++ b/sys-boot/syslinux/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
+DIST syslinux-4.07.tar.bz2 5761877 BLAKE2B 2fe28f268f896601a045564b1e3dde618d57ebf4098d007f7e45119ad019fa88221658608f88e55d4d09cd297140427cdeaf03a40a2341d732064a0630fe92b5 SHA512 8efbd14803ec74c5ee699a754b4727e4b975c08afd4dbb39f4b7ccdb90743e4459cd4609c6f1065c7b7efaa26c9d465806254891795d363758f35a2fe5704ae5 |
23 |
DIST syslinux-5.10.tar.xz 5315660 BLAKE2B 19d6861bb6220fe57e12d8d6118d37b197c3c771e4d2e7a51ce7db39219e3c837e6d1543d7a3927820f3a34da34ce849f9badbaf9cd83cb5ee24fd5ed7b705f2 SHA512 56422e14b4aa53ca1a5811da0582dbbb349aa52b9e78868bbedc24c67ef2420c4d0ac63fd68c7f0adc2c22606196276265d503b5b6f9d3d796d9ce42845bbdb5 |
24 |
DIST syslinux-6.03.tar.xz 6855224 BLAKE2B 9caccf8bed4e3c3e87393c9dc8f3b3d267c14469bbf8135a648ea41d8a43a4aedbf2b007c6b9a6853de8866152f5bc33e5ea85fca1db86c5f2fac88d97189b0f SHA512 dd2b2916962b9e93bc1e714182e3ca2a727a229b8afabe913050bcfdd43ee2af51ee3acf79121d8c20caf434583efaa7f3196871e0e07c04d82191323a50fe31 |
25 |
DIST syslinux-6.04-pre1.tar.xz 5283272 BLAKE2B 800e5977ed13b26a1756c33d8625e850631b642e26a86e3328196ddd998596693c3a26db0ada4c0ba78a4ba692a1cc01886b6eb693d877ddafcfb325ecdeb639 SHA512 7927dd39be8e2dcf4138a6fea33def67d19d938379d694f15b48fdd2f5924c028b7a9e7bd71d0c7c6630c203e9e2a54296628e530632ad5e6f55b1ebefe8fc98 |
26 |
|
27 |
diff --git a/sys-boot/syslinux/syslinux-4.07.ebuild b/sys-boot/syslinux/syslinux-4.07.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..92eeeea5c9d |
30 |
--- /dev/null |
31 |
+++ b/sys-boot/syslinux/syslinux-4.07.ebuild |
32 |
@@ -0,0 +1,70 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=0 |
37 |
+ |
38 |
+inherit eutils toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders" |
41 |
+HOMEPAGE="https://syslinux.zytor.com/" |
42 |
+SRC_URI="mirror://kernel/linux/utils/boot/syslinux/${PV:0:1}.xx/${P/_/-}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="-* amd64 x86" |
47 |
+IUSE="custom-cflags" |
48 |
+ |
49 |
+RDEPEND="sys-fs/mtools |
50 |
+ dev-perl/Crypt-PasswdMD5 |
51 |
+ dev-perl/Digest-SHA1" |
52 |
+DEPEND="${RDEPEND} |
53 |
+ dev-lang/nasm |
54 |
+ virtual/os-headers" |
55 |
+ |
56 |
+S=${WORKDIR}/${P/_/-} |
57 |
+ |
58 |
+# This ebuild is a departure from the old way of rebuilding everything in syslinux |
59 |
+# This departure is necessary since hpa doesn't support the rebuilding of anything other |
60 |
+# than the installers. |
61 |
+ |
62 |
+# removed all the unpack/patching stuff since we aren't rebuilding the core stuff anymore |
63 |
+ |
64 |
+src_unpack() { |
65 |
+ unpack ${A} |
66 |
+ cd "${S}" |
67 |
+ # Fix building on hardened |
68 |
+ epatch "${FILESDIR}"/${PN}-4.05-nopie.patch |
69 |
+ |
70 |
+ rm -f gethostip #bug 137081 |
71 |
+ |
72 |
+ # Don't prestrip or override user LDFLAGS, bug #305783 |
73 |
+ local SYSLINUX_MAKEFILES="extlinux/Makefile linux/Makefile mtools/Makefile \ |
74 |
+ sample/Makefile utils/Makefile" |
75 |
+ sed -i ${SYSLINUX_MAKEFILES} -e '/^LDFLAGS/d' || die "sed failed" |
76 |
+ |
77 |
+ if use custom-cflags; then |
78 |
+ sed -i ${SYSLINUX_MAKEFILES} \ |
79 |
+ -e 's|-g -Os||g' \ |
80 |
+ -e 's|-Os||g' \ |
81 |
+ -e 's|CFLAGS[[:space:]]\+=|CFLAGS +=|g' \ |
82 |
+ || die "sed custom-cflags failed" |
83 |
+ else |
84 |
+ QA_FLAGS_IGNORED=" |
85 |
+ /sbin/extlinux |
86 |
+ /usr/bin/memdiskfind |
87 |
+ /usr/bin/gethostip |
88 |
+ /usr/bin/isohybrid |
89 |
+ /usr/bin/syslinux |
90 |
+ " |
91 |
+ fi |
92 |
+ |
93 |
+} |
94 |
+ |
95 |
+src_compile() { |
96 |
+ emake CC="$(tc-getCC)" installer || die |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ emake INSTALLSUBDIRS=utils INSTALLROOT="${D}" MANDIR=/usr/share/man install || die |
101 |
+ dodoc README NEWS doc/*.txt || die |
102 |
+} |