diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2009-01-22 13:59:21 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2009-01-22 13:59:21 +0000 |
commit | 1634a5db38422bffc933cc9f366be473156088ab (patch) | |
tree | 1181ebed4663606b876b012cef0ff64eca91a97f /sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild | |
parent | Fix git URL, bug 239512 (diff) | |
download | gentoo-2-1634a5db38422bffc933cc9f366be473156088ab.tar.gz gentoo-2-1634a5db38422bffc933cc9f366be473156088ab.tar.bz2 gentoo-2-1634a5db38422bffc933cc9f366be473156088ab.zip |
Respect user CFLAGS, bug 241994
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild')
-rw-r--r-- | sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild b/sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild new file mode 100644 index 000000000000..62a0ee748e29 --- /dev/null +++ b/sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/kexec-tools-1.101-r7.ebuild,v 1.1 2009/01/22 13:59:21 darkside Exp $ + +inherit eutils + +DESCRIPTION="Load another kernel from the currently executing Linux kernel" +HOMEPAGE="http://www.xmission.com/~ebiederm/files/kexec/" +SRC_URI="http://www.xmission.com/~ebiederm/files/kexec/${P}.tar.gz + http://lse.sourceforge.net/kdump/patches/1.101-kdump10/kexec-tools-1.101-kdump10.patch" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="zlib" +DEPEND="zlib? ( sys-libs/zlib )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${DISTDIR}"/kexec-tools-1.101-kdump10.patch + epatch "${FILESDIR}"/${P}-LDFLAGS.patch + epatch "${FILESDIR}"/${P}-ppc64.patch + epatch "${FILESDIR}"/kexec-linux-headers.patch + epatch "${FILESDIR}"/${P}-respect-LDFLAGS.patch +} + +src_compile() { + econf $(use_with zlib) || die "econf failed" + sed -i -e 's/=-Wall/+=-Wall/' Makefile.conf || die + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + doman kexec/kexec.8 + dodoc News AUTHORS TODO + + newinitd "${FILESDIR}"/kexec.init kexec + newconfd "${FILESDIR}"/kexec.conf kexec +} |