Bug 286588 - mail/opendmarc general port cleanup
Summary: mail/opendmarc general port cleanup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 22:45 UTC by Dan Mahoney
Modified: 2025-05-05 11:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Mahoney 2025-05-04 22:45:17 UTC
in #280931 (which was about adding a dependency on publicsuffixlist), a few other changes were proposed, general cleanup stuff re:whitespace and modern standards.  I'm opening this bug to track those.

- fix warnings from portclippy,
Straightforward, I'll do that in my own time (i.e. not on this issue).
I think I last tested this with only portlint (and poudriere testport).
I can create separate commits: 1) add dns/public_suffix_list only, 2) "improve
port" with all other changes.

2.
- adjust whitespaces,
Could you clarify?
Align values in LICENSE* variables, remove/add several empty lines.

3.
- remove GNU_CONFIGURE_MANPREFIX,
I didn't know that was a thing, but sure, can do that (again, outside of scope for this issue)
This was temporarily added during the man migration from "${PREFIX}/man" to
"${PREFIX}/share/man".
Since the migration has long been completed and the default value of this
variable is the same "${PREFIX}/share", it must be deleted, which is what we do
when we update a port.

4.
- use "${DISTVERSION:S/./-/g}" in GH_TAGNAME instead of hardcoded version "1-4-2":
Can also do that!
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-04 23:16:25 UTC
As soon as you confirm the proposed changes, I will commit them immediately.
Comment 2 Dan Mahoney 2025-05-05 07:16:03 UTC
I approve these, as the port maintainer.

-Dan
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-05-05 11:46:01 UTC
A commit in branch main references this bug:

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

commit d396e8428a4aada5c29a2281dd47c5be60cdff8f
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-05 11:24:55 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-05 11:44:30 +0000

    net/openrsync: Improve port

    - Fix warnings from portclippy.
    - Adjust whitespaces: allign values in LICENSE* variables, remove/add
      several empty lines.
    - Remove GNU_CONFIGURE_MANPREFIX.
    - Use "${DISTVERSION:S/./-/g}" in GH_TAGNAME instead of hardcoded
      version "1-4-2".
    - Use ${PORTNAME} instead of "opendmarc" in GH_TAGNAME and USE_RC_SUBR.

    PR:             286588
    Approved by:    Dan Mahoney <freebsd@gushi.org> (maintainer)

 mail/opendmarc/Makefile | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-05 11:47:09 UTC
Thanks.