On Thursday, September 26, 2002, at 06:32  PM, Carsten Klapp wrote:

> Hi,
>
> I'm updating the antiword package to include a configuration file  
> (along with another change):
>
> ConfFiles: %p/share/%n/fontnames
>
> The problem is the 'fontnames' file is not installed anymore with this  
> new ConfFiles field added to the info file. The 'fontnames' file is  
> actually archived inside the deb file, and the conffiles control  
> script is being written to the package's root DEBIAN directory, but it  
> just never gets installed.
>
> Is there a step I've missed? Or is this maybe a limitation of fink due  
> to the file residing in /sw/share/antiword instead of /sw/etc?
>
> This fontinfo file is just a font-substitution table used by the  
> antiword program. You can edit it to reflect the fonts available on  
> your system and that's all, so the author just installs it along with  
> the other support files. It isn't really a config file that needs to  
> go into /etc.
>
> Is this intentionally how fink works? i.e. should I just have fink  
> compile it to look for the one file in %p/etc and the other support  
> files in the share directory?
>

Just tried it, and it works fine... you do understand how conffiles  
works? The conffiles will not be removed unless you do "dpkg purge  
packagename". If you update something it won't reinstall the conffile  
on top of the current existing one.

Package: bar
Version: 1.3
Revision: 3
Type: nosource
CompileScript: echo "bar"
InstallScript: <<
mkdir -p %i/share
echo "bar" >> %i/share/README
<<
ConfFiles: %p/share/README


....

fink install bar

...

Writing conffiles list...
dpkg-deb -b root-bar-1.3-3  
/sw/fink/dists/local/main/binary-darwin-powerpc
dpkg-deb: building package `bar' in  
`/sw/fink/dists/local/main/binary-darwin-powerpc/bar_1.3-3_darwin- 
powerpc.deb'.
ln -sf  
/sw/fink/dists/local/main/binary-darwin-powerpc/bar_1.3-3_darwin- 
powerpc.deb /sw/fink/debs/
rm -rf /sw/src/root-bar-1.3-3
dpkg -i  
/sw/fink/dists/local/main/binary-darwin-powerpc/bar_1.3-3_darwin- 
powerpc.deb
(Reading database ... 147382 files and directories currently installed.)
Preparing to replace bar 1.3-2 (using .../bar_1.3-3_darwin-powerpc.deb)  
...
Unpacking replacement bar ...
Setting up bar (1.3-3) ...
main/finkinfo/x11-system 257 % ls -la /sw/share/README
-rw-r--r--    1 root     staff          12 Sep 26 18:47 /sw/share/README
main/finkinfo/x11-system 259 % fink remove bar
sudo /sw/bin/fink  remove bar
Information about 1630 packages read in 1 seconds.

pkg bar  version ###
pkg bar  version 1.3-3
dpkg --remove bar
(Reading database ... 147379 files and directories currently installed.)
Removing bar ...
main/finkinfo/x11-system 260 % ls -la /sw/share/README
-rw-r--r--    1 root     staff          12 Sep 26 18:47 /sw/share/README
main/finkinfo/x11-system 262 % sudo  dpkg --purge bar
sudo dpkg --purge bar
Password:
(Reading database ... 147379 files and directories currently installed.)
Removing bar ...
Purging configuration files for bar ...
main/finkinfo/x11-system 264 % ls -la /sw/share/README
ls: /sw/share/README: No such file or directory
main/finkinfo/x11-system 265 % fink install bar
sudo /sw/bin/fink  install bar
Information about 1630 packages read in 1 seconds.

pkg bar  version ###
pkg bar  version 1.3-3
The following package will be installed or updated:
  bar
dpkg -i  
/sw/fink/dists/local/main/binary-darwin-powerpc/bar_1.3-3_darwin- 
powerpc.deb
Selecting previously deselected package bar.
(Reading database ... 147378 files and directories currently installed.)
Unpacking bar (from .../bar_1.3-3_darwin-powerpc.deb) ...
Setting up bar (1.3-3) ...
main/finkinfo/x11-system 266 % ls -la /sw/share/README
-rw-r--r--    1 root     staff          12 Sep 26 18:47 /sw/share/README

-Ben



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to