From owner-freebsd-ports Wed Mar 5 16:38:57 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA25676 for ports-outgoing; Wed, 5 Mar 1997 16:38:57 -0800 (PST) Received: from dfw-ix11.ix.netcom.com (dfw-ix11.ix.netcom.com [206.214.98.11]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id QAA25661 for ; Wed, 5 Mar 1997 16:38:54 -0800 (PST) Received: (from smap@localhost) by dfw-ix11.ix.netcom.com (8.8.4/8.8.4) id SAA09234; Wed, 5 Mar 1997 18:38:22 -0600 (CST) Received: from wck-ca7-19.ix.netcom.com(204.31.231.51) by dfw-ix11.ix.netcom.com via smap (V1.3) id sma009166; Wed Mar 5 18:37:53 1997 Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.5/8.6.9) id QAA15142; Wed, 5 Mar 1997 16:37:22 -0800 (PST) Date: Wed, 5 Mar 1997 16:37:22 -0800 (PST) Message-Id: <199703060037.QAA15142@silvia.HIP.Berkeley.EDU> To: fenner@parc.xerox.com CC: ports@freebsd.org In-reply-to: <199703051728.JAA15583@fenestro.parc.xerox.com> (message from Bill Fenner on Wed, 5 Mar 1997 09:28:08 PST) Subject: Re: Two Q's: "make depend" and repairing distfile? From: asami@vader.cs.berkeley.edu (Satoshi Asami) Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk * pre-build: * @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${DEPEND_TARGET}) I know you've already decided not to do this, but just FYI: you can just use "ALL_TARGET=depend all" or something. * 2. The distribution is from a broken HTTP server, which uncompresses * the file before sending it even though it is a .tar.gz, resulting * in getting an uncompressed file with the name foo.tar.gz, which * bsd.port.mk doesn't like. I wrote the following to recompress it, * but it's kind of hokey. Anyone have better ideas? * * # jarok.cs.ohiou.edu manages to uncompress the file before it transmits it, * # even though it returns a content-type of file/gzip. Repair the damage. * # * # Using "if; then else" because of sh bug in 3.0-current . * post-fetch: * @(cd ${_DISTDIR}; \ * if file ${DISTFILES} | grep -s gzip; then \ * else \ * echo "re-compressing ${DISTFILES}"; \ * mv ${DISTFILES} `basename ${DISTFILES} .gz`; \ * gzip `basename ${DISTFILES} .gz`; \ * fi) This will not work if MASTER_SITE_OVERRIDE is defined. You can either (1) keep the file as it is, and define EXTRACT_BEFORE_ARGS to not uncompress it, or (2) compress it by hand and I'll put it up on LOCAL_PORTS. Satoshi