From 9603c4b3eb4ea691c527804d10dd5b2e42391cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Daniel=20Colmenares=20Oviedo?= Date: Sun, 16 Oct 2022 22:42:50 +0200 Subject: [PATCH] sysutils/rdfind: New port: Utility to find duplicate files based on content Command line utility that's useful for compressing backup directories or just finding duplicate files based on their content. Committers note: Patch modified to follow Porters Handbook more closely PR: 266985 --- sysutils/Makefile | 1 + sysutils/rdfind/Makefile | 24 ++++++++++++++++++++++++ sysutils/rdfind/distinfo | 3 +++ sysutils/rdfind/pkg-descr | 3 +++ 4 files changed, 31 insertions(+) create mode 100644 sysutils/rdfind/Makefile create mode 100644 sysutils/rdfind/distinfo create mode 100644 sysutils/rdfind/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index 5fe4ff09813e..a08822208c30 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1145,6 +1145,7 @@ SUBDIR += rclean SUBDIR += rcm SUBDIR += rdate + SUBDIR += rdfind SUBDIR += rdup SUBDIR += read-edid SUBDIR += recoverdm diff --git a/sysutils/rdfind/Makefile b/sysutils/rdfind/Makefile new file mode 100644 index 000000000000..dda641e7ca84 --- /dev/null +++ b/sysutils/rdfind/Makefile @@ -0,0 +1,24 @@ +PORTNAME= rdfind +DISTVERSION= 1.5.0 +CATEGORIES= sysutils +MASTER_SITES= https://rdfind.pauldreik.se/ + +MAINTAINER= DtxdF@disroot.org +COMMENT= Utility to find duplicate files based on their content +WWW= https://rdfind.pauldreik.se/ + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libnettle.so:security/nettle + +USES= autoreconf localbase:ldflags +GNU_CONFIGURE= yes + +PLIST_FILES= bin/${PORTNAME} \ + man/man1/${PORTNAME}.1.gz + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/sysutils/rdfind/distinfo b/sysutils/rdfind/distinfo new file mode 100644 index 000000000000..fdf6e196cd2a --- /dev/null +++ b/sysutils/rdfind/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1665952280 +SHA256 (rdfind-1.5.0.tar.gz) = 4150ed1256f7b12b928c65113c485761552b9496c433778aac3f9afc3e767080 +SIZE (rdfind-1.5.0.tar.gz) = 131167 diff --git a/sysutils/rdfind/pkg-descr b/sysutils/rdfind/pkg-descr new file mode 100644 index 000000000000..db00f21dd3da --- /dev/null +++ b/sysutils/rdfind/pkg-descr @@ -0,0 +1,3 @@ +Rdfind is a command line tool that finds duplicate files. It is +useful for compressing backup directories or just finding duplicate +files. It compares files based on their content, not file names.