Hello,

I think Bill has a good point here. Ressource files like compiled
terminal descriptions should not be in etc since hardly anyone edits
them. Instead, they should be moved to /usr/share and links from them to
/etc/terminfo/... should be created, so the local admin still has a
chance to modify the files, and on the other hands the packages can work
without worrying about conffiles issues.

Therefore, I suggest the following transition:

 - install the files into /usr/share/terminfo inside of the package
 - in postinst, do something like...

   (cd /usr/share ; find terminfo -type d) | (cd /etc ; xargs mkdir -p )
   for x in `cd /usr/share ; find terminfo -type f; find terminfo -type l` ; do
      if test -f /etc/$x ; then 
        if cmp /usr/share/$x /etc/$x ; then
          ln -sf /usr/share/$x /etc/$x
        else
          echo "/etc/$x modified by local administrator, keeping as-is"
        fi
      else
        ln -sf /usr/share/$x /etc/$x
      fi
   done

Regards,
Eduard.
-- 
OpenBSD fails miserably in this respect, and makes for an example of how NOT
to work with the community on security issues.  Their approach is, roughly,
"we fixed this a while ago but didn't tell anyone, so you're vulnerable and
we're not, ha-ha-ha".


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to