Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109598277
D40810.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D40810.diff
View Options
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 8, 6:21 AM (5 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16522873
Default Alt Text
D40810.diff (2 KB)
Attached To
Mode
D40810: framework: Implement fetch-url-recursive-list and fetch-urlall-recursive-list
Attached
Detach File
Event Timeline
Log In to Comment