aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-01-19 01:06:38 +0800
committerpav <pav@FreeBSD.org>2005-01-19 01:06:38 +0800
commit8dded214dc65c7dac678d2a4035935cfcc726753 (patch)
treee63e619ec70596683b80081daf67e09fde288e3d /sysutils
parent2d39dd9d84e66400eea588c05dd03c0fec72f239 (diff)
downloadfreebsd-ports-gnome-8dded214dc65c7dac678d2a4035935cfcc726753.tar.gz
freebsd-ports-gnome-8dded214dc65c7dac678d2a4035935cfcc726753.tar.zst
freebsd-ports-gnome-8dded214dc65c7dac678d2a4035935cfcc726753.zip
Add fdupes, a program for identifying or deleting duplicate files residing
within specified directories. PR: ports/75546 Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/fdupes/Makefile36
-rw-r--r--sysutils/fdupes/distinfo2
-rw-r--r--sysutils/fdupes/pkg-descr4
4 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index eddba83fa368..c4f332dcac88 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -123,6 +123,7 @@
SUBDIR += extipl
SUBDIR += fastest_cvsup
SUBDIR += fcron
+ SUBDIR += fdupes
SUBDIR += fetchlog
SUBDIR += ffsrecov
SUBDIR += file
diff --git a/sysutils/fdupes/Makefile b/sysutils/fdupes/Makefile
new file mode 100644
index 000000000000..9758f20f9ac6
--- /dev/null
+++ b/sysutils/fdupes/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: fdupes
+# Date created: 27 December 2004
+# Whom: Emanuel Haupt <ehaupt@critical.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= fdupes
+PORTVERSION= 1.40
+CATEGORIES= sysutils
+MASTER_SITES= http://netdial.caribe.net/~adrian2/programs/
+
+MAINTAINER= ehaupt@critical.ch
+COMMENT= Fdupes is a program for identifying or deleting duplicate files
+
+USE_GETOPT_LONG= yes
+
+MAN1= fdupes.1
+PLIST_FILES= bin/fdupes
+
+.include <bsd.port.pre.mk>
+
+CFLAGS+= -DHAVE_DECL_GETOPT
+
+do-build:
+.if ${OSVERSION} < 500041
+ ${CC} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c ${WRKSRC}/md5/md5.c -o ${WRKSRC}/${PORTNAME} -DVERSION=\"${PORTVERSION}\" -I${LOCALBASE}/include ${LOCALBASE}/lib/libgnugetopt.so
+.else
+ ${CC} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c ${WRKSRC}/md5/md5.c -o ${WRKSRC}/${PORTNAME} -DVERSION=\"${PORTVERSION}\"
+.endif
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/fdupes/distinfo b/sysutils/fdupes/distinfo
new file mode 100644
index 000000000000..0679984a37dc
--- /dev/null
+++ b/sysutils/fdupes/distinfo
@@ -0,0 +1,2 @@
+MD5 (fdupes-1.40.tar.gz) = 11de9ab4466089b6acbb62816b30b189
+SIZE (fdupes-1.40.tar.gz) = 16026
diff --git a/sysutils/fdupes/pkg-descr b/sysutils/fdupes/pkg-descr
new file mode 100644
index 000000000000..65f3d320b175
--- /dev/null
+++ b/sysutils/fdupes/pkg-descr
@@ -0,0 +1,4 @@
+FDUPES is a program for identifying or deleting duplicate files residing within
+specified directories.
+
+WWW: http://netdial.caribe.net/~adrian2/fdupes.html