Change from the custom perl FTP library to use fetch instead.

Submitted by:	jmz
This commit is contained in:
Gary Palmer 1996-07-04 21:59:26 +00:00
parent 8ece2cdacc
commit 9e2ec2324e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3299

View file

@ -3,7 +3,7 @@
# Date created: 14 October 1994
# Whom: jmz
#
# $Id: Makefile,v 1.8 1995/11/15 03:31:36 asami Exp $
# $Id: Makefile,v 1.9 1995/11/22 13:17:59 asami Exp $
#
DISTNAME= dvi2xx
@ -15,13 +15,27 @@ MAINTAINER= jmz@FreeBSD.ORG
#other equivalent sites: ftp.shsu.edu ftp.dante.de
CTAN?= ftp.tex.ac.uk
FTPGET= ${FILESDIR}/ftpget
dvi2xx.tar.gz:
@${FTPGET} ${CTAN} /tex-archive/dviware dvi2xx.tar.gz ${DISTDIR}/$@
do-fetch:
@if [ ! -d ${DISTDIR} ]; then ${MKDIR} -p ${DISTDIR}; fi
@(cd ${DISTDIR}; \
if [ ! -f ${DISTFILES} -a ! -f `${BASENAME} ${DISTFILES}` ]; then \
if [ -h ${DISTFILES} -o -h `${BASENAME} ${DISTFILES}` ]; then \
${ECHO_MSG} ">> ${DISTDIR}/${DISTFILES} is a broken symlink."; \
${ECHO_MSG} ">> Perhaps a filesystem (most likely a CD) isn't mounted?"; \
${ECHO_MSG} ">> Please correct this problem and try again."; \
exit 1; \
fi ; \
${ECHO_MSG} ">> ${DISTFILES} doesn't seem to exist on this system."; \
${ECHO_MSG} ">> Attempting to fetch from ${CTAN}."; \
if ${FETCH_CMD} -h ${CTAN} -c /tex-archive/dviware -f ${DISTFILES}; then \
exit 0; \
fi; \
${ECHO_MSG} ">> Couldn't fetch it - please try to retreive this";\
${ECHO_MSG} ">> port manually into ${DISTDIR} and try again."; \
exit 1; \
fi)
pre-fetch:
@chmod +x ${FTPGET}
pre-install:
@mkdir -p ${PREFIX}/lib/dvi2xx
@ -29,6 +43,4 @@ pre-install:
@(cd ${WRKSRC}; install -c -m 644 2up.sty graybox.sty lj3-filter \
printcap.sample sample2.tex testpage.tex ${PREFIX}/lib/dvi2xx/)
.include "Makefile.inc"
.include <bsd.port.mk>