svn commit: r420711 - in head/devel/elfsh: . files
John Marino
marino at FreeBSD.org
Tue Aug 23 16:49:49 UTC 2016
Author: marino
Date: Tue Aug 23 16:49:47 2016
New Revision: 420711
URL: https://svnweb.freebsd.org/changeset/ports/420711
Log:
devel/elfsh: document ncurses requirement
while here, bring over patches from dports to support DF.
Added:
head/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h (contents, props changed)
head/devel/elfsh/files/patch-libelfsh_plt.c (contents, props changed)
head/devel/elfsh/files/patch-libelfsh_relinject.c (contents, props changed)
head/devel/elfsh/files/patch-testsuite_sct__fillbss__injection_section__inject.c (contents, props changed)
head/devel/elfsh/files/patch-testsuite_sct__index__injection_section__inject.c (contents, props changed)
Modified:
head/devel/elfsh/Makefile
head/devel/elfsh/files/patch-vm__Makefile
Modified: head/devel/elfsh/Makefile
==============================================================================
--- head/devel/elfsh/Makefile Tue Aug 23 16:34:18 2016 (r420710)
+++ head/devel/elfsh/Makefile Tue Aug 23 16:49:47 2016 (r420711)
@@ -3,7 +3,7 @@
PORTNAME= elfsh
PORTVERSION= 0.51b3
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://elfsh.asgardlabs.org/files/
DISTNAME= elfsh-0.51b3-portable
@@ -11,12 +11,13 @@ DISTNAME= elfsh-0.51b3-portable
MAINTAINER= ports at FreeBSD.org
COMMENT= Attractive toolkit for the analysis of ELF object files
-USES= gmake readline tar:tgz
+USES= gmake ncurses readline tar:tgz
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
pre-install:
- @(cd ${WRKSRC} && ${STRIP_CMD} vm/elfsh libelfsh/libelfsh.so modules/*.so)
+ @(cd ${WRKSRC} && \
+ ${STRIP_CMD} vm/elfsh libelfsh/libelfsh.so modules/*.so)
.include <bsd.port.mk>
Added: head/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/elfsh/files/patch-libelfsh_include_libelfsh-compat.h Tue Aug 23 16:49:47 2016 (r420711)
@@ -0,0 +1,20 @@
+--- libelfsh/include/libelfsh-compat.h.orig 2003-08-21 01:11:03 UTC
++++ libelfsh/include/libelfsh-compat.h
+@@ -10,7 +10,7 @@
+
+ #if defined(__linux__)
+ #include <endian.h>
+-#elif defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__)
++#elif defined(__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
+ #include <machine/endian.h>
+ #elif defined(sun)
+ #define __LITTLE_ENDIAN 1234
+@@ -38,7 +38,7 @@
+ /* Portability Stuffs */
+ #if defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <sys/exec_elf.h>
+-#elif defined(__linux__) || defined(__FreeBSD__) || defined(sun)
++#elif defined(__linux__) || defined(__FreeBSD__) || defined(sun) || defined(__DragonFly__)
+ #include <elf.h>
+ #endif
+
Added: head/devel/elfsh/files/patch-libelfsh_plt.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/elfsh/files/patch-libelfsh_plt.c Tue Aug 23 16:49:47 2016 (r420711)
@@ -0,0 +1,11 @@
+--- libelfsh/plt.c.orig 2003-08-21 01:11:03 UTC
++++ libelfsh/plt.c
+@@ -47,7 +47,7 @@ int elfsh_copy_plt(elfshobj_t *file)
+ 0, 0, plt->shdr->sh_size, 0, 0, 0, 0);
+
+ /* FreeBSD is incompatible with pre-interp injection */
+-#ifdef __FreeBSD__
++#if defined __FreeBSD__ || defined __DragonFly__
+ mode = ELFSH_DATA_INJECTION;
+ #else
+ mode = ELFSH_CODE_INJECTION;
Added: head/devel/elfsh/files/patch-libelfsh_relinject.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/elfsh/files/patch-libelfsh_relinject.c Tue Aug 23 16:49:47 2016 (r420711)
@@ -0,0 +1,11 @@
+--- libelfsh/relinject.c.orig 2003-08-21 01:33:53 UTC
++++ libelfsh/relinject.c
+@@ -347,7 +347,7 @@ static int elfsh_inject_etrel_section(el
+ writable = elfsh_get_section_writableflag(sect->shdr);
+
+ /* FreeBSD is incompatible with pre-interp injection */
+-#ifdef __FreeBSD__
++#if defined __FreeBSD__ || defined __DragonFly__
+ mode = ELFSH_DATA_INJECTION;
+ #else
+ mode = (writable ? ELFSH_DATA_INJECTION : ELFSH_CODE_INJECTION);
Added: head/devel/elfsh/files/patch-testsuite_sct__fillbss__injection_section__inject.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/elfsh/files/patch-testsuite_sct__fillbss__injection_section__inject.c Tue Aug 23 16:49:47 2016 (r420711)
@@ -0,0 +1,11 @@
+--- testsuite/sct_fillbss_injection/section_inject.c.orig 2003-08-21 01:11:03 UTC
++++ testsuite/sct_fillbss_injection/section_inject.c
+@@ -23,7 +23,7 @@ char sc[] =
+ "\x42\x0b\xcd\x80"
+ "\x31\xC0\x40\xcd\x80";
+
+-#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
++#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+
+ char sc[] =
+ "\xeb\x22" /* jmp end */
Added: head/devel/elfsh/files/patch-testsuite_sct__index__injection_section__inject.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/elfsh/files/patch-testsuite_sct__index__injection_section__inject.c Tue Aug 23 16:49:47 2016 (r420711)
@@ -0,0 +1,11 @@
+--- testsuite/sct_index_injection/section_inject.c.orig 2003-08-21 01:11:03 UTC
++++ testsuite/sct_index_injection/section_inject.c
+@@ -18,7 +18,7 @@ char sc[] =
+ "\x62\x69\x89\xe3\x52\x53\x89\xe1\x8D\x42\x0b"
+ "\xcd\x80\x31\xC0\x40\xcd\x80";
+
+-#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
++#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+
+ char sc[] =
+ "\xeb\x22" /* jmp end */
Modified: head/devel/elfsh/files/patch-vm__Makefile
==============================================================================
--- head/devel/elfsh/files/patch-vm__Makefile Tue Aug 23 16:34:18 2016 (r420710)
+++ head/devel/elfsh/files/patch-vm__Makefile Tue Aug 23 16:49:47 2016 (r420711)
@@ -7,7 +7,7 @@
-#READLNOPT = -DUSE_READLN
-#LDREADLNOPT = -lreadline -ltermcap
+READLNOPT = -DUSE_READLN
-+LDREADLNOPT = -lreadline -ltermcap
++LDREADLNOPT = -lreadline -lncurses
# End of configurable Makefile
More information about the svn-ports-all
mailing list