diff options
author | Ned Ludd <solar@gentoo.org> | 2008-01-01 02:21:22 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2008-01-01 02:21:22 +0000 |
commit | 471eaec7a5ed5c161778f7c63a773e3a8fa8db53 (patch) | |
tree | 9007ba6c13294b0677a565199fb56c6f0a32b0b5 /dev-util | |
parent | Remove old version (diff) | |
download | gentoo-2-471eaec7a5ed5c161778f7c63a773e3a8fa8db53.tar.gz gentoo-2-471eaec7a5ed5c161778f7c63a773e3a8fa8db53.tar.bz2 gentoo-2-471eaec7a5ed5c161778f7c63a773e3a8fa8db53.zip |
- little more hacking on making these tools work for both 32 and 64 bit ELF files.
(Portage version: 2.1.3.9)
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/elfkickers/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/elfkickers/elfkickers-2.0a-r4.ebuild | 55 | ||||
-rw-r--r-- | dev-util/elfkickers/files/digest-elfkickers-2.0a-r4 | 6 |
3 files changed, 69 insertions, 2 deletions
diff --git a/dev-util/elfkickers/ChangeLog b/dev-util/elfkickers/ChangeLog index 0d043a99e386..8c5227c3028a 100644 --- a/dev-util/elfkickers/ChangeLog +++ b/dev-util/elfkickers/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/elfkickers -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/ChangeLog,v 1.22 2007/11/17 09:33:00 drac Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/ChangeLog,v 1.23 2008/01/01 02:21:21 solar Exp $ + +*elfkickers-2.0a-r4 (01 Jan 2008) + + 01 Jan 2008; <solar@gentoo.org> +elfkickers-2.0a-r4.ebuild: + - little more hacking on making these tools work for both 32 and 64 bit ELF + files. 17 Nov 2007; Samuli Suominen <drac@gentoo.org> elfkickers-2.0a-r3.ebuild: amd64 stable wrt #197752 diff --git a/dev-util/elfkickers/elfkickers-2.0a-r4.ebuild b/dev-util/elfkickers/elfkickers-2.0a-r4.ebuild new file mode 100644 index 000000000000..e418a304c224 --- /dev/null +++ b/dev-util/elfkickers/elfkickers-2.0a-r4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/elfkickers/elfkickers-2.0a-r4.ebuild,v 1.1 2008/01/01 02:21:21 solar Exp $ + +inherit eutils multilib + +MY_PN=${PN/elf/ELF} +S=${WORKDIR}/${MY_PN} + +DESCRIPTION="collection of programs to manipulate ELF files: sstrip, rebind, elfls, elftoc" +HOMEPAGE="http://www.muppetlabs.com/~breadbox/software/elfkickers.html" +SRC_URI="http://www.muppetlabs.com/~breadbox/pub/software/${MY_PN}-${PV}.tar.gz + mirror://gentoo/elfkickers-2.0a-r2.patch.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND="app-misc/pax-utils" +RDEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${WORKDIR}"/elfkickers-2.0a-r2.patch + + sed -i -e '/^SUBDIRS/s:tiny::' Makefile + use x86 || sed -i -e '/^SUBDIRS/s:ebfc::' Makefile + use x86 && sed -i -e 's:linux/elf.h:elf.h:' ebfc/*.c + (cd tiny && make clean) +} + + +src_compile() { + for bits in 32 64; do + emake CFLAGS="-DELF_CLASS=ELFCLASS${bits} ${CFLAGS}" clean all + for x in elfls elftoc rebind sstrip; do + mv ${x}/$x{,${bits}} || die "moving failed of ${x}{,${bits}" + done + done +} + +src_install() { + for d in elfls elftoc rebind sstrip ; do + newdoc ${d}/README README.${d} + dobin ${d}/${d}{32,64} || die "dobin ${d}{32,64} failed" + doman $d/*.1 + case $(get_libdir) in + lib64) dosym /usr/bin/${d}64 /usr/bin/${d};; + lib|lib32) dosym /usr/bin/${d}32 /usr/bin/${d};; + esac + done + dodoc Changelog README +} diff --git a/dev-util/elfkickers/files/digest-elfkickers-2.0a-r4 b/dev-util/elfkickers/files/digest-elfkickers-2.0a-r4 new file mode 100644 index 000000000000..c4a9d890d031 --- /dev/null +++ b/dev-util/elfkickers/files/digest-elfkickers-2.0a-r4 @@ -0,0 +1,6 @@ +MD5 3bf4d8d285591a5b7f31170f9b87aba0 ELFkickers-2.0a.tar.gz 119659 +RMD160 9a982fe963fc110966bc0b5b23a159302e4ca389 ELFkickers-2.0a.tar.gz 119659 +SHA256 c196988f55fc6633d9f9f6d9ddc2ae9b4dfa1f300edf4cbbad865c06a8656df7 ELFkickers-2.0a.tar.gz 119659 +MD5 9e6318e3c32d158518027d4dc7f62e1c elfkickers-2.0a-r2.patch.bz2 8561 +RMD160 c6093fac3ff61203dcfe12b5f0d50b1a0a3445f7 elfkickers-2.0a-r2.patch.bz2 8561 +SHA256 722b07176fcb7e002c0be6d552b0eee39f296f1bb312e0a3517a9af97cc05b0b elfkickers-2.0a-r2.patch.bz2 8561 |