FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 06-22-2008, 04:59 PM
Jason L Tibbitts III
 
Default Best practices for packaging logfiles

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<

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-22-2008, 05:51 PM
Enrico Scholz
 
Default Best practices for packaging logfiles

Jason L Tibbitts III <tibbs@math.uh.edu> writes:

> I noticed a package in the review queue doing this to manage its
> logfile:
> ...
> That's the best current practice for doing this?

https://fedoraproject.org/wiki/PackagingDrafts/Logfiles



Enrico

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-22-2008, 06:11 PM
Enrico Scholz
 
Default Best practices for packaging logfiles

Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> writes:

>> I noticed a package in the review queue doing this to manage its
>> logfile:
> ...
> https://fedoraproject.org/wiki/PackagingDrafts/Logfiles

Wiki conversion removed some important information; original page should
be more readable

http://fedoraproject.org/wikiold/PackagingDrafts/Logfiles


Enrico

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 
Old 06-22-2008, 06:14 PM
Jason L Tibbitts III
 
Default Best practices for packaging logfiles

>>>>> "ES" == Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> writes:

ES> https://fedoraproject.org/wiki/PackagingDrafts/Logfiles

Well, no offense, but your tendencies towards needless obfuscation
require me ask if these are anyone else's best practices.

At the very least, it's reasonable to ask why these were never
submitted to the packaging committee. At least, I don't recall ever
seeing them.

- J<

--
Fedora-packaging mailing list
Fedora-packaging@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-packaging
 

Thread Tools




All times are GMT. The time now is 05:27 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org