diff options
author | mjl <mjl@pkgsrc.org> | 2003-05-05 10:57:05 +0000 |
---|---|---|
committer | mjl <mjl@pkgsrc.org> | 2003-05-05 10:57:05 +0000 |
commit | 4654dd7b4be42d771dc1256c91da9eeff80af87f (patch) | |
tree | d507cf37452401adb83f9ed134fd5ef0301d19d0 | |
parent | cd52523c8a27d4bbeddbb61901d6da7cae6bb77e (diff) | |
download | pkgsrc-4654dd7b4be42d771dc1256c91da9eeff80af87f.tar.gz |
Initial import of elfsh 0.43
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, on-the-fly patching,
embedded code injection in all research fields, such as reverse
engineering and intrusion detection .
-rw-r--r-- | devel/elfsh/DESCR | 5 | ||||
-rw-r--r-- | devel/elfsh/Makefile | 28 | ||||
-rw-r--r-- | devel/elfsh/PLIST | 8 | ||||
-rw-r--r-- | devel/elfsh/distinfo | 6 | ||||
-rw-r--r-- | devel/elfsh/patches/patch-aa | 28 | ||||
-rw-r--r-- | devel/elfsh/patches/patch-ab | 22 |
6 files changed, 97 insertions, 0 deletions
diff --git a/devel/elfsh/DESCR b/devel/elfsh/DESCR new file mode 100644 index 00000000000..0a7c57f5c5a --- /dev/null +++ b/devel/elfsh/DESCR @@ -0,0 +1,5 @@ +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, on-the-fly patching, +embedded code injection in all research fields, such as reverse +engineering and intrusion detection . diff --git a/devel/elfsh/Makefile b/devel/elfsh/Makefile new file mode 100644 index 00000000000..15b6116b352 --- /dev/null +++ b/devel/elfsh/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ +# + +VERS= 0.43b +DISTNAME= ${PKGNAME}-portable +PKGNAME= elfsh-${VERS} +CATEGORIES= devel +MASTER_SITES= http://www.hert.org/projects/elfsh/files/ +EXTRACT_SUFX= .tgz + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.hert.org/projects/elfsh/ +COMMENT= ELF format exploration shell + +WRKSRC= ${WRKDIR}/elfsh_0.43 + +# XXX This package should be converted to use libtool + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/elfsh/elfsh ${PREFIX}/bin/elfsh + ${INSTALL_DATA} ${WRKSRC}/libelfsh/libelfsh.a ${PREFIX}/lib/libelfsh.a + ${INSTALL_DATA} ${WRKSRC}/libelfsh/libelfsh.so ${PREFIX}/lib/libelfsh.so + ${INSTALL_DATA} ${WRKSRC}/libelfsh/include/libelfsh.h ${PREFIX}/include/libelfsh.h + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/elfsh + ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/elfsh/README + ${INSTALL_DATA} ${WRKSRC}/doc/libelfsh-ref.txt ${PREFIX}/share/doc/elfsh/libelfsh-ref.txt + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/elfsh/PLIST b/devel/elfsh/PLIST new file mode 100644 index 00000000000..344b38679a2 --- /dev/null +++ b/devel/elfsh/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ +bin/elfsh +lib/libelfsh.a +lib/libelfsh.so +include/libelfsh.h +share/doc/elfsh/README +share/doc/elfsh/libelfsh-ref.txt +@unexec ${RMDIR} %D/share/doc/elfsh diff --git a/devel/elfsh/distinfo b/devel/elfsh/distinfo new file mode 100644 index 00000000000..61804fb1b61 --- /dev/null +++ b/devel/elfsh/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ + +SHA1 (elfsh-0.43b-portable.tgz) = a4ccc9e8727409f65a3b9571455d7e2fea56e55b +Size (elfsh-0.43b-portable.tgz) = 101978 bytes +SHA1 (patch-aa) = 32c31367c920dde165a79464c984bfdb346598b5 +SHA1 (patch-ab) = 4d9e36b5f163c582d636256afff5b9f9460264eb diff --git a/devel/elfsh/patches/patch-aa b/devel/elfsh/patches/patch-aa new file mode 100644 index 00000000000..754986eb82e --- /dev/null +++ b/devel/elfsh/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ + +--- libelfsh/Makefile.orig Thu Jun 6 05:03:44 2002 ++++ libelfsh/Makefile Mon May 5 12:26:36 2003 +@@ -5,10 +5,10 @@ + ## Last update Wed Mar 27 12:06:42 2002 mayhem + ## + +-CC = gcc +-RM = rm -f +-AR = ar rc +-CFLAGS = -Iinclude -Wall -g3 -O2 ++# CC = gcc ++# RM = rm -f ++# AR = ar rc ++CFLAGS += -Iinclude -Wall -g3 -O2 + SRC = dynamic.c dynsym.c elf.c fixup.c got.c hash.c \ + interp.c pht.c plt.c section.c sht.c error.c \ + stab.c symbol.c notes.c reloc.c functions.c \ +@@ -19,7 +19,7 @@ + + all : $(OBJ) + $(CC) -shared $(OBJ) -o $(NAME).so +- $(AR) $(NAME).a $(OBJ) ++ $(AR) rc $(NAME).a $(OBJ) + $(RANLIB) $(NAME).a + + clean : diff --git a/devel/elfsh/patches/patch-ab b/devel/elfsh/patches/patch-ab new file mode 100644 index 00000000000..4966355864d --- /dev/null +++ b/devel/elfsh/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ + +--- elfsh/Makefile.orig Mon May 5 12:27:16 2003 ++++ elfsh/Makefile Mon May 5 12:27:43 2003 +@@ -9,12 +9,12 @@ + notes.c opt.c pht.c rel.c sht.c stab.c sym.c usage.c \ + data.c ctors.c dtors.c hexa.c + OBJ = $(SRC:.c=.o) +-CC = gcc +-NAME = elfsh +-LDFLAGS = -L../libelfsh/ -lelfsh +-CFLAGS = -Wall -Iinclude -I../libelfsh/include -g3 -O2 +-RM = rm -f ++# CC = gcc + NAME = elfsh ++LDFLAGS += -L../libelfsh/ -lelfsh ++CFLAGS += -Wall -Iinclude -I../libelfsh/include -g3 -O2 ++# RM = rm -f ++# NAME = elfsh + + all : $(OBJ) + $(CC) $(LDFLAGS) $(OBJ) -o $(NAME) |