diff options
author | cube <cube@pkgsrc.org> | 2004-02-17 12:45:56 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2004-02-17 12:45:56 +0000 |
commit | f4709165ede235fa9abbf1a726e9f0248d937818 (patch) | |
tree | 72092abca1a557a4aa22775d3ddfbef76209f2b9 /devel | |
parent | 23fe5d4a2a314aaaee94a5e57f21416a00c0cdbb (diff) | |
download | pkgsrc-f4709165ede235fa9abbf1a726e9f0248d937818.tar.gz |
Update to 0.51b3.
There is a reather long list of changes available in ${WRKSRC}/doc/ChangeLog.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/elfsh/Makefile | 23 | ||||
-rw-r--r-- | devel/elfsh/PLIST | 4 | ||||
-rw-r--r-- | devel/elfsh/distinfo | 12 | ||||
-rw-r--r-- | devel/elfsh/patches/patch-aa | 28 | ||||
-rw-r--r-- | devel/elfsh/patches/patch-ab | 45 | ||||
-rw-r--r-- | devel/elfsh/patches/patch-ac | 30 |
6 files changed, 82 insertions, 60 deletions
diff --git a/devel/elfsh/Makefile b/devel/elfsh/Makefile index e993e68ca99..5dc78681285 100644 --- a/devel/elfsh/Makefile +++ b/devel/elfsh/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2003/07/17 21:30:25 grant Exp $ +# $NetBSD: Makefile,v 1.6 2004/02/17 12:45:56 cube Exp $ # -VERS= 0.43b +VERS= 0.51b3 DISTNAME= ${PKGNAME}-portable PKGNAME= elfsh-${VERS} CATEGORIES= devel @@ -13,20 +13,29 @@ MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://devhell.org/projects/elfsh/ COMMENT= ELF format exploration shell -WRKSRC= ${WRKDIR}/elfsh_0.43 +WRKSRC= ${WRKDIR}/${PKGNAME} -USE_BUILDLINK2= yes +USE_BUILDLINK3= yes +USE_GNU_READLINE= yes + +SUBST_STAGE.elfsh= post-patch +SUBST_FILES.elfsh= vm/include/elfsh.h +SUBST_SED.elfsh= -e s,@@SH@@,${SH}, -e s,@@PREFIX@@,${PREFIX}, +SUBST_CLASSES+= elfsh # XXX This package should be converted to use libtool do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/elfsh/elfsh ${PREFIX}/bin/elfsh + ${INSTALL_PROGRAM} ${WRKSRC}/vm/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}/lib/elfsh + ${INSTALL_DATA} ${WRKSRC}/modules/modremap.so ${PREFIX}/lib/elfsh + ${INSTALL_DATA} ${WRKSRC}/modules/modtest.so ${PREFIX}/lib/elfsh ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/elfsh - ${INSTALL_DATA} ${WRKSRC}/doc/README ${PREFIX}/share/doc/elfsh/README + ${INSTALL_DATA} ${WRKSRC}/doc/elfsh-ref.txt ${PREFIX}/share/doc/elfsh/elfsh-ref.txt ${INSTALL_DATA} ${WRKSRC}/doc/libelfsh-ref.txt ${PREFIX}/share/doc/elfsh/libelfsh-ref.txt -.include "../../devel/readline/buildlink2.mk" +.include "../../devel/readline/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/elfsh/PLIST b/devel/elfsh/PLIST index 344b38679a2..03d16dff7da 100644 --- a/devel/elfsh/PLIST +++ b/devel/elfsh/PLIST @@ -1,8 +1,8 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ +@comment $NetBSD: PLIST,v 1.2 2004/02/17 12:45:56 cube Exp $ bin/elfsh lib/libelfsh.a lib/libelfsh.so include/libelfsh.h -share/doc/elfsh/README +share/doc/elfsh/elfsh-ref.txt share/doc/elfsh/libelfsh-ref.txt @unexec ${RMDIR} %D/share/doc/elfsh diff --git a/devel/elfsh/distinfo b/devel/elfsh/distinfo index 9cec4a39d4d..cc8b20825e1 100644 --- a/devel/elfsh/distinfo +++ b/devel/elfsh/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.2 2003/05/12 21:27:10 jmc Exp $ +$NetBSD: distinfo,v 1.3 2004/02/17 12:45:56 cube Exp $ -SHA1 (elfsh-0.43b-portable.tgz) = a4ccc9e8727409f65a3b9571455d7e2fea56e55b -Size (elfsh-0.43b-portable.tgz) = 101978 bytes -SHA1 (patch-aa) = 32c31367c920dde165a79464c984bfdb346598b5 -SHA1 (patch-ab) = 4d9e36b5f163c582d636256afff5b9f9460264eb -SHA1 (patch-ac) = 76b9926e1e3705be731784859304a168f211cf91 +SHA1 (elfsh-0.51b3-portable.tgz) = d8afc99cb2966710aa4b6a781ad9008bf0baaeb9 +Size (elfsh-0.51b3-portable.tgz) = 136679 bytes +SHA1 (patch-aa) = 0494158b7daf4d1b55984bf98c161bf70e114430 +SHA1 (patch-ab) = 4db74e87f1505e4bd0334060019944eccd9f5cd3 +SHA1 (patch-ac) = e60e109b4e2664619defc9a56616d1c7b7c3b35a diff --git a/devel/elfsh/patches/patch-aa b/devel/elfsh/patches/patch-aa index 754986eb82e..bf4936504ad 100644 --- a/devel/elfsh/patches/patch-aa +++ b/devel/elfsh/patches/patch-aa @@ -1,28 +1,28 @@ -$NetBSD: patch-aa,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ +$NetBSD: patch-aa,v 1.2 2004/02/17 12:45:56 cube Exp $ ---- libelfsh/Makefile.orig Thu Jun 6 05:03:44 2002 -+++ libelfsh/Makefile Mon May 5 12:26:36 2003 +--- libelfsh/Makefile.orig 2003-08-21 03:11:03.000000000 +0200 ++++ libelfsh/Makefile @@ -5,10 +5,10 @@ - ## Last update Wed Mar 27 12:06:42 2002 mayhem + ## Last update Tue Jun 3 09:30:50 2003 mayhem ## -CC = gcc -RM = rm -f -AR = ar rc --CFLAGS = -Iinclude -Wall -g3 -O2 +-CFLAGS = -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN +# CC = gcc +# RM = rm -f +# AR = ar rc -+CFLAGS += -Iinclude -Wall -g3 -O2 ++CFLAGS += -rdynamic -Iinclude -Wall -fPIC -g3 -O2 -DELFSH_INTERN 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 @@ + interp.c pht.c plt.c section.c sht.c error.c stab.c \ + symbol.c notes.c reloc.c blocks.c ctors.c dtors.c \ +@@ -22,7 +22,7 @@ RANLIB = ranlib all : $(OBJ) - $(CC) -shared $(OBJ) -o $(NAME).so -- $(AR) $(NAME).a $(OBJ) -+ $(AR) rc $(NAME).a $(OBJ) - $(RANLIB) $(NAME).a - + @$(CC) -shared $(OBJ) -o $(NAME).so #-lasm +- @$(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 index 4966355864d..d9ef41ffd4a 100644 --- a/devel/elfsh/patches/patch-ab +++ b/devel/elfsh/patches/patch-ab @@ -1,22 +1,35 @@ -$NetBSD: patch-ab,v 1.1.1.1 2003/05/05 10:57:05 mjl Exp $ +$NetBSD: patch-ab,v 1.2 2004/02/17 12:45:56 cube 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 +--- vm/Makefile.orig 2003-08-21 03:23:17.000000000 +0200 ++++ vm/Makefile +@@ -19,8 +19,8 @@ + #LDASMOPT = -lasm + + # Uncommant that to use libreadline +-#READLNOPT = -DUSE_READLN +-#LDREADLNOPT = -lreadline -ltermcap ++READLNOPT = -DUSE_READLN ++LDREADLNOPT = -lreadline -ltermcap + + + # End of configurable Makefile +@@ -36,15 +36,15 @@ SRC = grammar.c disasm.c dyn.c hdr.c m OBJ = $(SRC:.c=.o) + SRC_DYN = elfsh_etdyn.c + OBJ_DYN = $(SRC_DYN:.c=.o) -CC = gcc --NAME = elfsh --LDFLAGS = -L../libelfsh/ -lelfsh --CFLAGS = -Wall -Iinclude -I../libelfsh/include -g3 -O2 --RM = rm -f +-RM = rm -f +# CC = gcc ++# RM = rm -f 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) +-CFLAGS = -rdynamic -fPIC -g3 -O2 -Wall -Iinclude \ ++CFLAGS += -rdynamic -fPIC -g3 -O2 -Wall -Iinclude \ + -I../libhash/include/ -I../libelfsh/include/ \ + -DELFSH_INTERN $(DLOPT) $(ASMOPT) $(READLNOPT) + +-LDFLAGS = -L../libelfsh/ -lelfsh -L../libhash/ -lhashelfsh \ ++LDFLAGS += -L../libelfsh/ -lelfsh -L../libhash/ -lhashelfsh \ + -rdynamic -g3 $(LDASMOPT) $(LDREADLNOPT) $(DLOPT)\ + $(EXTRAOPT) + diff --git a/devel/elfsh/patches/patch-ac b/devel/elfsh/patches/patch-ac index 0e6fb742e96..3719e715e0a 100644 --- a/devel/elfsh/patches/patch-ac +++ b/devel/elfsh/patches/patch-ac @@ -1,17 +1,17 @@ -$NetBSD: patch-ac,v 1.1 2003/05/12 21:27:11 jmc Exp $ +$NetBSD: patch-ac,v 1.2 2004/02/17 12:45:56 cube Exp $ ---- elfsh/include/elfsh.h.orig Mon May 12 15:59:28 2003 -+++ elfsh/include/elfsh.h Mon May 12 16:00:27 2003 -@@ -15,7 +15,12 @@ +--- vm/include/elfsh.h.orig 2003-08-21 03:11:02.000000000 +0200 ++++ vm/include/elfsh.h +@@ -91,10 +91,10 @@ + #define ELFSH_SPACE ' ' + #define ELFSH_VERSION "0.51b3" + #define ELFSH_PROMPT "[ELFsh-"ELFSH_VERSION"]$ " +-#define ELFSH_SHELL "/bin/bash" ++#define ELFSH_SHELL "@@SH@@" + #define ELFSH_INIT "elfsh_init" + #define ELFSH_FINI "elfsh_fini" +-#define ELFSH_MODPATH "/usr/share/elfsh/" ++#define ELFSH_MODPATH "@@PREFIX@@/lib/elfsh/" - - #if defined(__NetBSD__) -+#include <sys/param.h> -+#if __NetBSD_Version__ < 106000000 - #include <readline.h> -+#else -+#include <readline/readline.h> -+#endif - #elif defined(__linux__) || defined(__FreeBSD__) | defined(sun) - #include <readline/readline.h> - #endif + /* For elfsh/elfsh/disasm.c:display_object() */ + #define ELFSH_HEXA_VIEW 0 |