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

Re: Localisation of template files



Le Jeu 3 Novembre 2005 12:39, Aurélien Labrosse a écrit :
> On Jeu 3 novembre 2005 12:21, Stephen Gran a écrit :
> > This one time, at band camp, Aurélien Labrosse said:
> >> What do you think about?
> >
> > It depends on how extensible the templating is, I would think.  If
> > dspam can look in subdirectories of the template directory, just
> > put a symlink to /etc/dspam/templates, so that local admins can
> > override the defaults. If it can't look in subdirectories, then you
> > are forced to put the whole templates directory somewhere in /etc,
> > I'm afraid.
> >
> > Shipping config files in /usr/share is a policy violation for a
> > reason.
>
> What to you think about this solution? install templates into
> /usr/share/dspam/upstream-templates/ and link this directory to
> /usr/share/dspam/templates/, and add some comments about template
> customization into the README.Debian?

I don't want to seem rude, but dspam CGI takes the TEMPLATE directory as 
a configuration

my guess is to let things live in the right place (/usr/share) and put 
an note in README.Debian suggesting to adjust $CONFIG['TEMPLATES'] to 
the path where the sysadmin put the new templates.

and if he just want to make a 'little' patch, he can just symlink the 
one he don't modify and copy the ones he does.

you just have to make configure.pl a config file , e.g. let it be a 
symlink to /etc/dspam/dspam-cgi.conf
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgp1nAZs3JSue.pgp
Description: PGP signature


Reply to: