summaryrefslogtreecommitdiff
path: root/sysutils/fdupes/patches
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-12-17 11:56:26 +0000
committerobache <obache@pkgsrc.org>2008-12-17 11:56:26 +0000
commit743ce92c3cb4a010c587f7ffbb4c3ce078b949ec (patch)
treea2cb03da41a52b0a5227628f91fad5da6708abea /sysutils/fdupes/patches
parenteeac58217a3be3d3a01095e6e3d99b8703e7cc6c (diff)
downloadpkgsrc-743ce92c3cb4a010c587f7ffbb4c3ce078b949ec.tar.gz
Import fdupes-1.40 as sysutils/fdupes.
Based on PR 39977 by Edgar Fuss. FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
Diffstat (limited to 'sysutils/fdupes/patches')
-rw-r--r--sysutils/fdupes/patches/patch-aa22
-rw-r--r--sysutils/fdupes/patches/patch-ab21
-rw-r--r--sysutils/fdupes/patches/patch-ac15
3 files changed, 58 insertions, 0 deletions
diff --git a/sysutils/fdupes/patches/patch-aa b/sysutils/fdupes/patches/patch-aa
new file mode 100644
index 00000000000..61943dd0866
--- /dev/null
+++ b/sysutils/fdupes/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/12/17 11:56:26 obache Exp $
+
+--- fdupes.c.orig 2001-03-15 02:16:09.000000000 +0000
++++ fdupes.c
+@@ -588,7 +588,7 @@ void printmatches(file_t *files)
+ while (files != NULL) {
+ if (files->hasdupes) {
+ if (!ISFLAG(flags, F_OMITFIRST)) {
+- if (ISFLAG(flags, F_SHOWSIZE)) printf("%ld byte%seach:\n", files->size,
++ if (ISFLAG(flags, F_SHOWSIZE)) printf("%ld byte%seach:\n", (long)files->size,
+ (files->size != 1) ? "s " : " ");
+ if (ISFLAG(flags, F_DSAMELINE)) escapefilename("\\ ", &files->d_name);
+ printf("%s%c", files->d_name, ISFLAG(flags, F_DSAMELINE)?' ':'\n');
+@@ -676,7 +676,7 @@ void autodelete(file_t *files)
+ do {
+ printf("Set %d of %d, preserve files [1 - %d, all]",
+ curgroup, groups, counter);
+- if (ISFLAG(flags, F_SHOWSIZE)) printf(" (%ld byte%seach)", files->size,
++ if (ISFLAG(flags, F_SHOWSIZE)) printf(" (%ld byte%seach)", (long)files->size,
+ (files->size != 1) ? "s " : " ");
+ printf(": ");
+ fflush(stdout);
diff --git a/sysutils/fdupes/patches/patch-ab b/sysutils/fdupes/patches/patch-ab
new file mode 100644
index 00000000000..767fbe8fdf7
--- /dev/null
+++ b/sysutils/fdupes/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/12/17 11:56:26 obache Exp $
+
+--- md5/md5.c.orig 1999-11-05 01:04:36.000000000 +0000
++++ md5/md5.c
+@@ -38,6 +38,8 @@
+ 1999-05-03 lpd Original version.
+ */
+
++#include <string.h>
++
+ #include "md5.h"
+
+ #ifdef TEST
+@@ -46,7 +48,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] = {
diff --git a/sysutils/fdupes/patches/patch-ac b/sysutils/fdupes/patches/patch-ac
new file mode 100644
index 00000000000..4b9cf1b465a
--- /dev/null
+++ b/sysutils/fdupes/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1.1.1 2008/12/17 11:56:26 obache Exp $
+
+--- Makefile.orig 2001-03-15 02:49:11.000000000 +0000
++++ Makefile
+@@ -38,8 +38,8 @@ fdupes: fdupes.c md5/md5.c
+ gcc fdupes.c md5/md5.c -Wall -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
+
+ install: fdupes
+- cp fdupes $(INSTALLDIR)
+- cp fdupes.1 $(MANPAGEDIR)/man1
++ ${BSD_INSTALL_PROGRAM} fdupes ${DESTDIR}$(INSTALLDIR)
++ ${BSD_INSTALL_MAN} fdupes.1 ${DESTDIR}$(MANPAGEDIR)/man1
+
+ tarball: clean
+ tar --directory=.. -c -z -v -f ../fdupes-$(VERSION).tar.gz fdupes-$(VERSION)