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

Question about variably depending packages



Can a package have a variable depends in the control file? 

 

I have created the following packages

 

test-database_1_i386.deb

test-application_1_i386.deb

test-storage_1_i386.deb

 

On my server I have a /etc/test.properties

 

IP=192.168.1.60

DATABASEIP=192.168.1.65

STORAGEIP=192.168.1.60

 

 

 

My question is there a way to make the application package variably depend on the database package only if

 

. /etc/test.properties

 

$IP == $DATABASEIP

 

 

Basically if I want to variably install packages based on the properties file already on the server, but do this without user interaction, just reading the properties.

 

 

Thanks in advance,

 

Jerry

 


Reply to: