build: add PKG_SOURCE_URL_FILE support
It seems that there is a missing PKG_SOURCE_URL_FILE support.
This little fix adds the support for packages to change the name of the
downloaded file.
Sometimes it is desirable to change the downloaded archive file name, like
for mitigating name conflicts for different packages (some files on the server
could be named like, e.g. 2018-01-01.tar.gz) or for the cases that there is
no name for the file in the URL (e.g. http://someserver.com/download).
Signed-off-by: Kamil Wcislo <kamil.wcislo@lpnplant.io>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
(cherry picked from commit 09c428ec6b)
			
			
This commit is contained in:
		 Kamil Wcislo
					Kamil Wcislo
				
			
				
					committed by
					
						 Matthias Schiffer
						Matthias Schiffer
					
				
			
			
				
	
			
			
			 Matthias Schiffer
						Matthias Schiffer
					
				
			
						parent
						
							436dbf12aa
						
					
				
				
					commit
					15ce616c2d
				
			| @@ -289,6 +289,7 @@ endef | |||||||
| define Download/default | define Download/default | ||||||
|   FILE:=$(PKG_SOURCE) |   FILE:=$(PKG_SOURCE) | ||||||
|   URL:=$(PKG_SOURCE_URL) |   URL:=$(PKG_SOURCE_URL) | ||||||
|  |   URL_FILE:=$(PKG_SOURCE_URL_FILE) | ||||||
|   SUBDIR:=$(PKG_SOURCE_SUBDIR) |   SUBDIR:=$(PKG_SOURCE_SUBDIR) | ||||||
|   PROTO:=$(PKG_SOURCE_PROTO) |   PROTO:=$(PKG_SOURCE_PROTO) | ||||||
|   $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) |   $(if $(PKG_SOURCE_MIRROR),MIRROR:=$(filter 1,$(PKG_MIRROR))) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user