bcrypt (1.1-6) direct (non packaging) changes

Summary

 Makefile |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

    
download this patch

Patch contents

--- bcrypt-1.1.orig/Makefile
+++ bcrypt-1.1/Makefile
@@ -4,18 +4,18 @@
 COMPILE = ${CC} ${CFLAGS}
 OBJS = main.o blowfish.o rwfile.o keys.o wrapbf.o endian.o wrapzl.o
 LDFLAGS = -L/usr/local/lib -lz 
-PREFIX = /usr/local
+PREFIX = ${DESTDIR}/usr/
 
 bcrypt:	${OBJS} Makefile
 	${COMPILE} -o bcrypt ${OBJS} ${LDFLAGS}
 
 install:	bcrypt Makefile
 	mkdir -p ${PREFIX}/bin;\
-	mkdir -p ${PREFIX}/man/man1;\
+	mkdir -p ${PREFIX}/share/man/man1;\
 	cp bcrypt ${PREFIX}/bin;\
-	cp bcrypt.1 ${PREFIX}/man/man1;\
+	cp bcrypt.1 ${PREFIX}/share/man/man1;\
 	chmod 755 ${PREFIX}/bin/bcrypt;\
-	chmod 644 ${PREFIX}/man/man1/bcrypt.1
+	chmod 644 ${PREFIX}/share/man/man1/bcrypt.1
 
 main.o:	main.c ${DEFAULTS}
 	${COMPILE} -c main.c
@@ -38,6 +38,8 @@
 endian.o:	endian.c ${DEFAULTS}
 	${COMPILE} -c endian.c
 
+distclean: clean
+	
 clean:
 	rm -rf *.o bcrypt bcrypt.core core bcrypt.tgz