Substitution in pkg-message

Trevor Johnson trevor at jpj.net
Fri Feb 6 06:38:59 PST 2004


Søren Debois wrote:

> On Fri, Feb 06, 2004 at 09:15:27AM -0500, Trevor Johnson wrote:
> > > I'd like my ports pkg-message to result in
> > >
> > >         Please consult %%EXAMPLESDIR%%/README.FreeBSD
> > >
> > > with %%EXAMPLESDIR%% expanded appropriately. Is this possible?
> >
> > PKGMESSAGE=	${WRKDIR}/pkgmessage
> >
> > post-install:
> > 	@${ECHO_CMD} ${EXAMPLESDIR}/README.FreeBSD > ${PKGMESSAGE}
> > 	${CAT} ${PKGMESSAGE}
>
> I did not want to show the readme, I wanted to refer to it. And I'd like
> it to work for packages as well.

Try it, it does what you want.
-- 
Trevor Johnson


More information about the freebsd-ports mailing list