summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/samdump2/files/2.0.1-makefile.patch')
-rw-r--r--app-crypt/samdump2/files/2.0.1-makefile.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-crypt/samdump2/files/2.0.1-makefile.patch b/app-crypt/samdump2/files/2.0.1-makefile.patch
new file mode 100644
index 0000000..7fe240e
--- /dev/null
+++ b/app-crypt/samdump2/files/2.0.1-makefile.patch
@@ -0,0 +1,29 @@
+--- Makefile.orig 2009-09-05 13:02:10.239693713 +0200
++++ Makefile 2009-09-05 13:07:57.573849637 +0200
+@@ -24,13 +24,13 @@
+ samdump2.1 samdump2.h bkhive.c COPYING hive.h list.c\
+ main.c README samdump2.c
+ DESTDIR =
+-PREFIX = /usr/local/
++PREFIX ?= /usr/local/
+ BINDIR = $(PREFIX)/bin
+ MANDIR = $(PREFIX)/share/man/man1
+ INSTALL = $(shell which install)
+-CC = $(shell which gcc)
+-CFLAGS = -Wall
+-LIBS = -lssl
++CC ?= $(shell which gcc)
++CFLAGS ?= -Wall
++LIBS = $(shell pkg-config --libs openssl)
+
+ # Default target
+ all: build
+@@ -39,7 +39,7 @@
+
+ samdump2: hive.o list.o bkhive.o samdump2.o main.o
+ @echo "Building binary..."
+- $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+ @echo ""
+
+ # Clean target