diff options
author | mat <mat@FreeBSD.org> | 2018-04-12 19:11:25 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2018-04-12 19:11:25 +0800 |
commit | cbab2c7a210c32bf4f052f001acfa0d1151c8945 (patch) | |
tree | 44a7921fc6aa94750cfac65bf9a5d5cfd3575233 /Mk | |
parent | 978dd84b3bdb061bb27a0bc1a08cad047feea5a4 (diff) | |
download | freebsd-ports-gnome-cbab2c7a210c32bf4f052f001acfa0d1151c8945.tar.gz freebsd-ports-gnome-cbab2c7a210c32bf4f052f001acfa0d1151c8945.tar.zst freebsd-ports-gnome-cbab2c7a210c32bf4f052f001acfa0d1151c8945.zip |
Try and prevent people from adding github archive urls.
If you use the archive URL directly, you end up having non unique
distfiles named 0.9.5.tar.gz or v2.2.2.tar.gz, and soon, another port
ends up having the same version, and boom.
Reviewed by: bdrewery
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D15039
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.sites.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk index e1e229d26f3d..f8ef5c9a0c82 100644 --- a/Mk/bsd.sites.mk +++ b/Mk/bsd.sites.mk @@ -343,6 +343,11 @@ MASTER_SITE_GENTOO+= \ ftp://gentoo.inode.at/source/%SUBDIR%/ .endif +# Keep this before USE_GITHUB +.if !empty(MASTER_SITES:M*/github.com/*/archive/*) +DEV_WARNING+= "MASTER_SITES contains ${MASTER_SITES:M*/github.com/*/archive/*}, please use USE_GITHUB instead." +.endif + .if !defined(IGNORE_MASTER_SITE_GITHUB) # # In order to use GitHub your port must define USE_GITHUB and the following |