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

Re: [rpm-list] [rpm-list] Trouble with RPM and %{_sysconfdir}.



On 6 April 2007 at 11:53, Jeff Johnson <n3npq jbj gmail com> wrote:

> > %{expand: %%define _sysconfdir %{_prefix}%{_sysconfdir}/somewhere}
> 
> If you *have* to do that, try this instead:

I redefine %sysconfig when I have a package that I want to live
entirely in /home/local and when that package normally locates
things in /usr and /etc.  I do this because I don't touch /home
when I update my Linux distribution, the package is custom, and I
want it to survive a distribution upgrade.  If there's a better
approach, then I'm open to it.  This is just what worked for me
so far.

Thanks for the notes!

>      %{expand: %%global _sysconfdir %{_prefix}%{_sysconfdir}/somewhere}
[snip]
> But you're likely only need
>      %define _sysconfdir %{_prefix}%{_sysconfdir}/somewhere
> without all the other goo.

 
--
Kevin



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