git: 07678200d230 - main - Mk/bsd.port.mk: add a comment about do-fetch

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Tue, 22 Sep 2026 07:53:37 UTC
The branch main has been updated by mat:

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

commit 07678200d230915abcba225f813ac15b1caf4140
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2026-09-22 07:52:32 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2026-09-22 07:52:32 +0000

    Mk/bsd.port.mk: add a comment about do-fetch
---
 Mk/bsd.port.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index a1de8d064533..d9102a62e28e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3937,6 +3937,11 @@ _CKSUMFILES_FILE=${WRKDIR}/.cksumfiles
 # the options consistent when fetching and when makesum'ing.
 # As we're fetching new distfiles, that are not in the distinfo file, disable
 # checksum and sizes checks.
+# NOTE: if you arrived here because your port defines a custom do-fetch target,
+# and makesum is somewhat broken, you need to define both do-fetch and
+# makesum-fetch to do the same thing, the easiest way is to do:
+# do-fetch makesum-fetch:
+#		@target content
 makesum: check-sanity
 	@cd ${.CURDIR} && ${MAKE} makesum-fetch
 	@${MKDIR} ${WRKDIR}