From 29bb7bbd8d22ad17ab003472db62adc9f8165d10 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Mon, 30 May 2011 23:37:55 +0000 Subject: Initial import. Package-Manager: portage-2.2.0_alpha37/cvs/Linux x86_64 --- .../binwalk/files/binwalk-0.3.0-makefile.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app-misc/binwalk/files/binwalk-0.3.0-makefile.patch (limited to 'app-misc/binwalk/files') diff --git a/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch b/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch new file mode 100644 index 000000000000..8afa140ce48e --- /dev/null +++ b/app-misc/binwalk/files/binwalk-0.3.0-makefile.patch @@ -0,0 +1,29 @@ +--- binwalk-0.3.0/src/Makefile.orig ++++ binwalk-0.3.0/src/Makefile +@@ -7,7 +7,7 @@ + OUTDIR=../bin + + $(TARGET): md5.o mparse.o +- $(CC) $(TARGET).c -o $(TARGET) *.o -lmagic -lz $(CFLAGS) ++ $(CC) $(TARGET).c -o $(TARGET) *.o -lmagic -lz $(CFLAGS) $(LDFLAGS) + cp $(TARGET) $(OUTDIR) + + md5.o: +@@ -17,12 +17,13 @@ + $(CC) -c mparse.c $(CFLAGS) + + install: +- if ! test -d $(ETC); then mkdir $(ETC); fi +- cp $(MAGIC) $(ETC)/$(MAGIC) +- cp $(OUTDIR)/$(TARGET) $(BIN)/$(TARGET) ++ if ! test -d $(DESTDIR)$(ETC); then mkdir -p $(DESTDIR)$(ETC); fi ++ if ! test -d $(DESTDIR)$(BIN); then mkdir -p $(DESTDIR)$(BIN); fi ++ cp $(MAGIC) $(DESTDIR)$(ETC)/$(MAGIC) ++ cp $(OUTDIR)/$(TARGET) $(DESTDIR)$(BIN)/$(TARGET) + + remove: +- rm -rf $(ETC) $(BIN)/$(TARGET) ++ rm -rf $(DESTDIR)$(ETC) $(DESTDIR)$(BIN)/$(TARGET) + + clean: + rm -f $(TARGET) *.o -- cgit v1.2.3-65-gdbad