All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during
@ 2009-02-25  8:49 Andre Prendel
  2009-02-25  9:11 ` [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d Jean Delvare
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Andre Prendel @ 2009-02-25  8:49 UTC (permalink / raw)
  To: lm-sensors

Hi Jean,

lm-sensors-3.1.0 will introduce multiple configuration files support. The
related directory /etc/sensors.d is not created by default. Maybe we
should do that during installation, shouldn't we?

Andre

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d
  2009-02-25  8:49 [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during Andre Prendel
@ 2009-02-25  9:11 ` Jean Delvare
  2009-02-25 10:20 ` Andre Prendel
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2009-02-25  9:11 UTC (permalink / raw)
  To: lm-sensors

Hi Andre,

On Wed, 25 Feb 2009 09:49:23 +0100, Andre Prendel wrote:
> lm-sensors-3.1.0 will introduce multiple configuration files support. The
> related directory /etc/sensors.d is not created by default. Maybe we
> should do that during installation, shouldn't we?

I agree. While this directory isn't required, its presence will make
people realize that they can put configuration files there. Want to
give it a try?

Thanks,
-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d
  2009-02-25  8:49 [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during Andre Prendel
  2009-02-25  9:11 ` [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d Jean Delvare
@ 2009-02-25 10:20 ` Andre Prendel
  2009-02-25 12:14 ` Jean Delvare
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Andre Prendel @ 2009-02-25 10:20 UTC (permalink / raw)
  To: lm-sensors

On Wed, Feb 25, 2009 at 10:11:21AM +0100, Jean Delvare wrote:
> Hi Andre,
> 
> On Wed, 25 Feb 2009 09:49:23 +0100, Andre Prendel wrote:
> > lm-sensors-3.1.0 will introduce multiple configuration files support. The
> > related directory /etc/sensors.d is not created by default. Maybe we
> > should do that during installation, shouldn't we?
> 
> I agree. While this directory isn't required, its presence will make
> people realize that they can put configuration files there. Want to
> give it a try?

Do you know how other packages handle such things? You are a packager
too, aren't you? Maybe we should leave that to the packagers?

Nevertheless, IMO we should provide the infrastructure (directory
layout) for the multiple configuration files support.

Andre
 
> Thanks,
> -- 
> Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d
  2009-02-25  8:49 [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during Andre Prendel
  2009-02-25  9:11 ` [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d Jean Delvare
  2009-02-25 10:20 ` Andre Prendel
@ 2009-02-25 12:14 ` Jean Delvare
  2009-02-25 13:36 ` Gabriel C
  2009-02-26  9:45 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2009-02-25 12:14 UTC (permalink / raw)
  To: lm-sensors

Hi Andre,

On Wed, 25 Feb 2009 11:20:09 +0100, Andre Prendel wrote:
> On Wed, Feb 25, 2009 at 10:11:21AM +0100, Jean Delvare wrote:
> > On Wed, 25 Feb 2009 09:49:23 +0100, Andre Prendel wrote:
> > > lm-sensors-3.1.0 will introduce multiple configuration files support. The
> > > related directory /etc/sensors.d is not created by default. Maybe we
> > > should do that during installation, shouldn't we?
> > 
> > I agree. While this directory isn't required, its presence will make
> > people realize that they can put configuration files there. Want to
> > give it a try?
> 
> Do you know how other packages handle such things? You are a packager
> too, aren't you? Maybe we should leave that to the packagers?

I package some projects in openSUSE but not that many, and none of them
has an /etc/*.d directory so I can't compare. I don't see why this
should be left to the packager. We define the default as we see fit,
and then each packager is free to chose which file they package and
which they don't.

All I can say is that all /etc/*.d directories in openSUSE belong to at
least one package. And sometimes the directory is empty
(/etc/aliases.d, /etc/depmod.d). So it seems to be expected that
packages create these directories.

> Nevertheless, IMO we should provide the infrastructure (directory
> layout) for the multiple configuration files support.

Yes, I agree, let's create directory sensors.d as part of the
installation process.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d
  2009-02-25  8:49 [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during Andre Prendel
                   ` (2 preceding siblings ...)
  2009-02-25 12:14 ` Jean Delvare
@ 2009-02-25 13:36 ` Gabriel C
  2009-02-26  9:45 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Gabriel C @ 2009-02-25 13:36 UTC (permalink / raw)
  To: lm-sensors

Jean Delvare wrote:

> Hi Andre,
> 
> On Wed, 25 Feb 2009 11:20:09 +0100, Andre Prendel wrote:
>> On Wed, Feb 25, 2009 at 10:11:21AM +0100, Jean Delvare wrote:
>>> On Wed, 25 Feb 2009 09:49:23 +0100, Andre Prendel wrote:
>>>> lm-sensors-3.1.0 will introduce multiple configuration files support. The
>>>> related directory /etc/sensors.d is not created by default. Maybe we
>>>> should do that during installation, shouldn't we?
>>> I agree. While this directory isn't required, its presence will make
>>> people realize that they can put configuration files there. Want to
>>> give it a try?
>> Do you know how other packages handle such things? You are a packager
>> too, aren't you? Maybe we should leave that to the packagers?
> 
> I package some projects in openSUSE but not that many, and none of them
> has an /etc/*.d directory so I can't compare. I don't see why this
> should be left to the packager. We define the default as we see fit,
> and then each packager is free to chose which file they package and
> which they don't.
> 
> All I can say is that all /etc/*.d directories in openSUSE belong to at
> least one package. And sometimes the directory is empty
> (/etc/aliases.d, /etc/depmod.d). So it seems to be expected that
> packages create these directories.
> 
>> Nevertheless, IMO we should provide the infrastructure (directory
>> layout) for the multiple configuration files support.
> 
> Yes, I agree, let's create directory sensors.d as part of the
> installation process.
> 


Maybe something like the following patch ? :

( maybe some README file in this directory won't be bad to have ? )

Index: etc/Module.mk
=================================--- etc/Module.mk	(Revision 5663)
+++ etc/Module.mk	(Arbeitskopie)
@@ -24,12 +24,14 @@
 
 ETCTARGET := $(MODULE_DIR)/sensors.conf.default
 ETCINSTALL := $(ETCDIR)/sensors3.conf
+ETCINSTALL_DIR_D := $(ETCDIR)/sensors.d
 
 
 # No all rule
 
 install-etc:
 	$(MKDIR) $(DESTDIR)$(ETCDIR)
+	$(MKDIR) $(DESTDIR)$(ETCINSTALL_DIR_D)
 	if [ ! -e $(DESTDIR)$(ETCINSTALL) ] ; then \
 	  $(INSTALL) -m 644 $(ETCTARGET) $(DESTDIR)$(ETCINSTALL); \
 	fi


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d
  2009-02-25  8:49 [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during Andre Prendel
                   ` (3 preceding siblings ...)
  2009-02-25 13:36 ` Gabriel C
@ 2009-02-26  9:45 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2009-02-26  9:45 UTC (permalink / raw)
  To: lm-sensors

On Thu, 26 Feb 2009 10:38:44 +0100, Andre Prendel wrote:
> On Wed, Feb 25, 2009 at 02:36:01PM +0100, Gabriel C wrote:
> > Jean Delvare wrote:
> > > Yes, I agree, let's create directory sensors.d as part of the
> > > installation process.
> > 
> > Maybe something like the following patch ? :
> 
> Jean, what about applying the patch below. Should I do? Will you do?

Please take care of it.

> > ( maybe some README file in this directory won't be bad to have ? )
> > 
> > Index: etc/Module.mk
> > =================================> > --- etc/Module.mk	(Revision 5663)
> > +++ etc/Module.mk	(Arbeitskopie)
> > @@ -24,12 +24,14 @@
> >  
> >  ETCTARGET := $(MODULE_DIR)/sensors.conf.default
> >  ETCINSTALL := $(ETCDIR)/sensors3.conf
> > +ETCINSTALL_DIR_D := $(ETCDIR)/sensors.d
> >  
> >  
> >  # No all rule
> >  
> >  install-etc:
> >  	$(MKDIR) $(DESTDIR)$(ETCDIR)
> > +	$(MKDIR) $(DESTDIR)$(ETCINSTALL_DIR_D)
> >  	if [ ! -e $(DESTDIR)$(ETCINSTALL) ] ; then \
> >  	  $(INSTALL) -m 644 $(ETCTARGET) $(DESTDIR)$(ETCINSTALL); \
> >  	fi


-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-26  9:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-25  8:49 [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d during Andre Prendel
2009-02-25  9:11 ` [lm-sensors] [RFC] lm-sensors-3.1.0: Create /etc/sensors.d Jean Delvare
2009-02-25 10:20 ` Andre Prendel
2009-02-25 12:14 ` Jean Delvare
2009-02-25 13:36 ` Gabriel C
2009-02-26  9:45 ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.