[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: irssi port



Julian Leyh <ports_(_at_)_openbsd_(_dot_)_org> wrote:

> > Check out bsd.port.mk(5), and look for update-patches.
> 
> yeah... i know that, but i don't know how to use variables like
> $LOCALBASE or $SYSCONFDIR in those patches.

One way to handle this is to use a patch to insert, say, %%LOCALBASE%%
and %%SYSCONFDIR%% and do a replacement on those in the build stage.
Sometimes you can also run a replacement directly on the unpatched
file but be very careful about not matching more than intended now
or after future updates.

-- 
Christian "naddy" Weisgerber                          naddy_(_at_)_mips_(_dot_)_inka_(_dot_)_de