summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2003-07-08 19:47:27 +0000
committerNed Ludd <solar@gentoo.org>2003-07-08 19:47:27 +0000
commitf8d43737a742a72c90808bbbeaeaf6aff9425ab9 (patch)
treecab58cb4d60f5e8377bc6a06f470e6cba3cf9701
parentinitial import of elfsh to portage (diff)
downloadgentoo-2-f8d43737a742a72c90808bbbeaeaf6aff9425ab9.tar.gz
gentoo-2-f8d43737a742a72c90808bbbeaeaf6aff9425ab9.tar.bz2
gentoo-2-f8d43737a742a72c90808bbbeaeaf6aff9425ab9.zip
initial import of elfsh to portage
-rw-r--r--dev-libs/elfsh/ChangeLog9
-rw-r--r--dev-libs/elfsh/Manifest3
-rw-r--r--dev-libs/elfsh/elfsh-0.5_beta8.ebuild38
-rw-r--r--dev-libs/elfsh/files/digest-elfsh-0.5_beta81
-rw-r--r--dev-libs/elfsh/files/elfsh-0.5b8-linux.diff47
-rw-r--r--dev-libs/elfsh/metadata.xml10
6 files changed, 107 insertions, 1 deletions
diff --git a/dev-libs/elfsh/ChangeLog b/dev-libs/elfsh/ChangeLog
new file mode 100644
index 000000000000..45f1097331da
--- /dev/null
+++ b/dev-libs/elfsh/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-libs/elfsh
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfsh/ChangeLog,v 1.1 2003/07/08 19:47:18 solar Exp $
+
+*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-libs/elfsh/Manifest b/dev-libs/elfsh/Manifest
index e287e42d4a19..2f98de5f6489 100644
--- a/dev-libs/elfsh/Manifest
+++ b/dev-libs/elfsh/Manifest
@@ -1,4 +1,5 @@
-MD5 a50b737b9f6752767403432011c3df9c elfsh-0.5_beta8.ebuild 812
+MD5 c94eb2db38de725fc05dbe8666113127 elfsh-0.5_beta8.ebuild 956
MD5 fc9aa1192d130594886c29a3b77591cf metadata.xml 648
+MD5 5fa4f19fb51d69f7ea2e2525fcefe8f4 ChangeLog 351
MD5 355f999030ba438a9c79d931ac9a4ea9 files/digest-elfsh-0.5_beta8 66
MD5 6729421a54b3419a4bf2fc414ea2bd0f files/elfsh-0.5b8-linux.diff 1397
diff --git a/dev-libs/elfsh/elfsh-0.5_beta8.ebuild b/dev-libs/elfsh/elfsh-0.5_beta8.ebuild
new file mode 100644
index 000000000000..fb491ab23ebe
--- /dev/null
+++ b/dev-libs/elfsh/elfsh-0.5_beta8.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/elfsh/elfsh-0.5_beta8.ebuild,v 1.1 2003/07/08 19:47:18 solar Exp $
+
+IUSE=""
+
+MY_PV=${PV/_beta/b}
+S=${WORKDIR}/${PN}-${MY_PV}-linux
+
+DESCRIPTION="ELFsh is an interactive and scriptable ELF machine to play with executable files, shared libraries and relocatable ELF32 objects"
+HOMEPAGE="http://devhell.org/projects/elfsh"
+SRC_URI="http://devhell.org/projects/elfsh/files/elfsh-${MY_PV}-linux.tgz"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+
+DEPEND="virtual/glibc
+ >=dev-libs/expat-1.95
+ >=sys-devel/gettext-0.11
+"
+
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${PN}-${MY_PV}-linux.diff
+}
+
+src_compile() {
+ cd ${S}
+ # emacs does not have to be a requirement.
+ emake ETAGS=echo || die "emake failed"
+}
+
+src_install() {
+ cd ${S}
+ einstall DESTDIR=${D} || die "einstall failed"
+}
diff --git a/dev-libs/elfsh/files/digest-elfsh-0.5_beta8 b/dev-libs/elfsh/files/digest-elfsh-0.5_beta8
new file mode 100644
index 000000000000..a5824bd222a7
--- /dev/null
+++ b/dev-libs/elfsh/files/digest-elfsh-0.5_beta8
@@ -0,0 +1 @@
+MD5 5f246536c38752ea04e4f6942118a160 elfsh-0.5b8-linux.tgz 145272
diff --git a/dev-libs/elfsh/files/elfsh-0.5b8-linux.diff b/dev-libs/elfsh/files/elfsh-0.5b8-linux.diff
new file mode 100644
index 000000000000..c289a5b1763b
--- /dev/null
+++ b/dev-libs/elfsh/files/elfsh-0.5b8-linux.diff
@@ -0,0 +1,47 @@
+diff -Nru elfsh-0.5b8-linux.orig/Makefile elfsh-0.5b8-linux/Makefile
+--- elfsh-0.5b8-linux.orig/Makefile 2003-05-19 11:22:49.000000000 -0400
++++ elfsh-0.5b8-linux/Makefile 2003-07-08 05:44:16.000000000 -0400
+@@ -5,12 +5,14 @@
+ ## Last update Mon May 19 13:15:01 2003 mayhem
+ ##
+
++DESTDIR = /
++PREFIX = $(DESTDIR)/usr
+ RM = rm -f
+ ETAGS = etags
+-MODPATH = /usr/share/elfsh/
+-BINPATH = /usr/bin
+-LIBPATH = /usr/lib/
+-INCPATH = /usr/include/
++MODPATH = $(PREFIX)/share/elfsh
++BINPATH = $(PREFIX)/bin
++LIBPATH = $(PREFIX)/lib
++INCPATH = $(PREFIX)/include
+
+ all :
+ @echo 'Builting libelfsh...'
+@@ -32,19 +34,20 @@
+ $(MAKE) -s tags
+
+ install :
++ mkdir -p $(MODPATH) $(BINPATH) $(LIBPATH) $(INCPATH) || true
+ @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
++ @chmod 755 $(BINPATH)/elfsh $(LIBPATH)/libelfsh.so $(LIBPATH)/libelfsh.a
+ @mkdir $(MODPATH) 2>/dev/null || true
+ @cp modules/*.so $(MODPATH)
+ @chmod -R 755 $(MODPATH)
+ @echo 'ELFsh and Libelfsh installed successfully .'
+
+ uninstall:
+- rm -f /usr/bin/elfsh
+- rm -f /usr/lib/libelfsh*
+- rm -f /usr/include/libelfsh*.h
++ rm -f $(BINPATH)/elfsh
++ rm -f $(LIBPATH)/libelfsh*
++ rm -f $(INCPATH)/libelfsh*.h
+ rm -fr $(MODPATH)
+ @echo 'ELFsh and Libelfsh uninstalled successfully'
+
diff --git a/dev-libs/elfsh/metadata.xml b/dev-libs/elfsh/metadata.xml
new file mode 100644
index 000000000000..d354102e32e9
--- /dev/null
+++ b/dev-libs/elfsh/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>hardened</herd>
+ <maintainer>
+ <email>solar@gentoo.org</email>
+ <description>Primary Maintainer</description>
+ </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>