head 1.5; access; symbols pkgsrc-2020Q1:1.3.0.14 pkgsrc-2020Q1-base:1.3 pkgsrc-2019Q4:1.3.0.36 pkgsrc-2019Q4-base:1.3 pkgsrc-2019Q3:1.3.0.32 pkgsrc-2019Q3-base:1.3 pkgsrc-2019Q2:1.3.0.30 pkgsrc-2019Q2-base:1.3 pkgsrc-2019Q1:1.3.0.28 pkgsrc-2019Q1-base:1.3 pkgsrc-2018Q4:1.3.0.26 pkgsrc-2018Q4-base:1.3 pkgsrc-2018Q3:1.3.0.24 pkgsrc-2018Q3-base:1.3 pkgsrc-2018Q2:1.3.0.22 pkgsrc-2018Q2-base:1.3 pkgsrc-2018Q1:1.3.0.20 pkgsrc-2018Q1-base:1.3 pkgsrc-2017Q4:1.3.0.18 pkgsrc-2017Q4-base:1.3 pkgsrc-2017Q3:1.3.0.16 pkgsrc-2017Q3-base:1.3 pkgsrc-2017Q2:1.3.0.12 pkgsrc-2017Q2-base:1.3 pkgsrc-2017Q1:1.3.0.10 pkgsrc-2017Q1-base:1.3 pkgsrc-2016Q4:1.3.0.8 pkgsrc-2016Q4-base:1.3 pkgsrc-2016Q3:1.3.0.6 pkgsrc-2016Q3-base:1.3 pkgsrc-2016Q2:1.3.0.4 pkgsrc-2016Q2-base:1.3 pkgsrc-2016Q1:1.3.0.2 pkgsrc-2016Q1-base:1.3 pkgsrc-2015Q4:1.2.0.2 pkgsrc-2015Q4-base:1.2 pkgsrc-2015Q3:1.1.1.1.0.56 pkgsrc-2015Q3-base:1.1.1.1 pkgsrc-2015Q2:1.1.1.1.0.54 pkgsrc-2015Q2-base:1.1.1.1 pkgsrc-2015Q1:1.1.1.1.0.52 pkgsrc-2015Q1-base:1.1.1.1 pkgsrc-2014Q4:1.1.1.1.0.50 pkgsrc-2014Q4-base:1.1.1.1 pkgsrc-2014Q3:1.1.1.1.0.48 pkgsrc-2014Q3-base:1.1.1.1 pkgsrc-2014Q2:1.1.1.1.0.46 pkgsrc-2014Q2-base:1.1.1.1 pkgsrc-2014Q1:1.1.1.1.0.44 pkgsrc-2014Q1-base:1.1.1.1 pkgsrc-2013Q4:1.1.1.1.0.42 pkgsrc-2013Q4-base:1.1.1.1 pkgsrc-2013Q3:1.1.1.1.0.40 pkgsrc-2013Q3-base:1.1.1.1 pkgsrc-2013Q2:1.1.1.1.0.38 pkgsrc-2013Q2-base:1.1.1.1 pkgsrc-2013Q1:1.1.1.1.0.36 pkgsrc-2013Q1-base:1.1.1.1 pkgsrc-2012Q4:1.1.1.1.0.34 pkgsrc-2012Q4-base:1.1.1.1 pkgsrc-2012Q3:1.1.1.1.0.32 pkgsrc-2012Q3-base:1.1.1.1 pkgsrc-2012Q2:1.1.1.1.0.30 pkgsrc-2012Q2-base:1.1.1.1 pkgsrc-2012Q1:1.1.1.1.0.28 pkgsrc-2012Q1-base:1.1.1.1 pkgsrc-2011Q4:1.1.1.1.0.26 pkgsrc-2011Q4-base:1.1.1.1 pkgsrc-2011Q3:1.1.1.1.0.24 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.22 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.20 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.18 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.16 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.14 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.12 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.10 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.8 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.6 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.4 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.2 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.5 date 2020.04.03.22.11.48; author wiz; state dead; branches; next 1.4; commitid CxbgA0AJMRe4nZ2C; 1.4 date 2020.04.03.22.06.17; author wiz; state Exp; branches; next 1.3; commitid yyuH3X0D0rWglZ2C; 1.3 date 2016.04.01.11.12.27; author jperkin; state Exp; branches; next 1.2; commitid u2ZJJQyePWkBKU0z; 1.2 date 2015.12.12.04.00.30; author kamil; state Exp; branches; next 1.1; commitid uvKlg70g9vHJUBMy; 1.1 date 2008.12.17.11.56.26; author obache; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.12.17.11.56.26; author obache; state Exp; branches; next ; desc @@ 1.5 log @fdupes: update to 2.0.0. Changes from 1.6.1 to 2.0.0: Add ncurses mode for interactive file deletion (plain mode still available via --plain or ./configure). Add --minsize option. Add --maxsize option. Add --time option. Add --order=ctime option. Add --log option. Use configure script for installation (Autotools/Automake). Changes from version 1.6.0 to 1.6.1: Fix 'invalid option' error for -I. Changes from 1.51 to 1.6.0: Add --nohidden option. Add --permissions option. Add --order option. Add --reverse option. Add --immediate option. Speed up file comparison. Fix bug where fdupes fails to consistently ignore hardlinks, depending on file processing order, when F_CONSIDERHARDLINKS flag is not set. Fix bug in is_hardlink(): Proper traversal of duplicates is done via dupe->duplicates, not via dupe->next. Revise md5.c to compile under OSX. Remove EXTERNAL_MD5 configuration option. Various other changes (see git log). @ text @$NetBSD: patch-ac,v 1.4 2020/04/03 22:06:17 wiz Exp $ Fix various target paths. Add a rule in order not to depend on gmake. Honor CFLAGS and LDFLAGS. --- Makefile.orig 2013-04-20 17:51:58.000000000 +0000 +++ Makefile @@@@ -11,7 +11,7 @@@@ # determination of the actual installation directories. # Suggested values are "/usr/local", "/usr", "/pkgs/fdupes-$(VERSION)" # -PREFIX = /usr/local +PREFIX ?= /usr/local # # When compiling for 32-bit systems, FILEOFFSET_64BIT must be enabled @@@@ -50,13 +50,13 @@@@ PROGRAM_NAME=fdupes # BIN_DIR indicates directory where program is to be installed. # Suggested value is "$(PREFIX)/bin" # -BIN_DIR = $(PREFIX)/bin +BIN_DIR = $(DESTDIR)$(PREFIX)/bin # # MAN_DIR indicates directory where the fdupes man page is to be # installed. Suggested value is "$(PREFIX)/man/man1" # -MAN_BASE_DIR = $(PREFIX)/man +MAN_BASE_DIR = $(DESTDIR)$(PREFIX)/${PKGMANDIR} MAN_DIR = $(MAN_BASE_DIR)/man1 MAN_EXT = 1 @@@@ -80,7 +80,7 @@@@ MKDIR = mkdir -p CC = gcc COMPILER_OPTIONS = -Wall -O -g -CFLAGS= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT) +CFLAGS+= $(COMPILER_OPTIONS) -I. -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(OMIT_GETOPT_LONG) $(FILEOFFSET_64BIT) INSTALL_PROGRAM = $(INSTALL) -c -m 0755 INSTALL_DATA = $(INSTALL) -c -m 0644 @@@@ -91,7 +91,9 @@@@ INSTALL_DATA = $(INSTALL) -c -m 0644 # #ADDITIONAL_OBJECTS = getopt.o -OBJECT_FILES = fdupes.o md5/md5.o $(ADDITIONAL_OBJECTS) +OBJECT_FILES = fdupes.o md5.o $(ADDITIONAL_OBJECTS) + +md5.o: md5/md5.c ##################################################################### # no need to modify anything beyond this point # @@@@ -100,7 +102,7 @@@@ OBJECT_FILES = fdupes.o md5/md5.o $(ADDI all: fdupes fdupes: $(OBJECT_FILES) - $(CC) $(CFLAGS) -o fdupes $(OBJECT_FILES) + $(CC) $(CFLAGS) $(LDFLAGS) -o fdupes $(OBJECT_FILES) installdirs: test -d $(BIN_DIR) || $(MKDIR) $(BIN_DIR) @ 1.4 log @fdupes: honor CFLAGS and LDFLAGS. Fixes RELRO build. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.3 2016/04/01 11:12:27 jperkin Exp $ @ 1.3 log @Use PKGMANDIR. @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.2 2015/12/12 04:00:30 kamil Exp $ d5 1 d34 9 d54 9 @ 1.2 log @Update sysutils/fdupes to 1.51 Patch via pkgsrc-wip/fdupes by Mateusz Poszwa Changes from 1.50 to 1.51 - Added support for 64-bit file offsets on 32-bit systems. - Using tty for interactive input instead of regular stdin. This is to allow feeding filenames via stdin in future versions of fdupes without breaking interactive deletion feature. - Fixed some typos in --help. - Turned C++ style comments into C style comments. Changes from 1.40 to 1.50-PR2 - Fixed memory leak. [JB] - Added "--summarize" option. [AL] - Added "--recurse:" selective recursion option. [AL] - Added "--noprompt" option for totally automated deletion of duplicate files. - Now sorts duplicates (old to new) for consistent order when listing or deleteing duplicate files. - Now tests for early matching of files, which should help speed up the matching process when large files are involved. - Added warning whenever a file cannot be deleted. [CHL, AL] - Fixed bug where some files would not be closed after failure. [AL] - Fixed bug where confirmmatch() function wouldn't always deal properly with zero-length files. [AL] - Fixed bug where progress indicator would not be cleared when no files were found. [AL] - Removed experimental red-black tree code (it was slower on my system than the default code). [AL] - Modified md5/md5.c to avoid compiler warning. [CHL] - Changes to fdupes.c for compilation under platforms where getopt_long is unavailable. [LR, AL] - Changes to help text for clarity. [AL] - Various changes and improvements to Makefile. [PB, AL] @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.1.1.1 2008/12/17 11:56:26 obache Exp $ d29 1 a29 1 +MAN_BASE_DIR = $(DESTDIR)$(PREFIX)/man @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 4 a6 1 --- Makefile.orig 2001-03-15 02:49:11.000000000 +0000 d8 28 a35 2 @@@@ -38,8 +38,8 @@@@ fdupes: fdupes.c md5/md5.c gcc fdupes.c md5/md5.c -Wall -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE) d37 4 a40 5 install: fdupes - cp fdupes $(INSTALLDIR) - cp fdupes.1 $(MANPAGEDIR)/man1 + ${BSD_INSTALL_PROGRAM} fdupes ${DESTDIR}$(INSTALLDIR) + ${BSD_INSTALL_MAN} fdupes.1 ${DESTDIR}$(MANPAGEDIR)/man1 d42 2 a43 2 tarball: clean tar --directory=.. -c -z -v -f ../fdupes-$(VERSION).tar.gz fdupes-$(VERSION) @ 1.1.1.1 log @Import fdupes-1.40 as sysutils/fdupes. Based on PR 39977 by Edgar Fuss. FDUPES is a program for identifying or deleting duplicate files residing within specified directories. @ text @@