[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Policy conflict regarding templates as examples

On Wed, Nov 01, 2000 at 11:06:26AM -0500, Sam Hartman wrote:
> Hi.  I'm working on a package and I need to store a template
> configuration file that I will copy into /etc in my postinst if it
> doesn't already exist.
> According to policy 4.7.3 (behavior of configuration files), it is
> reasonable to install such templates in
> /usr/share/doc/package/examples, if they also serve as reasonable
> example configuration files.  However, according to 6.7, no program
> should reference examples.  
> Should I interpret this as allowing my maintainer scripts to use the
> example files, but not the program during normal operation?

Yes.  See, for example, /usr/sbin/apacheconfig (in the apache package)
which does precisely this.  But take care in a case that the sysadmin
chooses to delete the configuration file; if this is a sane thing to
do (as it might be, depending upon the package), you must ensure that
you do not then recreate it.  You can basically do this by checking
the parameters your maintainer script has received.  Check the
packaging manual for details of this.



  Julian Gilbey, Dept of Maths, QMW, Univ. of London. J.D.Gilbey@qmw.ac.uk
        Debian GNU/Linux Developer,  see http://www.debian.org/~jdg
  Donate free food to the world's hungry: see http://www.thehungersite.com/

Reply to: