I noticed a package in the review queue doing this to manage its
logfile:
%post
/sbin/chkconfig --add %{name}
touch %{_localstatedir}/log/%{name}
chown sip:sip %{_localstatedir}/log/%{name}
%files
[...]
%ghost %attr(0644,sip,sip) %{_localstatedir}/log/%{name}
(the sip user/group are created in %pre).
I was unsure of the difference between this and simply owning the file
in %files; the ownership comes out right, but behavior might differ on
upgrades and there's the issue of rpm -V. Does %ghost imply something
like %verify(not md5 size mtime)?
That's the best current practice for doing this?
- J<