From owner-freebsd-ports@FreeBSD.ORG Mon Oct 25 18:23:47 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F9FE16A4CF for ; Mon, 25 Oct 2004 18:23:47 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCCB543D3F for ; Mon, 25 Oct 2004 18:23:45 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 28903 invoked by uid 89); 25 Oct 2004 18:23:44 -0000 Received: from unknown (HELO rdsnet.ro) (62.231.74.131) by 0 with SMTP; 25 Oct 2004 18:23:44 -0000 Received: (qmail 26424 invoked from network); 25 Oct 2004 18:23:44 -0000 Received: from unknown (HELO buh.cameradicommercio.ro) (82.76.1.117) by mail.rdsnet.ro with SMTP; 25 Oct 2004 18:23:44 -0000 Received: from it.buh.cameradicommercio.ro (it.buh.cameradicommercio.ro [192.168.0.10]) by buh.cameradicommercio.ro (Postfix) with ESMTP id 8203F60AF; Mon, 25 Oct 2004 21:23:43 +0300 (EEST) Received: from it.buh.cameradicommercio.ro (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 06F741AF; Mon, 25 Oct 2004 21:23:49 +0300 (EEST) Date: Mon, 25 Oct 2004 21:23:48 +0300 From: Ion-Mihai Tetcu To: dirk.meyer@dinoex.sub.org (Dirk Meyer) Message-ID: <20041025212348.56a911b6@it.buh.cameradicommercio.ro> In-Reply-To: References: <20041021163015.32ab7132@it.buh.cameradicommercio.ro> X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-ports@freebsd.org Subject: Re: PLIST_SUB= .. problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Oct 2004 18:23:47 -0000 On Mon, 25 Oct 2004 17:01:21 +0200 dirk.meyer@dinoex.sub.org (Dirk Meyer) wrote: > Ion-Mihai Tetcu schrieb:, > > > PLIST_SUB+= DSPAM_HOME=$|DSPAM_HOME| > > PLIST_SUB+= DSPAM_HOME=${DSPAM_HOME} Hmm, I remember trying it this way too; did I misread the Porters Handbook ? I'll try it again. > The Variable shoud be expanded in the Makefile. > > > .for file in firstrun.txt firstspam.txt quarantinefull.txt > > PLIST_FILES+= ${DSPAM_HOME}/${file}.sample > > .endfor > > PLIST_DIRS+= ${DSPAM_HOME} > > > What would be the solution ? > > To include data outside PREFIX you have to use @cwd in your pkg_plist > > @cwd %%DSPAM_HOME%% > %%DSPAM_HOME%%/firstrun.txt.sample > %%DSPAM_HOME%%/firstspam.txt.sample > @dirrm %%DSPAM_HOME%% Many thanks, -- IOnut Unregistered ;) FreeBSD "user"