aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2018-04-12 19:11:25 +0800
committermat <mat@FreeBSD.org>2018-04-12 19:11:25 +0800
commitcbab2c7a210c32bf4f052f001acfa0d1151c8945 (patch)
tree44a7921fc6aa94750cfac65bf9a5d5cfd3575233 /Mk
parent978dd84b3bdb061bb27a0bc1a08cad047feea5a4 (diff)
downloadfreebsd-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.mk5
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
e='2009-01-06 01:27:29 +0800'>2009-01-061-7/+1 * Update to FLAC 1.2.1. This version includes two and a half yearsnaddy2008-04-082-2/+521 * Fix build with xorg >=7.2 by renaming the included libcddb.stefan2007-09-303-0/+29 * - Chase increase of audio/libvorbis shlib version.miwi2007-07-281-2/+2 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * - Fix build after libmytinfo is gone.rafan2007-02-022-4/+13 * Mark broken for FreeBSD 5.x sparc64.deischen2006-12-181-0/+4 * Correct packing list and unbreak.deischen2006-10-232-3/+2 * BROKEN: Incomplete pkg-plistkris2006-10-121-0/+2 * Add the man pages.deischen2006-09-241-0/+2 * Remove installation of two html'ized man pages. Pointyhat was complaining,deischen2006-09-051-20/+0 * Remove USE_REINPLACE from ports in categories starting with A.edwin2006-05-031-1/+0 * Move pkg-message to files to automatically replace %%PREFIX%%.deischen2006-03-153-1/+14 * SHA256ifyedwin2006-01-221-0/+1 * new version of libFLACnaddy2005-03-161-2/+2 * - Add the X_WINDOW_SYSTEM={xorg,xfree86-4,xfree86-3} variable to bsd.port.mk,anholt2004-07-241-2/+2 * Update to tiny version 3.3.2. This is a bug fix to prevent cda fromdeischen2004-04-252-13/+4 * libflac -> libFLACedwin2004-04-151-1/+1 * Make audio/flac a LIB_DEPENDS instead of a RUN_DEPENDS.deischen2004-04-141-2/+2 * s/ /\t/ in the newly added BUILD_DEPENDS line.deischen2004-04-131-1/+1 * Add a BUILD_DEPENDS for audio/flac.deischen2004-04-121-0/+1 * Unbreak on -stable by commenting out a call to pthread_atfork().deischen2004-04-111-0/+26 * Update to xmcd-3.3.1.deischen2004-04-113-20/+35 * SIZEify (maintainer timeout)trevor2004-03-311-0/+1 * Make audio/xmcd work on 5.2.1: uname -r returned an x.y.z number,edwin2004-02-28