diff --git a/CHANGES b/CHANGES --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,16 @@ All ports committers are allowed to commit to this file. +20230712: +AUTHOR: 0mp@FreeBSD.org + + Two new targets are now available: fetch-url-recursive-list + and fetch-urlall-recursive-list. They are the recursive variants + of the well-established targets fetch-url-list and fetch-urlall-list, + which allow for listing the complete URLs of DISTFILES and PATCHFILES + of a port. The recursive variants add the URLs of the port's dependencies + to the output. + 20230430: AUTHOR: zirias@FreeBSD.org diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -567,9 +567,15 @@ # fetch-url-list # - Show list of URLS to retrieve missing ${DISTFILES} and # ${PATCHFILES} for this port. +# fetch-url-recursive-list +# - Show list of URLS to retrieve missing ${DISTFILES} and +# ${PATCHFILES} for this port and dependencies. # fetch-urlall-list # - Show list of URLS to retrieve ${DISTFILES} and # ${PATCHFILES} for this port. +# fetch-urlall-recursive-list +# - Show list of URLS to retrieve ${DISTFILES} and +# ${PATCHFILES} for this port and dependencies. # # all-depends-list # - Show all directories which are dependencies @@ -3143,6 +3149,13 @@ . endif . endif +. if !target(fetch-url-recursive-list-int) +fetch-url-recursive-list-int: fetch-url-list-int + @recursive_cmd="fetch-url-list-int"; \ + recursive_dirs="$$(${ALL-DEPENDS-FLAVORS-LIST})"; \ + ${_FLAVOR_RECURSIVE_SH} +. endif + # Prints out all the URL for all the DISTFILES and PATCHFILES. . if !target(fetch-urlall-list) @@ -3150,12 +3163,25 @@ @cd ${.CURDIR} && ${SETENV} FORCE_FETCH_ALL=yes ${MAKE} fetch-url-list-int . endif +. if !target(fetch-urlall-recursive-list) +fetch-urlall-recursive-list: fetch-urlall-list + @recursive_cmd="fetch-urlall-list"; \ + recursive_dirs="$$(${ALL-DEPENDS-FLAVORS-LIST})"; \ + ${_FLAVOR_RECURSIVE_SH} +. endif + # Prints the URL for all the DISTFILES and PATCHFILES that are not here . if !target(fetch-url-list) fetch-url-list: fetch-url-list-int . endif +. if !target(fetch-url-recursive-list) +fetch-url-recursive-list: fetch-url-list + @recursive_cmd="fetch-url-list"; \ + recursive_dirs="$$(${ALL-DEPENDS-FLAVORS-LIST})"; \ + ${_FLAVOR_RECURSIVE_SH} +. endif # Extract