From: Michael Neumann Date: Fri, 13 Feb 2015 15:14:31 +0000 (+0100) Subject: Add option to override dports git host X-Git-Tag: v4.2.0rc~832 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/3d88cbf2373df7bdd96388e66df0d189e0d68c70 Add option to override dports git host By specifying GITHOST_DPORTS you can override the default git host for fetching the dports.git repository: cd /usr && make dports-create GITHOST_DPORTS=localhost --- diff --git a/etc/Makefile.usr b/etc/Makefile.usr index e9442eb3a2..47c2073b71 100644 --- a/etc/Makefile.usr +++ b/etc/Makefile.usr @@ -3,6 +3,7 @@ # Provides simple targets to download and maintain /usr/src, /usr/dports etc. GITHOST?=git.dragonflybsd.org +GITHOST_DPORTS?=mirror-master.dragonflybsd.org THISGIT!= which git 2>/dev/null; echo DPTBALL=/tmp/dports.tar.gz @@ -141,7 +142,7 @@ dports-create: .else @echo "If problems occur you may have to rm -rf dports and try again." @echo - git clone git://mirror-master.dragonflybsd.org/dports.git ${.CURDIR}/dports + git clone git://${GITHOST_DPORTS}/dports.git ${.CURDIR}/dports .if exists(${.CURDIR}/pkg) @echo ${WSTARS} @echo ${WARNPS} @@ -157,7 +158,7 @@ dports-create-shallow: .else @echo "If problems occur you may have to rm -rf dports and try again." @echo - git clone --depth=1 git://mirror-master.dragonflybsd.org/dports.git \ + git clone --depth=1 git://${GITHOST_DPORTS}/dports.git \ ${.CURDIR}/dports .if exists(${.CURDIR}/pkg) @echo ${WSTARS}