From 56a22e7a5698df5c030943565a0fb11d45acef76 Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Tue, 13 Jan 2009 15:42:55 +0000 Subject: Dupmerge reads a list of files from standard input (eg., as produced by "find . -print") and looks securely for identical files. When it finds two or more identical files, all but one are unlinked to reclaim the disk space and recreated as hard links to the remaining copy. WWW: http://sourceforge.net/projects/dupmerge --- sysutils/dupmerge/Makefile | 33 ++++++++++++++++++++++++++++++++ sysutils/dupmerge/distinfo | 3 +++ sysutils/dupmerge/files/patch-dupmerge.c | 10 ++++++++++ sysutils/dupmerge/pkg-descr | 6 ++++++ 4 files changed, 52 insertions(+) create mode 100644 sysutils/dupmerge/Makefile create mode 100644 sysutils/dupmerge/distinfo create mode 100644 sysutils/dupmerge/files/patch-dupmerge.c create mode 100644 sysutils/dupmerge/pkg-descr (limited to 'sysutils/dupmerge') diff --git a/sysutils/dupmerge/Makefile b/sysutils/dupmerge/Makefile new file mode 100644 index 000000000000..db86565159e9 --- /dev/null +++ b/sysutils/dupmerge/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: dupmerge +# Date created: 12 Jan 2009 +# Whom: dirk.meyer@dinoex.sub.org +# +# $FreeBSD$ +# + +PORTNAME= dupmerge +PORTVERSION= 1.73 +CATEGORIES= sysutils +MASTER_SITES= SF +DISTNAME= ${PORTNAME}_${PORTVERSION} + +MAINTAINER= dinoex@FreeBSD.org +COMMENT= Searches for files with equal content + +USE_ZIP= yes +MAKE_FLAGS= +MAKEFILE= +LDFLAGS+= -lroken -lcrypt +MAKE_ENV+= LDFLAGS="${LDFLAGS}" +ALL_TARGET= dupmerge +PLIST_FILES= bin/dupmerge +PORTDOCS= readme.txt + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dupmerge ${PREFIX}/bin/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}/ +.endif + +.include diff --git a/sysutils/dupmerge/distinfo b/sysutils/dupmerge/distinfo new file mode 100644 index 000000000000..63c3ce6c8da9 --- /dev/null +++ b/sysutils/dupmerge/distinfo @@ -0,0 +1,3 @@ +MD5 (dupmerge_1.73.zip) = 0c50ce2877be34ced391ec32b30324a6 +SHA256 (dupmerge_1.73.zip) = c8bea34351b12f9aa053298c3b6555f89aa7d4a2f6ad97ac8782a16ffeea4386 +SIZE (dupmerge_1.73.zip) = 25107 diff --git a/sysutils/dupmerge/files/patch-dupmerge.c b/sysutils/dupmerge/files/patch-dupmerge.c new file mode 100644 index 000000000000..8c226c5f4de1 --- /dev/null +++ b/sysutils/dupmerge/files/patch-dupmerge.c @@ -0,0 +1,10 @@ +--- dupmerge.c.orig 2008-03-01 17:46:41.000000000 +0100 ++++ dupmerge.c 2009-01-13 15:15:07.000000000 +0100 +@@ -125,6 +125,7 @@ + #include // vfork + #include // localtime + ++#include + + #define mc_MIN(a, b) ((a) < (b) ? (a) : (b)) + #define mc_MAX(a, b) ((a) > (b) ? (a) : (b)) diff --git a/sysutils/dupmerge/pkg-descr b/sysutils/dupmerge/pkg-descr new file mode 100644 index 000000000000..97c221edca04 --- /dev/null +++ b/sysutils/dupmerge/pkg-descr @@ -0,0 +1,6 @@ +Dupmerge reads a list of files from standard input (eg., as produced by +"find . -print") and looks securely for identical files. When it finds +two or more identical files, all but one are unlinked to reclaim the +disk space and recreated as hard links to the remaining copy. + +WWW: http://sourceforge.net/projects/dupmerge -- cgit v1.2.3