Bug 266985 - [NEW PORT] sysutils/rdfind: redundant data find – find duplicate files
Summary: [NEW PORT] sysutils/rdfind: redundant data find – find duplicate files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL: https://github.com/pauldreik/rdfind
Keywords: patch
Depends on:
Blocks:
 
Reported: 2022-10-12 07:39 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2022-10-16 21:26 UTC (History)
3 users (show)

See Also:


Attachments
rdfind-1.5.0 (2.20 KB, patch)
2022-10-12 07:39 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff
rdfind-1.5.0 (2.37 KB, patch)
2022-10-13 19:15 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff
rdfind-1.5.0 (2.45 KB, patch)
2022-10-14 10:27 UTC, Jesús Daniel Colmenares Oviedo
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2022-10-12 07:39:45 UTC
Created attachment 237231 [details]
rdfind-1.5.0

Description:

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 on their file
names.

WWW: https://github.com/pauldreik/rdfind

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-10-13 17:44:51 UTC
Please note <https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-www> and other relevant parts of the Porter's Handbook.

Thank you
Comment 2 Jesús Daniel Colmenares Oviedo 2022-10-13 19:15:34 UTC
Created attachment 237275 [details]
rdfind-1.5.0

Description:

* Change the COMMENT field.
* Put the slash at the end of WWW.

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 3 Jesús Daniel Colmenares Oviedo 2022-10-13 19:17:22 UTC
(In reply to Graham Perrin from comment #1)

Hi Graham, thank you for your recommendations!
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-14 03:15:28 UTC
(In reply to Jesús Daniel Colmenares Oviedo from comment #3)

Thanks, I might be out of my depth here …


<https://rdfind.pauldreik.se/> observes: 

> … the repository has been moved to Github. …

– so, I am unsure about this part of your Makefile at comment #2: 

MASTER_SITES=	https://rdfind.pauldreik.se/


Be aware of the USE_GITHUB framework, for example: <https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github-ex1> …
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2022-10-14 03:24:13 UTC
Would you describe 
<https://rdfind.pauldreik.se/> as the home page, with the 
repository elsewhere (GitHub)? If so, then the better value 
for WWW might be https://rdfind.pauldreik.se/ 

Or, would you describe the GitHub repo as the new home page?

I see releases/1.5.0 tagged in GitHub, plus the .tar.gz for 1.5.0 at <https://rdfind.pauldreik.se/>, however it's not clear to me whether each future tagged release in GitHub will be accompanied by another .tar.gz file in the pauldreik.se area …
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2022-10-14 06:18:41 UTC
Any reason why is HAS_CONFIGURE set instead of GNU_CONFIGURE? Looks fine to me otherwise
Comment 7 Jesús Daniel Colmenares Oviedo 2022-10-14 10:27:13 UTC
Created attachment 237293 [details]
rdfind-1.5.0

Description:

* Change WWW: homepage is https://rdfind.pauldreik.se
* Add USES=autoreconf
* Use USE_GITHUB framework instead of MASTER_SITES=https://rdfind.pauldreik.se
* Update distinfo
* Change share/man/man1/${PORTNAME}.1.gz to man/man1/${PORTNAME}.1.gz
* Use GNU_CONFIGURE instead of HAS_CONFIGURE

QA:

* portlint: OK (looks fine.)
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 8 Daniel Engberg freebsd_committer freebsd_triage 2022-10-14 10:30:42 UTC
Actually the previous revision is more correct to Porters Handbook, USE_GITHUB is only to be used when there no "no officially released file" which there is in this case. https://docs.freebsd.org/en/books/porters-handbook/book/#makefile-master_sites-github

I'll fix the GNU_CONFIGURE line and probably commit it during the weekend if time permits.
Comment 9 Jesús Daniel Colmenares Oviedo 2022-10-14 10:52:27 UTC
(In reply to Graham Perrin from comment #4)

> <https://rdfind.pauldreik.se/> observes: 

>> … the repository has been moved to Github. …

Yes, I have seen it, but it looks like the author is still using his website to distribute rdfind.

(In reply to Graham Perrin from comment #5)

> Would you describe <https://rdfind.pauldreik.se/> as the home page, with the  repository elsewhere (GitHub)? If so, then the better value for WWW might be https://rdfind.pauldreik.se/

I had put the Github website because it has the documentation, has the code and does the rest for the project, but I've changed it to the author's website because it points to the repository anyway.

(In reply to Daniel Engberg from comment #6)

> Any reason why is HAS_CONFIGURE set instead of GNU_CONFIGURE? Looks fine to me otherwise

You are right, I have changed it.

(In reply to Daniel Engberg from comment #8)

Thank you Daniel!
Comment 10 Graham Perrin freebsd_committer freebsd_triage 2022-10-14 12:50:09 UTC
Thanks people.
Comment 11 commit-hook freebsd_committer freebsd_triage 2022-10-16 21:23:59 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9603c4b3eb4ea691c527804d10dd5b2e42391cdb

commit 9603c4b3eb4ea691c527804d10dd5b2e42391cdb
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2022-10-16 20:42:50 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-10-16 21:23:11 +0000

    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 (new)  | 24 ++++++++++++++++++++++++
 sysutils/rdfind/distinfo (new)  |  3 +++
 sysutils/rdfind/pkg-descr (new) |  3 +++
 4 files changed, 31 insertions(+)
Comment 12 Daniel Engberg freebsd_committer freebsd_triage 2022-10-16 21:26:38 UTC
Committed, thanks!