diff options
author | dinoex <dinoex@FreeBSD.org> | 2009-01-13 23:42:55 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2009-01-13 23:42:55 +0800 |
commit | 2c637a569965dd60a9668029df06d6a4e108cff3 (patch) | |
tree | d2fe6876d3653601ac7179f98150e1103c8e2ddf /sysutils/dupmerge | |
parent | 5b8f2754cdd11e495709ac999c48d71d83f370f7 (diff) | |
download | freebsd-ports-gnome-2c637a569965dd60a9668029df06d6a4e108cff3.tar.gz freebsd-ports-gnome-2c637a569965dd60a9668029df06d6a4e108cff3.tar.zst freebsd-ports-gnome-2c637a569965dd60a9668029df06d6a4e108cff3.zip |
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
Diffstat (limited to 'sysutils/dupmerge')
-rw-r--r-- | sysutils/dupmerge/Makefile | 33 | ||||
-rw-r--r-- | sysutils/dupmerge/distinfo | 3 | ||||
-rw-r--r-- | sysutils/dupmerge/files/patch-dupmerge.c | 10 | ||||
-rw-r--r-- | sysutils/dupmerge/pkg-descr | 6 |
4 files changed, 52 insertions, 0 deletions
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 <bsd.port.mk> 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 <sys/wait.h> // vfork + #include <time.h> // localtime + ++#include <roken.h> + + #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 |