Project

General

Profile

0001-Change-variable-to-manage-git-urls-better.patch

daftaupe, 01/12/2018 12:55 PM

Download (2.25 KB)

View differences:

etc/Makefile.usr
2 2
#
3 3
# Provides simple targets to download and maintain /usr/src, /usr/dports etc.
4 4

  
5
GITHOST?=git.dragonflybsd.org
6
GITHOST_DPORTS?=mirror-master.dragonflybsd.org
5
# DragonFlyBSD sources  
6
GITURL?=git://git.dragonflybsd.org/dragonfly.git
7

  
8
# DPorts sources 
9
GITURL_DPORTS?=git://mirror-master.dragonflybsd.org/dports.git
7 10

  
8 11
DPTBALL=/tmp/dports.tar.gz
9 12
PKGBALL=/tmp/pkgboot.tar.xz
......
71 74
	@mkdir -p ${.CURDIR}/src
72 75
	@cd ${.CURDIR}/src && git init
73 76
	@cd ${.CURDIR}/src && \
74
		git remote add origin git://${GITHOST}/dragonfly.git
77
		git remote add origin ${GITURL}
75 78
	cd ${.CURDIR}/src && git fetch origin
76 79
	cd ${.CURDIR}/src && git branch master origin/master
77 80

  
......
85 88
	@mkdir -p ${.CURDIR}/src
86 89
	cd ${.CURDIR}/src && git init
87 90
	cd ${.CURDIR}/src && \
88
	    git remote add origin git://${GITHOST}/dragonfly.git
91
	    git remote add origin ${GITURL}
89 92
	cd ${.CURDIR}/src && git fetch --depth=1 origin
90 93
	cd ${.CURDIR}/src && git branch master origin/master
91 94
	cd ${.CURDIR}/src && git checkout master
......
120 123
dports-create: dports-check
121 124
	@echo "If problems occur you may have to rm -rf dports and try again."
122 125
	@echo
123
	git clone git://${GITHOST_DPORTS}/dports.git ${.CURDIR}/dports
126
	git clone ${GITURL_DPORTS} ${.CURDIR}/dports
124 127
.if exists(${.CURDIR}/pkg)
125 128
	@echo ${WSTARS}
126 129
	@echo ${WARNPS}
......
130 133
dports-create-shallow: dports-check
131 134
	@echo "If problems occur you may have to rm -rf dports and try again."
132 135
	@echo
133
	git clone --depth=1 git://${GITHOST_DPORTS}/dports.git \
136
	git clone --depth=1 ${GITURL_DPORTS} \
134 137
	   ${.CURDIR}/dports
135 138
.if exists(${.CURDIR}/pkg)
136 139
	@echo ${WSTARS}
137
-