F R E E D U P - allows you to reclaim space on your drive. It's simple.
=============================================================================== Freedup walks through the file trees (directories) you specify. When it finds two identical files on the same device, it hard links them together. In this case two or more files still exist in their respective directories, but only one copy of the data is stored on disk; both directory entries point to the same data blocks. [FREEDUP IN ACTION] If both files reside on different devices, then they are symlinked together. Please see the Syntax_page for instructions, how to modify the bahaviour of freedup.
This commit is contained in:
parent
e7bc2f0296
commit
1a18924a8e
7 changed files with 107 additions and 0 deletions
12
freedup/DESCR
Normal file
12
freedup/DESCR
Normal file
|
@ -0,0 +1,12 @@
|
|||
F R E E D U P - allows you to reclaim space on your drive. It's simple.
|
||||
===============================================================================
|
||||
Freedup walks through the file trees (directories) you specify.
|
||||
When it finds two identical files on the same device, it hard links them
|
||||
together.
|
||||
In this case two or more files still exist in their respective directories,
|
||||
but only one copy of the data is stored on disk; both directory entries point
|
||||
to the same data blocks.
|
||||
[FREEDUP IN ACTION]
|
||||
If both files reside on different devices, then they are symlinked together.
|
||||
Please see the Syntax_page for instructions, how to modify the bahaviour of
|
||||
freedup.
|
27
freedup/Makefile
Normal file
27
freedup/Makefile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2007/12/18 09:38:17 ahallmann Exp $
|
||||
#
|
||||
|
||||
DISTNAME= freedup-1.3-1-src
|
||||
PKGNAME= freedup-1.3
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://freedup.org/
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
MAINTAINER= hallmann@ahatec.de
|
||||
HOMEPAGE= http://freedup.org/
|
||||
COMMENT= Free disk space by hard linking duplicate files.
|
||||
USE_TOOLS+= gmake
|
||||
|
||||
WRKSRC= ${WRKDIR}/freedup-1.3
|
||||
MAKE_ENV+= BIN_DIR=${PREFIX:Q}/bin
|
||||
MAKE_ENV+= MAN_DIR=${PREFIX:Q}/${PKGMANDIR}
|
||||
|
||||
DEPENDS+= coreutils>=6.9:../../sysutils/coreutils
|
||||
|
||||
SUBST_CLASSES+= fix-paths
|
||||
SUBST_STAGE.fix-paths+= pre-configure
|
||||
SUBST_MESSAGE.fix-paths+= Fixing absolute paths.
|
||||
SUBST_FILES.fix-paths= freedup.h
|
||||
SUBST_SED.fix-paths= -e 's,/usr/bin/,${PREFIX}/bin/g,g'
|
||||
|
||||
.include "../../mk/bsd.pkg.mk"
|
3
freedup/PLIST
Normal file
3
freedup/PLIST
Normal file
|
@ -0,0 +1,3 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2007/12/18 09:38:17 ahallmann Exp $
|
||||
bin/freedup
|
||||
man/man1/freedup.1
|
8
freedup/distinfo
Normal file
8
freedup/distinfo
Normal file
|
@ -0,0 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2007/12/18 09:38:17 ahallmann Exp $
|
||||
|
||||
SHA1 (freedup-1.3-1-src.tar.bz2) = 6a8b0630a5d3af53e8a2a3921833270923653e64
|
||||
RMD160 (freedup-1.3-1-src.tar.bz2) = a6a2cdea474bb53e2f8263fe1b879ae17922ccc4
|
||||
Size (freedup-1.3-1-src.tar.bz2) = 157695 bytes
|
||||
SHA1 (patch-aa) = 4ccd642134ed7fd911b774562407fd5ff837a6d2
|
||||
SHA1 (patch-ab) = 8b40d14a5efea8139025271591f84f638222e6ad
|
||||
SHA1 (patch-ac) = 2ad13ac8923a8cf1039d5d08cdfbe7591d5610ea
|
22
freedup/patches/patch-aa
Normal file
22
freedup/patches/patch-aa
Normal file
|
@ -0,0 +1,22 @@
|
|||
$NetBSD: patch-aa,v 1.1.1.1 2007/12/18 09:38:17 ahallmann Exp $
|
||||
|
||||
--- Makefile.NetBSD.orig 2007-12-18 10:10:34.000000000 +0100
|
||||
+++ Makefile.NetBSD
|
||||
@@ -0,0 +1,17 @@
|
||||
+#
|
||||
+# NetBSD specific definitions
|
||||
+#
|
||||
+FREEDUPEXE=./freedup
|
||||
+SHATESTEXE=./sha1test
|
||||
+ECHOE=echo -e
|
||||
+MAKE=make
|
||||
+#CC=gcc
|
||||
+DEFS=-DFLAVOUR="\"b\""
|
||||
+RPMBUILD=/usr/src/packages
|
||||
+#
|
||||
+# Uncritial definitions for testing
|
||||
+#
|
||||
+TUSR=bin
|
||||
+TGRP=bin
|
||||
+DCOL="\:"
|
||||
+
|
13
freedup/patches/patch-ab
Normal file
13
freedup/patches/patch-ab
Normal file
|
@ -0,0 +1,13 @@
|
|||
$NetBSD: patch-ab,v 1.1.1.1 2007/12/18 09:38:17 ahallmann Exp $
|
||||
|
||||
--- freedup.h.orig 2007-12-18 10:13:34.000000000 +0100
|
||||
+++ freedup.h
|
||||
@@ -12,7 +12,7 @@
|
||||
* for no hash comparison #undef MD5SUM
|
||||
*/
|
||||
#else
|
||||
-# if !defined(_AIX)
|
||||
+# if !defined(_AIX) && !defined(__NetBSD__)
|
||||
# include <linux/stat.h>
|
||||
# endif
|
||||
# define HASHCHAR ' '
|
22
freedup/patches/patch-ac
Normal file
22
freedup/patches/patch-ac
Normal file
|
@ -0,0 +1,22 @@
|
|||
$NetBSD: patch-ac,v 1.1.1.1 2007/12/18 09:38:17 ahallmann Exp $
|
||||
|
||||
--- Makefile.orig 2007-12-15 15:23:01.000000000 +0100
|
||||
+++ Makefile
|
||||
@@ -16,7 +16,7 @@ CFLAGS=-g3 -Wall -pedantic -D_LARGEFILE_
|
||||
# Suggested values are "/usr/local/bin" or "/usr/bin".
|
||||
#
|
||||
INSTALL = install
|
||||
-INSTALLDIR = $(PRE)/usr/bin
|
||||
+INSTALLDIR = $(BIN_DIR)
|
||||
INSTBINMODE = 755
|
||||
INSTDOCMODE = 755
|
||||
INSTALLOWN = root
|
||||
@@ -26,7 +26,7 @@ INSTALLGRP = root
|
||||
# MANPAGEDIR indicates directory where the fdupes man page is to be
|
||||
# installed. Suggested values are "/usr/local/man" or "/usr/man".
|
||||
#
|
||||
-MANPAGEDIR = $(PRE)/usr/share/man
|
||||
+MANPAGEDIR = $(MAN_DIR)
|
||||
|
||||
#
|
||||
# VERSION determines the program's version number.
|
Loading…
Reference in a new issue