Preparing smart 0.42
Andreas Hanke
andreas.hanke at gmx-topmail.de
Sat Jun 17 06:21:32 PDT 2006
Hi,
Pascal Bleser schrieb:
> But if you add a file in there yourself, it won't be marked as %config
> and hence, RPM will complain if you don't mark %dir %{_sysconfdir}/smart
> and %dir %{_sysconfdir}/smart/channels
No, RPM neither complains about that, nor does it touch any user-created
files in there.
Marking /etc/smart as %dir in a package where /etc/smart is empty is
possible, but not mandatory. The same for adding /etc/smart/channels to
the filelist at all - this is not mandatory for a package which doesn't
install any file into it. If a user creates the directory himself, RPM
will not touch it or any file in it.
> But then again, that directory is only and specifically meant for
> shipping .channel files as part of packages.
>
> If you add channels yourself, they're being stored in
> /var/lib/smart/channels/, not in %{_sysconfdir}/smart/channels/
Users can add channels where and how they want. Some prefer using smart
itself, so they are put into /var/lib/smart/config by smart, others
prefer creating config files in /etc/smart/channels because it's more
"unixish".
/var/lib/smart/channels is not used for channel configuration, but for
the downloaded metadata. smart even deletes any non-metadata stuff from
there on startup.
Andreas Hanke
More information about the Smart
mailing list