]> Pileus Git - ~andy/sunrise/commitdiff
dev-util/eresi: New ebuild for ERESI, to replace dev-util/elfsh. Bug #253436
authorMartin von Gagern (MvG) <Martin.vGagern@gmx.net>
Fri, 2 Jan 2009 14:20:25 +0000 (14:20 +0000)
committerMartin von Gagern (MvG) <Martin.vGagern@gmx.net>
Fri, 2 Jan 2009 14:20:25 +0000 (14:20 +0000)
svn path=/sunrise/; revision=7576

dev-util/eresi/ChangeLog [new file with mode: 0644]
dev-util/eresi/Manifest [new file with mode: 0644]
dev-util/eresi/eresi-0.82_beta2.ebuild [new file with mode: 0644]
dev-util/eresi/files/0.82_beta2-parallel-make.patch [new file with mode: 0644]
dev-util/eresi/metadata.xml [new file with mode: 0644]

diff --git a/dev-util/eresi/ChangeLog b/dev-util/eresi/ChangeLog
new file mode 100644 (file)
index 0000000..eedc667
--- /dev/null
@@ -0,0 +1,8 @@
+# ChangeLog for dev-util/eresi
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  02 Jan 2009; Martin von Gagern (MvG) <Martin.vGagern@gmx.net>
+  +files/0.82-parallel-make.patch, +eresi-0.82_beta2.ebuild, +metadata.xml:
+  New ebuild for ERESI, to replace dev-util/elfsh. Bug #253436
+
diff --git a/dev-util/eresi/Manifest b/dev-util/eresi/Manifest
new file mode 100644 (file)
index 0000000..4ea80b2
--- /dev/null
@@ -0,0 +1,5 @@
+AUX 0.82_beta2-parallel-make.patch 1970 RMD160 6b7bd0515188264a8ad8c799c6873d15b43f4332 SHA1 6e67edb49670c3c67e9df46abf5d89229ef41459 SHA256 564b6e46e10797b096d75f50691f9bf2244271fe04e4234a908dcd4f7dfade13
+DIST eresi-0.82_beta2.tar.bz2 1132566 RMD160 a52cb8ae6da30dc9f2dd024e064a8da3c3666d02 SHA1 41d28e4bfc486c8f48cf15fb57e4b3f35f21a3aa SHA256 93daa8e392d33897d2fe3a9b27b198671941a53803fdb9bc08dea8a3f9b13a44
+EBUILD eresi-0.82_beta2.ebuild 2372 RMD160 42ea88ca7d053fa0f7a4314a76519735ec35bc01 SHA1 04807706b13a08f3194876e447fa3606bb64f2d3 SHA256 2ce0eedc4fb1435a64d11a216d2b30fcb5bc876fd6f86d089ecad6a35a66725b
+MISC ChangeLog 319 RMD160 e09e6e0e2235e722ca11c14670d2463ffe99f32e SHA1 e4092224eab6fdcbb693702b377b33c8563c2901 SHA256 749f583de7543e8341955ac2e742e92386ceba894cbeba4f5f3ab029ec3e1648
+MISC metadata.xml 240 RMD160 aec28b58da5ec9bab610885cea497c608a2c28e3 SHA1 8560f8942a64e4ec338709af030b264492987b57 SHA256 23afca2e11b1d226d032a675936f0759ed02c592503e8bb372086182818b2b4c
diff --git a/dev-util/eresi/eresi-0.82_beta2.ebuild b/dev-util/eresi/eresi-0.82_beta2.ebuild
new file mode 100644 (file)
index 0000000..00921d7
--- /dev/null
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="The ERESI Reverse Engineering Software Interface: elfsh and friends"
+HOMEPAGE="http://www.eresi-project.org/"
+# Steps to regenerate archive:
+#   svn export http://svn.eresi-project.org/svn/trunk@1283 eresi-0.82_beta2
+#   tar cvjf eresi-0.82_beta2{.tar.bz2,}
+# To find the latest release and the corresponding svn revision:
+#   svn annotate \
+#   http://svn.eresi-project.org/svn/trunk/librevm/include/revm-io.h \
+#   | egrep 'REVM_(RELEASE|VERSION)'
+SRC_URI="http://dev.gentooexperimental.org/~mvg/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="readline server doc"
+
+DEPEND="readline? ( sys-libs/readline )"
+RDEPEND="${DEPEND}
+       !<dev-util/elfsh-0.75"
+# dev-util/elfsh-0.75 should be used as a transition package,
+# depending on eresi but not installing any files of its own.
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}"/0.82_beta2-parallel-make.patch
+       sed -i \
+               -e 's: -O2 : :g' \
+               -e "s: -g3 : ${CFLAGS} :" \
+               -e "/^LDFLAGS/s:=:=${LDFLAGS} :" \
+               $(find -name Makefile) \
+               || die
+}
+
+src_compile() {
+       # non-standard configure script
+       # doesn't understand --disable-*, so don't use use_enable
+       local conf="--prefix /usr"
+       conf="${conf} --enable-32-64"
+       conf="${conf} --set-compiler $(tc-getCC)"
+       use readline && conf="${conf} --enable-readline"
+       use server && conf="${conf} --enable-network"
+       echo "./configure ${conf}"
+       ./configure  ${conf} || die "configure failed"
+       emake || die "make failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+       dodoc doc/AUTHOR || die "dodoc failed"
+       dodoc doc/CREDITS || die "dodoc failed"
+       dodoc README.FIRST || die "dodoc failed"
+       if use doc; then
+               dodoc doc/cerberus2.txt || die "dodoc failed"
+               dodoc doc/Changelog || die "dodoc failed"
+               dodoc doc/elfsh-network-0.3.txt || die "dodoc failed"
+               dodoc doc/elfsh-ref.txt || die "dodoc failed"
+               dodoc doc/ERESI.NEWHOOKS || die "dodoc failed"
+               dodoc doc/eresirc.example || die "dodoc failed"
+               dodoc doc/graphers.txt || die "dodoc failed"
+               dodoc doc/KERNSH.bugs || die "dodoc failed"
+               dodoc doc/libelfsh.i || die "dodoc failed"
+               dodoc doc/libelfsh-ref.txt || die "dodoc failed"
+               dodoc doc/rtld-multiarch.txt || die "dodoc failed"
+       fi
+}
diff --git a/dev-util/eresi/files/0.82_beta2-parallel-make.patch b/dev-util/eresi/files/0.82_beta2-parallel-make.patch
new file mode 100644 (file)
index 0000000..c14d21a
--- /dev/null
@@ -0,0 +1,66 @@
+Index: librevm/Makefile
+===================================================================
+--- librevm/Makefile   (revision 1284)
++++ librevm/Makefile   (working copy)
+@@ -42,7 +42,7 @@
+                       $(MAKE) -C io   all32
+                       $(MAKE) -C api  all32
+-$(NAME32).so                  :
++$(NAME32).so                  : mod32
+                       $(CC) -shared $(OBJ32) -o $(NAME32).so $(LDFLAGS32) \
+                       $(STATOPT) $(NCURSESLNOPT) $(READLNOPT)
+                       ar rc ${NAME32}.a ${OBJ32} 
+@@ -57,7 +57,7 @@
+                       $(MAKE) -C io   all64
+                       $(MAKE) -C api  all64
+-lib64                 :
++lib64                 : mod64
+                       $(CC) -shared $(OBJ64) -o $(NAME64).so $(LDFLAGS64) \
+                       $(STATOPT) $(NCURSESLNOPT) $(READLNOPT)
+                       ar rc ${NAME64}.a ${OBJ64} 
+Index: libstderesi/Makefile
+===================================================================
+--- libstderesi/Makefile       (revision 1284)
++++ libstderesi/Makefile       (working copy)
+@@ -47,7 +47,7 @@
+                       $(MAKE) -C analysis all32
+                       $(MAKE) -C files all32
+-$(NAME32).so          :
++$(NAME32).so          : mod32
+                       $(CC) -shared $(OBJ32) -o $(NAME32).so $(LDFLAGS32) \
+                       $(NCURSESLNOPT) $(READLNOPT)
+                       ar rc ${NAME32}.a ${OBJ32} 
+@@ -66,7 +66,7 @@
+                       $(MAKE) -C analysis all64
+                       $(MAKE) -C files all64
+-$(NAME64).so                  :
++$(NAME64).so                  : mod64
+                       $(CC) -shared $(OBJ64) -o $(NAME64).so $(LDFLAGS64) \
+                       $(STATOPT) $(NCURSESLNOPT) $(READLNOPT)
+                       ar rc ${NAME64}.a ${OBJ64} 
+Index: libe2dbg/Makefile
+===================================================================
+--- libe2dbg/Makefile  (revision 1284)
++++ libe2dbg/Makefile  (working copy)
+@@ -52,7 +52,7 @@
+                       $(MAKE) -C kernel 
+ endif
+-$(DBGNAME32O):
++$(DBGNAME32O): mod32
+                       @$(CC) -shared $(COBJ32) $(EXTRAOBJ32) $(UOBJ32) $(LDFLAGS32) \
+                       -o $(DBGNAME32).so
+                       @$(AR) $(DBGNAME32).a $(COBJ32) $(UOBJ32) $(EXTRAOBJ32)
+@@ -70,7 +70,7 @@
+                       $(MAKE) -C common all64
+                       $(MAKE) -C user   all64
+-$(DBGNAME64O)                 :
++$(DBGNAME64O)                 : mod64
+                       @$(CC) -shared $(COBJ64) $(EXTRAOBJ64) $(UOBJ64) $(LDFLAGS64) \
+                       -o $(DBGNAME64).so
+                       @$(AR) $(DBGNAME64).a $(OBJ64)
diff --git a/dev-util/eresi/metadata.xml b/dev-util/eresi/metadata.xml
new file mode 100644 (file)
index 0000000..d301f9e
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+<use>
+<flag name="server">Build eresi server capability</flag>
+</use>
+</pkgmetadata>