Bug#92594: configuration files should be moved to /etc
Hilmar Preusse <hille42@web.de> schrieb:
> On 02.08.04 Frank Küster (frank@kuesterei.ch) wrote:
>> Jochen Voss <voss@mathematik.uni-kl.de> wrote:
>
>> > The tetex-base package contains several files, which are
>> > configuration files, but which are not installed under /etc.
>> > This violates section 11.7.2 of the debian policy.
>>
>> To me this is more than just wishlist - it's a violation of a must
>> clause in policy. I'm upgrading this, because I want to be able to
>> fix it even after the freeze of sarge.
>>
> root@drachi:/usr/share/texmf# find . -name \*.ini|wc
> 45 45 1398
> root@drachi:/usr/share/texmf# find . -name \*.cfg|wc
> 32 32 986
> root@drachi:/usr/share/texmf#
>
> I'll start looking soon which of these are really config-files. What
> to do then? ln -s?
This is my new version of setup-conffiles; it's not yet tested (and I
won't be able to do much testing before I leave for vacation). I will
check it in as soon as the upload of tetex-base as it is now is done.
Regards, Frank
#!/bin/sh
DEB=debian/tetex-base
DEX=debian/tetex-extra
ETEX=/etc/texmf/etex
ETCTEXMF=/etc/texmf
if [ X"$1" = X-base ]; then
package=base
elif [ X"$1" = X-extra ]; then
package=extra
fi
DEBETC=debian/tetex-$package/etc/texmf
TEXMFDIR=debian/tetex-$package/usr/share/texmf
LATEX_CONFFILES='
listings/listings.cfg
jurabib/jblong.cfg
jurabib/jurabib.cfg
endfloat/efxmpl.cfg
adrconv/adrplaner.cfg
adrconv/adrdir.cfg
adrconv/adrsmall.cfg
hyperref/htex4ht.cfg
'
move_and_link_file(){
sourcedir=$1
sourcefile=$2 # file
dest=$3 # dir
if [ ! d ${DEBETC}/$dest ]; then mkdir -p ${DEBETC}/$dest; fi
mv ${TEXMFDIR}/$sourcedir/$sourcefile ${DEBETC}/$dest
ln -s ${ETCTEXMF}/$dest/$sourcefile ${TEXMFDIR}/$sourcedir
}
move_and_link_dir(){
sourcedir=$1
dest=$3 # must be dir with existing parents, "" if directly in /etc/texmf
mv ${TEXMFDIR}/$sourcedir ${DEBETC}/$dest
ln -s ${ETCTEXMF}/$dest ${TEXMFDIR}/$sourcedir
}
if [ X"$1" = X-base ]; then
move_and_link_dir tex/latex/config latex
move_and_link_dir etex/plain/config etex
move_and_link_dir tex/platex/config platex
move_and_link_dir tex/context/config context
move_and_link_dir tex/cyrplain/config cyrplain
move_and_link_file tex/generic/config fontmath.cfg latex
move_and_link_file tex/generic/config fonttext.cfg latex
move_and_link_file tex/generic/config preload.cfg latex
move_and_link_file tex/cslatex fonttext.cfg cslatex
move_and_link_file tex/cslatex hyphen.cfg cslatex
move_and_link_file context/config texexec.ini context
elif [ X"$1" = X-extra ]; then
move_and_link_file omega/lambda/base language.dat lambda
for file in ${LATEX_CONFFILES}; do
mv ${TEXMFDIR}/tex/latex/$file ${DEBETC}/latex
done
else
echo "Bad Usage!"
fi
--
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie
Reply to: