PLIST_SUB= .. problem

Ion-Mihai Tetcu itetcu at people.tecnik93.com
Mon Oct 25 11:23:47 PDT 2004


On Mon, 25 Oct 2004 17:01:21 +0200
dirk.meyer at 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"




More information about the freebsd-ports mailing list