Re: Question about variably depending packages
"Jerry DuVal" <firstname.lastname@example.org> writes:
> Can a package have a variable depends in the control file? :p>
Yes. But not the way you mean.
What you mean is that the depends should change depending on a config
file on the system. That is not possible. The file could be changed at
any time and that would alter the depends and break the system. That
just isn't supported.
> I have created the following packages:p>
You could have a 4th package test-remotedb that asks for the hostname
of the remote db during configuration (with debconf) and enters that
IP into the config file. The test-database package on the other hand
would enter localhost into the config file. test-remotedb and
test-database could conflict.
PS: use ucf for config file handling, don't include the file as