summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-05-30 23:37:55 +0000
committerTim Harder <radhermit@gentoo.org>2011-05-30 23:37:55 +0000
commit29bb7bbd8d22ad17ab003472db62adc9f8165d10 (patch)
tree532499bdf80ae5dd86a92c0725779072be61fd3d /app-misc/binwalk/files
parentVersion bumped, bug #356959. Fixed to build with gcc-4.6, bug #365921. Added ... (diff)
downloadhistorical-29bb7bbd8d22ad17ab003472db62adc9f8165d10.tar.gz
historical-29bb7bbd8d22ad17ab003472db62adc9f8165d10.tar.bz2
historical-29bb7bbd8d22ad17ab003472db62adc9f8165d10.zip
Initial import.
Package-Manager: portage-2.2.0_alpha37/cvs/Linux x86_64
Diffstat (limited to 'app-misc/binwalk/files')
-rw-r--r--app-misc/binwalk/files/binwalk-0.3.0-makefile.patch29
1 files changed, 29 insertions, 0 deletions
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