add syslinux 4.0.3

atratsevskiy
Alexander Tratsevskiy 12 years ago
parent da740e3c56
commit 0e9ca4cc80

@ -0,0 +1,2 @@
DIST syslinux-4.03.tar.bz2 4381187 RMD160 11dcf7d0bf58dd8cb4fc573212f9206bfb81a472 SHA1 24e260facca404f075485a635f0ddffd6f97fd1a SHA256 c65567e324f9d1f7f794ae8f9578a0292bbd47d7b8d895a004d2f0152d0bda38
EBUILD syslinux-4.03.ebuild 1709 RMD160 fe4973a7fd1c1ffd696bed9e92a90c1c3692a289 SHA1 8cd8b11ddcbc589b5f381408d78b9359a23d7682 SHA256 fa8db3b31158047b9612b4aa125338670fe3b189d329b40b50f8f4f76dd48f7c

@ -0,0 +1,60 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/syslinux/syslinux-4.03.ebuild,v 1.3 2010/12/09 09:56:19 phajdan.jr Exp $
inherit eutils toolchain-funcs
DESCRIPTION="SYSLINUX, PXELINUX, ISOLINUX, EXTLINUX and MEMDISK bootloaders"
HOMEPAGE="http://syslinux.zytor.com/"
SRC_URI="mirror://kernel/linux/utils/boot/syslinux/${PV:0:1}.xx/${P/_/-}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* amd64 x86"
IUSE="custom-cflags"
RDEPEND="sys-fs/mtools
dev-perl/Crypt-PasswdMD5
dev-perl/Digest-SHA1"
DEPEND="${RDEPEND}
dev-lang/nasm"
S=${WORKDIR}/${P/_/-}
# This ebuild is a departure from the old way of rebuilding everything in syslinux
# This departure is necessary since hpa doesn't support the rebuilding of anything other
# than the installers.
# removed all the unpack/patching stuff since we aren't rebuilding the core stuff anymore
src_unpack() {
unpack ${A}
cd "${S}"
# Fix building on hardened
epatch "${FILESDIR}"/${PN}-4.00-nopie.patch
rm -f gethostip #bug 137081
# Don't prestrip or override user LDFLAGS, bug #305783
local SYSLINUX_MAKEFILES="extlinux/Makefile linux/Makefile mtools/Makefile \
sample/Makefile utils/Makefile"
sed -i ${SYSLINUX_MAKEFILES} -e '/^LDFLAGS/d' || die "sed failed"
if use custom-cflags; then
sed -i ${SYSLINUX_MAKEFILES} \
-e 's|-g -Os||g' \
-e 's|-Os||g' \
-e 's|CFLAGS[[:space:]]\+=|CFLAGS +=|g' \
|| die "sed custom-cflags failed"
fi
}
src_compile() {
emake CC=$(tc-getCC) installer || die
}
src_install() {
emake INSTALLSUBDIRS=utils INSTALLROOT="${D}" MANDIR=/usr/share/man install || die
dodoc README NEWS doc/* || die
}
Loading…
Cancel
Save