From owner-freebsd-ports Wed May 27 06:52:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA03795 for freebsd-ports-outgoing; Wed, 27 May 1998 06:52:19 -0700 (PDT) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from ymris.ddm.on.ca (p44.argon.sentex.ca [209.112.4.237]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA03790 for ; Wed, 27 May 1998 06:52:12 -0700 (PDT) (envelope-from dchapes@ddm.on.ca) Received: from squigy.ddm.on.ca (squigy.ddm.on.ca [209.47.139.138]) by ymris.ddm.on.ca (8.8.8/8.8.8) with ESMTP id JAA05992 for ; Wed, 27 May 1998 09:52:05 -0400 (EDT) (envelope-from dchapes@ymris.ddm.on.ca) From: Dave Chapeskie Received: (from dchapes@localhost) by squigy.ddm.on.ca (8.8.8/8.8.7) id JAA09646; Wed, 27 May 1998 09:52:03 -0400 (EDT) Message-ID: <19980527095202.15064@ddm.on.ca> Date: Wed, 27 May 1998 09:52:02 -0400 To: freebsd-ports@FreeBSD.ORG Subject: port makefile problem: DISTFILES in multiple directories Mail-Followup-To: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi all, I'm trying to make a port for something that is distributed in a rather brain damaged fashion (although perhaps the author has his reasons) and I've come across a problem that I don't have a clean solution for. I'm hoping someone here can help me before I package up the port for submittal. The problem is with MASTER_SITES, DISTFILES, and the checksum target. I need to get a eight different files from four different directories. This is what I've done (relevant lines only): PKGNAME= inform-6.15 MASTER_SITES= ftp://ftp.gmd.de/if-archive/infocom/compilers/inform6/ DIST_SUBDIR= inform6 DISTFILES= source/inform615_source.zip \ library/inform_library67.tar.gz \ [...etc...] (notice that the files aren't even in the same format, I handle that in a do-extract target since there is other stuff I need to do at extract time anyway). The above fetches all the files okay and puts them all in /usr/ports/distfiles/inform6 (assuming the default $DISTDIR), this is what I want. However, the checksums fail since that target tries to find the files in /usr/ports/distfiles/inform6/source/inform615_source.zip /usr/ports/distfiles/inform6/library/inform_library67.tar.gz [...etc...] What is the best way to fix this? For now I've added the following hack, it works but is ugly. # XXX This is to get checksums to work post-fetch: @if [ ! -e ${DISTDIR}/${DIST_SUBDIR}/source ]; then \ ${LN} -sf . ${_DISTDIR}/source; \ ${LN} -sf . ${_DISTDIR}/library; \ ${LN} -sf . ${_DISTDIR}/manuals; \ fi I'm hoping someone has a better suggestion. Thanks -- Dave Chapeskie , DDM Consulting To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message