summaryrefslogtreecommitdiff
path: root/net/dgd
diff options
context:
space:
mode:
authorAndreas Schulz <ats@FreeBSD.org>1995-02-12 17:41:28 +0000
committerAndreas Schulz <ats@FreeBSD.org>1995-02-12 17:41:28 +0000
commita78bbcfc25f76ec0f9e3f2f992f0a896030f8487 (patch)
tree1defc03c0a1d34ce9320beecf9c4411a26e1f3d7 /net/dgd
parentA file was missing (diff)
Add some magic to the makefile to get the MASTER_SITE_OVERRIDE working for
fetching dgd.
Notes
Notes: svn path=/head/; revision=954
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