pcp
[Top] [All Lists]

Re: [pcp] "config" file in RPM packages

To: Mark Goodwin <goodwinos@xxxxxxxxx>
Subject: Re: [pcp] "config" file in RPM packages
From: Martin Hicks <mort@xxxxxxx>
Date: Mon, 26 Oct 2009 12:14:26 -0500
Cc: pcp@xxxxxxxxxxx
In-reply-to: <4AE13C27.3080208@xxxxxxxxx>
References: <4AE13C27.3080208@xxxxxxxxx>
User-agent: Mutt/1.5.17 (2007-11-01)
On Fri, Oct 23, 2009 at 04:16:23PM +1100, Mark Goodwin wrote:
>
> Just seeking some feedback on RPM config files in the PCP RPM packages.
>
> The pcp-2.9.3 package (and the 3.x package build from pcp.spec.in
> by Makepkgs) mark the following as "config" files :
>
> $ rpm -qlvcp pcp-2.9.3-1.x86_64.rpm | awk '{print $NF}'
> /var/lib/pcp/config/pmafm/pcp
> /var/lib/pcp/config/pmcd/pmcd.conf
> /var/lib/pcp/config/pmcd/pmcd.options
> /var/lib/pcp/config/pmcd/rc.local
> /var/lib/pcp/config/pmchart/Apache
> /var/lib/pcp/config/pmchart/Cisco
> /var/lib/pcp/config/pmchart/Sample
> /var/lib/pcp/config/pmchart/Sendmail
> /var/lib/pcp/config/pmchart/Web.Alarms
> /var/lib/pcp/config/pmchart/Web.Allservers
> /var/lib/pcp/config/pmchart/Web.Perserver.Bytes
> /var/lib/pcp/config/pmchart/Web.Perserver.Requests
> /var/lib/pcp/config/pmchart/Web.Requests
> /var/lib/pcp/config/pmchart/Web.Volume
> /var/lib/pcp/config/pmchart/shping.CPUTime
> /var/lib/pcp/config/pmchart/shping.RealTime
> /var/lib/pcp/config/pmie/cisco/in_util
> /var/lib/pcp/config/pmie/cisco/out_util
> /var/lib/pcp/config/pmie/config.default
> /var/lib/pcp/config/pmie/control
> /var/lib/pcp/config/pmie/crontab
> /var/lib/pcp/config/pmie/stomp
> /var/lib/pcp/config/pmieconf/shping/response
> /var/lib/pcp/config/pmieconf/shping/status
> /var/lib/pcp/config/pmlogger/Makefile
> /var/lib/pcp/config/pmlogger/config.base
> /var/lib/pcp/config/pmlogger/config.default
> /var/lib/pcp/config/pmlogger/config.pcp
> /var/lib/pcp/config/pmlogger/config.pmclient
> /var/lib/pcp/config/pmlogger/config.pmstat
> /var/lib/pcp/config/pmlogger/config.sar
> /var/lib/pcp/config/pmlogger/control
> /var/lib/pcp/config/pmlogger/crontab
> /var/lib/pcp/config/pmproxy/pmproxy.options
>
> The current RPM packages built using the pcp_fedora spec
> has a shorter list of just the stuff you're actually likely
> to edit :

I agree with this.  I think a lot of these above are more like
templates than config files.  It would be a lot smarter for a user to
make a copy and then edit if they want to modify a pmchart template.

> I also don't like having two RPM specs (and presumably,
> there will be yet another one for OpenSuSE et al).

I think we're somewhat stuck with this.  I don't know what changes
openSuSE will require when I get time to push a newer pcp to them, but
it seems like trying to merge the spec files together will just create a
disaster of ifdefs.

Another question I have is why pmcd.conf gets install 444.  This is a
config file that can be edited.  The general standard for config files
is 644.

mh

<Prev in Thread] Current Thread [Next in Thread>