Skip to content

Commit

Permalink
sysutils/jdupes: Update to 1.27.3
Browse files Browse the repository at this point in the history
Some notable user-facing changes:

* Text-based hash database with -y/--hash-db
* -e/--error-on-dupe flag to terminate immediately if any dupe is found
* -C/--chunk-size now uses KiB instead of bytes (BREAKING CHANGE)

Many thanks to the author for upstream changes made to help simplify the
port.

Additionally this removes the workaround for a strip(1) issue with
LOW_MEMORY builds I can no longer reproduce (bin/269568).

Changelog: https://github.com/jbruchon/jdupes/releases/tag/v1.27.3

PR:		273403
  • Loading branch information
Freaky authored and clausecker committed Sep 10, 2023
1 parent dc98a8f commit 99d0f41
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 53 deletions.
23 changes: 7 additions & 16 deletions sysutils/jdupes/Makefile
@@ -1,23 +1,25 @@
PORTNAME= jdupes
DISTVERSIONPREFIX= v
DISTVERSION= 1.21.3
DISTVERSION= 1.27.3
CATEGORIES= sysutils

MAINTAINER= tom@hur.st
COMMENT= Powerful duplicate file finder and an enhanced fork of 'fdupes'
WWW= https://github.com/jbruchon/jdupes

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

LIB_DEPENDS= libxxhash.so:devel/xxhash
LIB_DEPENDS= libjodycode.so:devel/libjodycode \
libxxhash.so:devel/xxhash

USES= gmake localbase:ldflags

USE_GITHUB= yes
GH_ACCOUNT= jbruchon

LDFLAGS+= -lxxhash
MAKE_FLAGS= EXTERNAL_HASH_LIB=1
LDFLAGS+= -ljodycode -lxxhash

PLIST_FILES= bin/jdupes \
man/man1/jdupes.1.gz
Expand All @@ -26,19 +28,8 @@ OPTIONS_DEFINE= LOW_MEMORY
LOW_MEMORY_DESC= Minimally-featured build for embedded systems
LOW_MEMORY_MAKE_ENV= LOW_MEMORY=1

.include <bsd.port.options.mk>

# ELF Tool Chain's strip breaks binary so use LLVM's for now
# To avoid hardcoded stripping use INSTALL_KLD instead of _BIN
.if ${PORT_OPTIONS:MLOW_MEMORY} && !defined(WITH_DEBUG)
STRIP_CMD= /usr/bin/llvm-strip
.endif

do-install:
${INSTALL_KLD} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1

post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/jdupes

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions sysutils/jdupes/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1675962603
SHA256 (jbruchon-jdupes-v1.21.3_GH0.tar.gz) = 8992d0ff1fe135c685063ce3c9d69d54f1f19f1b32845e84441f888218063cc0
SIZE (jbruchon-jdupes-v1.21.3_GH0.tar.gz) = 155979
TIMESTAMP = 1693232321
SHA256 (jbruchon-jdupes-v1.27.3_GH0.tar.gz) = 6e8352f61b3920a2b5626c7122c3b80b4fdcc5cdd3f1c0c3424530425a77d846
SIZE (jbruchon-jdupes-v1.27.3_GH0.tar.gz) = 174831
34 changes: 0 additions & 34 deletions sysutils/jdupes/files/patch-Makefile

This file was deleted.

7 changes: 7 additions & 0 deletions sysutils/jdupes/pkg-message
Expand Up @@ -6,4 +6,11 @@ WARNING: jdupes -X/--extfilter size filtering is now INCLUSIVE instead
of EXCLUSIVE. Please see "jdupes -X help" for details.
EOM
}
{ type: upgrade
maximum_version: "1.25.3"
message: <<EOM
WARNING: jdupes -C/--chunk-size now uses KiB instead of bytes.
Please update any scripts using this flag.
EOM
}
]

0 comments on commit 99d0f41

Please sign in to comment.