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

non conffiles in /etc and loading from templates?



hey mentors,

i have a hypothetical situation for you.  let's say i were working
on a package for sugarplum.  now this package is understandably the
bane of most spam harvesters out there, enough that they've probably
put in a rule to avoid directories named /sugarplum on most peoples
web servers.  the way you get around this is to rename the /sugarplum
directory to some other innocuous word.

now what i'd like to do is to randomly select a word from either
/usr/share/dict/words or from the user via debconf.  the trouble with
the former is that i don't think i can guarantee that words is installed
at configure time, and the latter brings in some questions i don't know
the answers to.

currently, there's a file /etc/sugarplum/apache.conf that has the
rewrite rules, including the location of /sugarplum.  if i were to do
one of the above suggestions, what's the best way to handle this file?
would it still be as a conffile, even though every time the package
were upgraded it would invoke the conffile handling stuff?  i've heard
a bit about loading configuration files from templates via debconf, but
haven't ever done so myself.  would that be an acceptable way to do so?
and if so, anyone have an example i can use as reference?


as always, thanks
	sean

Attachment: pgpVzhYKVDtxJ.pgp
Description: PGP signature


Reply to: