summaryrefslogtreecommitdiff
path: root/packaging/fdupes.diff
blob: 3e8ffdb307ad22988c5f03f79f2307ecbba6884d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- Makefile
+++ Makefile
@@ -2,13 +2,13 @@
 # INSTALLDIR indicates directory where program is to be installed. 
 # Suggested values are "/usr/local/bin" or "/usr/bin".
 #
-INSTALLDIR = /usr/local/bin
+INSTALLDIR = /usr/bin
 
 #
 # MANPAGEDIR indicates directory where the fdupes man page is to be 
 # installed. Suggested values are "/usr/local/man" or "/usr/man".
 #
-MANPAGEDIR = /usr/local/man
+MANPAGEDIR = /usr/share/man
 
 #
 # VERSION determines the program's version number.
@@ -35,7 +35,7 @@
 #####################################################################
 
 fdupes: fdupes.c md5/md5.c	
-	gcc fdupes.c md5/md5.c -Wall -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
+	gcc fdupes.c md5/md5.c $(RPM_OPT_FLAGS) -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
 
 install: fdupes
 	cp fdupes $(INSTALLDIR)
--- md5/md5.c
+++ md5/md5.c
@@ -39,6 +39,7 @@
  */
 
 #include "md5.h"
+#include <string.h>
 
 #ifdef TEST
 /*
@@ -46,7 +47,6 @@
  * The test program should print out the same values as given in section
  * A.5 of RFC 1321, reproduced below.
  */
-#include <string.h>
 main()
 {
     static const char *const test[7] = {