diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-09-21 02:24:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-09-21 02:24:56 +0000 |
commit | f5c3e6b19522fdb988ddc8715a42ee768f229705 (patch) | |
tree | 018c2669eab5e7028f836f68524d5cfbfc4b43a8 /dev-util | |
parent | ver bump for security #64809 (Manifest recommit) (diff) | |
download | gentoo-2-f5c3e6b19522fdb988ddc8715a42ee768f229705.tar.gz gentoo-2-f5c3e6b19522fdb988ddc8715a42ee768f229705.tar.bz2 gentoo-2-f5c3e6b19522fdb988ddc8715a42ee768f229705.zip |
re-import
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/elfsh/ChangeLog | 28 | ||||
-rw-r--r-- | dev-util/elfsh/Manifest | 5 | ||||
-rw-r--r-- | dev-util/elfsh/elfsh-0.51_beta3.ebuild | 40 | ||||
-rw-r--r-- | dev-util/elfsh/files/0.51_beta3-gentoo.patch | 63 | ||||
-rw-r--r-- | dev-util/elfsh/files/digest-elfsh-0.51_beta3 | 1 | ||||
-rw-r--r-- | dev-util/elfsh/metadata.xml | 9 |
6 files changed, 146 insertions, 0 deletions
diff --git a/dev-util/elfsh/ChangeLog b/dev-util/elfsh/ChangeLog new file mode 100644 index 000000000000..a6afaed06b23 --- /dev/null +++ b/dev-util/elfsh/ChangeLog @@ -0,0 +1,28 @@ +# ChangeLog for dev-libs/elfsh +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/ChangeLog,v 1.1 2004/09/21 02:24:56 vapier Exp $ + + 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> + elfsh-0.51_beta3.ebuild: + virtual/glibc -> virtual/libc + + 07 May 2004; Brandon Hale <tseng@gentoo.org> elfsh-0.51_beta3.ebuild: + Added IUSE= + +*elfsh-0.51_beta3 (21 Aug 2003) + + 21 Aug 2003; <solar@gentoo.org> elfsh-0.51_beta3.ebuild: + version bump, still requires special patch to avoid sandbox permission denied + errors + +*elfsh-0.51_beta2 (15 Aug 2003) + + 15 Aug 2003; <solar@gentoo.org> elfsh-0.51_beta2.ebuild, + files/elfsh-0.51b2.diff: + version bump to latest version listed in phrack #61 + +*elfsh-0.5_beta8 (08 Jul 2003) + + 08 Jul 2003; <solar@gentoo.org> elfsh-0.5_beta8.ebuild, metadata.xml: + initial import of elfsh to portage + diff --git a/dev-util/elfsh/Manifest b/dev-util/elfsh/Manifest new file mode 100644 index 000000000000..0905b093e808 --- /dev/null +++ b/dev-util/elfsh/Manifest @@ -0,0 +1,5 @@ +MD5 965dfe72399d5ea980c7146a352a7ddf elfsh-0.51_beta3.ebuild 1154 +MD5 fa549b98ba4bd2c231c390cbb1784587 ChangeLog 928 +MD5 fc9aa1192d130594886c29a3b77591cf metadata.xml 648 +MD5 ae73a6afc401d346946d887b527b6249 files/digest-elfsh-0.51_beta3 70 +MD5 85424e37c19daf7449ec694672ce5214 files/elfsh-0.51b2.diff 1314 diff --git a/dev-util/elfsh/elfsh-0.51_beta3.ebuild b/dev-util/elfsh/elfsh-0.51_beta3.ebuild new file mode 100644 index 000000000000..83c4f5cec0de --- /dev/null +++ b/dev-util/elfsh/elfsh-0.51_beta3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/elfsh/elfsh-0.51_beta3.ebuild,v 1.1 2004/09/21 02:24:56 vapier Exp $ + +inherit eutils + +MY_PV=${PV/_beta/b} +S=${WORKDIR}/${PN}-${MY_PV} +DESCRIPTION="scripting language to modify ELF binaries" +HOMEPAGE="http://elfsh.segfault.net/" +SRC_URI="mirror://gentoo/elfsh-${MY_PV}-portable.tgz" +#http://elfsh.segfault.net/files/elfsh-${MY_PV}-portable.tgz + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="virtual/libc + >=dev-libs/expat-1.95 + >=sys-devel/gettext-0.11" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-gentoo.patch + sed -i \ + -e "s:-g3 -O2:${CFLAGS}:" \ + `find -name Makefile` \ + || die +} + +src_compile() { + # emacs does not have to be a requirement. + emake ETAGS=echo || die "emake failed" +} + +src_install() { + make install DESTDIR=${D} || die "einstall failed" +} diff --git a/dev-util/elfsh/files/0.51_beta3-gentoo.patch b/dev-util/elfsh/files/0.51_beta3-gentoo.patch new file mode 100644 index 000000000000..26c4f7b91308 --- /dev/null +++ b/dev-util/elfsh/files/0.51_beta3-gentoo.patch @@ -0,0 +1,63 @@ +diff -ur elfsh-0.51b3.orig/Makefile elfsh-0.51b3/Makefile +--- elfsh-0.51b3.orig/Makefile 2004-09-20 22:20:22.152723392 -0400 ++++ elfsh-0.51b3/Makefile 2004-09-20 22:21:37.270303784 -0400 +@@ -5,12 +5,14 @@ + ## Last update Sun May 25 18:12:43 2003 mayhem + ## + ++DESTDIR = / ++PREFIX = $(DESTDIR)/usr + RM = rm -f + ETAGS = etags +-MODPATH = /usr/share/elfsh/ +-BINPATH = /usr/bin +-LIBPATH = /usr/lib/ +-INCPATH = /usr/include/ ++BINPATH = $(PREFIX)/bin ++LIBPATH = $(PREFIX)/lib ++INCPATH = $(PREFIX)/include ++MODPATH = $(LIBPATH)/elfsh + + all : + @echo 'Builting libelfsh...' +@@ -32,14 +34,15 @@ + #$(MAKE) -s tags + + install : mod_install ++ @mkdir -p $(BINPATH) $(LIBPATH) $(INCPATH) + @cp vm/elfsh $(BINPATH)/ + @cp libelfsh/libelfsh.a libelfsh/libelfsh.so $(LIBPATH) + @cp libelfsh/include/libelfsh*.h $(INCPATH) +- @chmod 755 $(BINPATH)/elfsh $(LIBPATH)libelfsh.so $(LIBPATH)libelfsh.a $(INCPATH)libelfsh*.h ++ @chmod 755 $(BINPATH)/elfsh $(LIBPATH)/libelfsh.so + @echo 'ELFsh and Libelfsh installed successfully .' + + mod_install: +- @mkdir $(MODPATH) 2>/dev/null || true ++ @mkdir -p $(MODPATH) + @cp modules/*.so $(MODPATH) + @chmod -R 755 $(MODPATH) + +diff -ur elfsh-0.51b3.orig/vm/Makefile elfsh-0.51b3/vm/Makefile +--- elfsh-0.51b3.orig/vm/Makefile 2004-09-20 22:20:22.117728712 -0400 ++++ elfsh-0.51b3/vm/Makefile 2004-09-20 22:22:17.807141248 -0400 +@@ -13,6 +13,7 @@ + #DLOPT_linux-gnu = -ldl + #DLOPT_solaris = -ldl + #EXTRAOPT = -lefence ++EXTRAOPT = -ldl + + # Uncomment that to use libasm + #ASMOPT = -DUSE_LIBASM +diff -ur elfsh-0.51b3.orig/vm/include/elfsh.h elfsh-0.51b3/vm/include/elfsh.h +--- elfsh-0.51b3.orig/vm/include/elfsh.h 2004-09-20 22:20:22.116728864 -0400 ++++ elfsh-0.51b3/vm/include/elfsh.h 2004-09-20 22:20:22.358692080 -0400 +@@ -94,7 +94,7 @@ + #define ELFSH_SHELL "/bin/bash" + #define ELFSH_INIT "elfsh_init" + #define ELFSH_FINI "elfsh_fini" +-#define ELFSH_MODPATH "/usr/share/elfsh/" ++#define ELFSH_MODPATH "/usr/lib/elfsh/" + + /* For elfsh/elfsh/disasm.c:display_object() */ + #define ELFSH_HEXA_VIEW 0 diff --git a/dev-util/elfsh/files/digest-elfsh-0.51_beta3 b/dev-util/elfsh/files/digest-elfsh-0.51_beta3 new file mode 100644 index 000000000000..a3c92a2b1d83 --- /dev/null +++ b/dev-util/elfsh/files/digest-elfsh-0.51_beta3 @@ -0,0 +1 @@ +MD5 e8073d475e82dc911a7ebfa6f2567719 elfsh-0.51b3-portable.tgz 136679 diff --git a/dev-util/elfsh/metadata.xml b/dev-util/elfsh/metadata.xml new file mode 100644 index 000000000000..f8fc38610ae0 --- /dev/null +++ b/dev-util/elfsh/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>hardened</herd> +<maintainer> + <email>vapier@gentoo.org</email> +</maintainer> +<longdescription>ELFsh is an interactive and scriptable ELF machine to play with executable files, shared libraries and relocatable ELF32 objects. It is useful for daily binary manipulations such as on-the-fly patching, embedded code injection, and binary analysis in research fields such as reverse engineering, security auditing and intrusion detection.</longdescription> +</pkgmetadata> |