summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-09-21 02:24:56 +0000
committerMike Frysinger <vapier@gentoo.org>2004-09-21 02:24:56 +0000
commita168197eb8ebd3da568b598212e8736c33c36d04 (patch)
tree0f29a3bddba2026b2236d1fe6dfe1f80b666c12d /dev-util/elfsh
parentver bump for security #64809 (diff)
downloadhistorical-a168197eb8ebd3da568b598212e8736c33c36d04.tar.gz
historical-a168197eb8ebd3da568b598212e8736c33c36d04.tar.bz2
historical-a168197eb8ebd3da568b598212e8736c33c36d04.zip
re-import
Diffstat (limited to 'dev-util/elfsh')
-rw-r--r--dev-util/elfsh/ChangeLog28
-rw-r--r--dev-util/elfsh/Manifest15
-rw-r--r--dev-util/elfsh/elfsh-0.51_beta3.ebuild40
-rw-r--r--dev-util/elfsh/files/0.51_beta3-gentoo.patch63
-rw-r--r--dev-util/elfsh/files/digest-elfsh-0.51_beta31
-rw-r--r--dev-util/elfsh/metadata.xml9
6 files changed, 156 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..b950cda0a194
--- /dev/null
+++ b/dev-util/elfsh/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 ee9c4b8be12f827a966354dbf6bea95c elfsh-0.51_beta3.ebuild 944
+MD5 44c3e58fcd94f7ccce8232af5311429d ChangeLog 903
+MD5 1b15d9b8549cda1aa82a9be3fb149245 metadata.xml 596
+MD5 ae73a6afc401d346946d887b527b6249 files/digest-elfsh-0.51_beta3 70
+MD5 f130345b5343f3e9253dfde8eb549427 files/0.51_beta3-gentoo.patch 2027
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBT5EUHTu7gpaalycRAsbsAKDzr1QELhnYKLdo/BWE0n27HPjddgCg3WIu
+WGfYe2EA1Sal/mZCSiKKH3M=
+=47io
+-----END PGP SIGNATURE-----
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>