diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-12-20 18:24:39 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-12-20 18:25:35 -0500 |
commit | 2312b1a486f1512ad0c7c09af65739f6d8775f3c (patch) | |
tree | 6c50696016772ad5d5968cdfb2b4b48751a1aaf8 /sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild | |
parent | net-libs/cppzmq: drop 4.6.0 (diff) | |
download | gentoo-2312b1a486f1512ad0c7c09af65739f6d8775f3c.tar.gz gentoo-2312b1a486f1512ad0c7c09af65739f6d8775f3c.tar.bz2 gentoo-2312b1a486f1512ad0c7c09af65739f6d8775f3c.zip |
sys-boot/syslinux: rename keytab-lilo to keytab-syslinux
Avoids a collision with sys-boot/lilo.
Closes: https://bugs.gentoo.org/887395
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild')
-rw-r--r-- | sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild b/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild new file mode 100644 index 000000000000..e4925c07622a --- /dev/null +++ b/sys-boot/syslinux/syslinux-6.04_pre1-r5.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders" +HOMEPAGE="https://www.syslinux.org/" +MY_P=${P/_/-} +SRC_URI="https://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/6.04/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="abi_x86_32 abi_x86_64 +bios +efi" +REQUIRED_USE="|| ( bios efi ) + efi? ( || ( abi_x86_32 abi_x86_64 ) )" + +BDEPEND=" + dev-lang/perl + bios? ( + app-arch/upx + app-text/asciidoc + dev-lang/nasm + ) +" +RDEPEND=" + sys-apps/util-linux + sys-fs/mtools + dev-perl/Crypt-PasswdMD5 + dev-perl/Digest-SHA1 +" +DEPEND="${RDEPEND} + virtual/os-headers +" + +S=${WORKDIR}/${MY_P} + +QA_EXECSTACK="usr/share/syslinux/*" +QA_WX_LOAD="usr/share/syslinux/*" +QA_PRESTRIPPED="usr/share/syslinux/.*" +QA_FLAGS_IGNORED=".*" + +src_prepare() { + local PATCHES=( + "${FILESDIR}/syslinux-6.03-sysmacros.patch" + "${FILESDIR}/${PV}" + ) + default +} +src_compile() { + local DATE=$(date -u -r NEWS +%Y%m%d) + local HEXDATE=$(printf '0x%08x' "${DATE}") + + tc-export AR CC LD OBJCOPY RANLIB + unset LDFLAGS + + if use bios; then + emake bios DATE="${DATE}" HEXDATE="${HEXDATE}" + fi + if use efi; then + if use abi_x86_32; then + emake efi32 DATE="${DATE}" HEXDATE="${HEXDATE}" + fi + if use abi_x86_64; then + emake efi64 DATE="${DATE}" HEXDATE="${HEXDATE}" + fi + fi +} + +src_install() { + local firmware=( $(usev bios) ) + if use efi; then + use abi_x86_32 && firmware+=( efi32 ) + use abi_x86_64 && firmware+=( efi64 ) + fi + local args=( + INSTALLROOT="${ED}" + MANDIR='$(DATADIR)/man' + "${firmware[@]}" + install + ) + emake -j1 "${args[@]}" + mv "${ED}"/usr/bin/keytab-{lilo,syslinux} || die + einstalldocs + dostrip -x /usr/share/syslinux +} |