Using outside values in a Portfile tcl
Gerben Wierda
gerben.wierda at rna.nl
Fri Sep 20 15:37:20 UTC 2019
The mail-server Portfile has this in it:
# Network configuration
# hard-coded examples
set host host
set domain domain
set tld tld
set fullhost ${host}.${domain}.${tld}
set domaintld ${domain}.${tld}
set HOST [string toupper ${host}]
set DOMAIN [string toupper ${domain}]
set TLD [string toupper ${tld}]
set FULLHOST [string toupper ${fullhost}]
set DOMAINTLD [string toupper ${domaintld}]
set relayhost mymailrelay.tld
Now, obviously, my system isn’t called host.domain.tld or the relayhost mymailrelay.tld.
Is there a way I can influence these variables from the ‘outside’, so by using envrionment variables or by providing them in some way with the 'port install’ command?
Gerben Wierda
Chess and the Art of Enterprise Architecture <http://enterprisechess.com/>
Mastering ArchiMate <http://masteringarchimate.com/>
Architecture for Real Enterprises <https://www.infoworld.com/blog/architecture-for-real-enterprises/> at InfoWorld
On Slippery Ice <https://eapj.org/on-slippery-ice/> at EAPJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20190920/21894a60/attachment.html>
More information about the macports-users
mailing list