summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2001-04-10 19:51:45 +0000
committerWill Andrews <will@FreeBSD.org>2001-04-10 19:51:45 +0000
commit31dc0bd1fb33fc1dc1eaaedb2343988b875563e8 (patch)
treeb073eed363ee8a7d5e1cf11bad7367da7de28a33 /sysutils
parentAdd imagesort 2.0, a flexible X utility for managing many image files. (diff)
Add filedupe 1.1, a utility for quickly finding duplicate files.
PR: 26483 Submitted by: Mark Pulford <mark@kyne.com.au>
Notes
Notes: svn path=/head/; revision=41221
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/filedupe/Makefile20
-rw-r--r--sysutils/filedupe/distinfo1
-rw-r--r--sysutils/filedupe/files/patch-Makefile12
-rw-r--r--sysutils/filedupe/files/patch-filedupe.c11
-rw-r--r--sysutils/filedupe/pkg-comment1
-rw-r--r--sysutils/filedupe/pkg-descr6
-rw-r--r--sysutils/filedupe/pkg-plist1
8 files changed, 53 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 3983396e7854..be8dbd5650d4 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -39,6 +39,7 @@
SUBDIR += extipl
SUBDIR += fcron
SUBDIR += ffsrecov
+ SUBDIR += filedupe
SUBDIR += fileutils
SUBDIR += flexbackup
SUBDIR += fontedit
diff --git a/sysutils/filedupe/Makefile b/sysutils/filedupe/Makefile
new file mode 100644
index 000000000000..5498b7dad8d8
--- /dev/null
+++ b/sysutils/filedupe/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: filedupe
+# Date created: Apr 10, 2001
+# Whom: Mark Pulford <mark@kyne.com.au>
+#
+# $FreeBSD$
+#
+
+PORTNAME= filedupe
+PORTVERSION= 1.1
+CATEGORIES= sysutils
+MASTER_SITES= http://sammy.net/~sammy/hacks/
+
+MAINTAINER= mark@kyne.com.au
+
+LIB_DEPENDS= gdbm.2:${PORTSDIR}/databases/gdbm
+
+do-install:
+ $(INSTALL_PROGRAM) ${WRKSRC}/filedupe ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/sysutils/filedupe/distinfo b/sysutils/filedupe/distinfo
new file mode 100644
index 000000000000..b92944e6c69c
--- /dev/null
+++ b/sysutils/filedupe/distinfo
@@ -0,0 +1 @@
+MD5 (filedupe-1.1.tar.gz) = c6fa99329cb84fdf3dc583f59dec2efe
diff --git a/sysutils/filedupe/files/patch-Makefile b/sysutils/filedupe/files/patch-Makefile
new file mode 100644
index 000000000000..f5451561e2f4
--- /dev/null
+++ b/sysutils/filedupe/files/patch-Makefile
@@ -0,0 +1,12 @@
+--- Makefile.orig Wed Apr 11 00:25:08 2001
++++ Makefile Wed Apr 11 00:26:11 2001
+@@ -1,8 +1,4 @@
+-
+-CC=gcc -g
+-LD=gcc -g
+-
+ all: filedupe
+
+ filedupe: md5.o filedupe.o
+- $(LD) -o filedupe md5.o filedupe.o -lgdbm
++ $(CC) -o filedupe md5.o filedupe.o -L$(LOCALBASE)/lib -lgdbm
diff --git a/sysutils/filedupe/files/patch-filedupe.c b/sysutils/filedupe/files/patch-filedupe.c
new file mode 100644
index 000000000000..7a577cd74f86
--- /dev/null
+++ b/sysutils/filedupe/files/patch-filedupe.c
@@ -0,0 +1,11 @@
+--- filedupe.c.orig Wed Apr 11 00:27:15 2001
++++ filedupe.c Wed Apr 11 00:27:32 2001
+@@ -8,7 +8,7 @@
+
+ #include "md5.h"
+
+-#define DBNAME "your_database"
++#define DBNAME "/var/db/filedupe.db"
+
+ int lookup(void *md5sum, int size);
+ int addfile(void *md5sum, int size);
diff --git a/sysutils/filedupe/pkg-comment b/sysutils/filedupe/pkg-comment
new file mode 100644
index 000000000000..b9b62dd90bf5
--- /dev/null
+++ b/sysutils/filedupe/pkg-comment
@@ -0,0 +1 @@
+A utility for quickly finding duplicate files
diff --git a/sysutils/filedupe/pkg-descr b/sysutils/filedupe/pkg-descr
new file mode 100644
index 000000000000..3481917115ee
--- /dev/null
+++ b/sysutils/filedupe/pkg-descr
@@ -0,0 +1,6 @@
+Filedupe is a utility to assist in finding any duplicates as you
+accumulate files. It stores md5 hashes of all the files seen in a
+system wide database (/var/db/filedupe.db) so it can quickly spot any
+duplicates.
+
+WWW: http://sammy.net/~sammy/hacks/
diff --git a/sysutils/filedupe/pkg-plist b/sysutils/filedupe/pkg-plist
new file mode 100644
index 000000000000..df364c5e5442
--- /dev/null
+++ b/sysutils/filedupe/pkg-plist
@@ -0,0 +1 @@
+bin/filedupe