aboutsummaryrefslogtreecommitdiffstats
path: root/net/dgd
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1995-02-13 01:41:28 +0800
committerats <ats@FreeBSD.org>1995-02-13 01:41:28 +0800
commit97ff77fc60bc901c42e5e2e237459523a3f8d906 (patch)
tree558c1974dcdb3306b9dcc100608914d73e161252 /net/dgd
parent0d2303ce565d6cf1dede66e51017d2f5e6968e9d (diff)
downloadfreebsd-ports-gnome-97ff77fc60bc901c42e5e2e237459523a3f8d906.tar.gz
freebsd-ports-gnome-97ff77fc60bc901c42e5e2e237459523a3f8d906.tar.zst
freebsd-ports-gnome-97ff77fc60bc901c42e5e2e237459523a3f8d906.zip
Add some magic to the makefile to get the MASTER_SITE_OVERRIDE working for
fetching dgd.
Diffstat (limited to 'net/dgd')
-rw-r--r--net/dgd/Makefile20
1 files changed, 17 insertions, 3 deletions
diff --git a/net/dgd/Makefile b/net/dgd/Makefile
index 03c3b3e58f28..81ce8e643624 100644
--- a/net/dgd/Makefile
+++ b/net/dgd/Makefile
@@ -10,8 +10,12 @@ DISTFILES= ${DISTNAME}.tar.gz
PATCHFILES= 1.0.8-1.0.8.1.gz 1.0.8.1-1.0.8.2.gz 1.0.8.2-1.0.8.3.gz \
1.0.8.3-1.0.8.4.gz 1.0.8.4-1.0.8.5.gz 1.0.8.5-1.0.8.6.gz \
1.0.8.6-1.0.8.7.gz 1.0.8.7-1.0.8.8.gz
-PATCHSITE= epsilon.me.chalmers.se
+.if defined(MASTER_SITE_OVERRIDE)
+PATCHSITE:= ${MASTER_SITE_OVERRIDE}
+.else
+PATCHSITE= epsilon.me.chalmers.se:
NCFTPFLAGS= -P
+.endif
_PATCH_COOKIE= ${.CURDIR}/work/._patch_done
PATCHLIST= ${.CURDIR}/work/.patchlist
PATCHLEVEL= `tail -1 ${PATCHLIST} | sed 's/^.*\.\(.*\)\.gz$$/\1/'`
@@ -23,16 +27,26 @@ pre-fetch:
@if [ ! -d ${DISTDIR}/${DISTNAME} ]; then mkdir -p ${DISTDIR}/${DISTNAME}; fi
@if [ ! -f ${DISTDIR}/${DISTNAME}.tar.gz ]; then \
echo ">> Fetching distribution file from remote site..."; \
- ${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}:${DISTNAME}.tar.gz \
+ ${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}${DISTNAME}.tar.gz \
&& mv ${DISTNAME}.tar.gz ${DISTDIR}; \
fi
+.if defined(MASTER_SITE_OVERRIDE)
@for file in ${PATCHFILES}; do \
if [ ! -f ${DISTDIR}/${DISTNAME}/$$file ]; then \
echo ">> Fetching patch $$file from remote site..."; \
- ${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}:patches/$$file \
+ ${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}${DISTNAME}/$$file \
+ && mv $$file ${DISTDIR}/${DISTNAME}; \
+ fi \
+ done
+.else
+ @for file in ${PATCHFILES}; do \
+ if [ ! -f ${DISTDIR}/${DISTNAME}/$$file ]; then \
+ echo ">> Fetching patch $$file from remote site..."; \
+ ${NCFTP} ${NCFTPFLAGS} ${PATCHSITE}patches/$$file \
&& mv patches/$$file ${DISTDIR}/${DISTNAME}; \
fi \
done
+.endif
# Need to determine whether all author-supplied patches are correctly applied
### not yet implemented