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

How to include symlinks to conffiles in a package?


I am currently working on a package that needs to mimic sysvinit's
symlink farm. I have a bunch of scripts put into /etc/network/if.d
which are in turn symlinked to /etc/network/if-$NAME.d for different
values of $NAME.

I'd like to have the symlinks in the package as conffiles, but dpkg
doesn't seem to like that. The symlinks are not unpacked. After
playing with dpkg --unpack and manually configuring the package I
suspect the following:

- dpkg unpacks conffiles with the file name suffix dpkg-new
- It then deletes all stale symlinks
- and then renames foo.dpkg-new to foo after resolving conflicts

Since the unpacked symlinks point to the unsuffixed file name, they
are all considered stale and deleted.

Is there a recommended way to handle this? I'd like to avoid shipping
a symlink list file and to generate the links in postinst.

Any hints will be appreciated.


-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber          |   " Questions are the         | Mailadresse im Header
Karlsruhe, Germany  |     Beginning of Wisdom "     | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29

Reply to: