15a3ac185SBrad Bishopset_mac = dependency('systemd', required: get_option('first-boot-set-mac')) 2*6b7fa819SPatrick Williamsset_hostname = dependency( 3*6b7fa819SPatrick Williams 'systemd', 4*6b7fa819SPatrick Williams required: get_option('first-boot-set-hostname'), 5*6b7fa819SPatrick Williams) 65a3ac185SBrad Bishop 75a3ac185SBrad Bishopif set_mac.found() 85a3ac185SBrad Bishop install_data( 95a3ac185SBrad Bishop 'first-boot-set-mac.sh', 105a3ac185SBrad Bishop install_mode: 'rwxr-xr-x', 115a3ac185SBrad Bishop install_dir: get_option('bindir'), 125a3ac185SBrad Bishop ) 135a3ac185SBrad Bishop 145a3ac185SBrad Bishop configure_file( 155a3ac185SBrad Bishop input: 'first-boot-set-mac@.service', 165a3ac185SBrad Bishop output: 'first-boot-set-mac@.service', 175a3ac185SBrad Bishop copy: true, 18*6b7fa819SPatrick Williams install_dir: set_mac.get_variable('systemdsystemunitdir'), 195a3ac185SBrad Bishop ) 205a3ac185SBrad Bishopendif 21403e2635SBrad Bishop 22403e2635SBrad Bishopif set_hostname.found() 23403e2635SBrad Bishop install_data( 24403e2635SBrad Bishop 'first-boot-set-hostname.sh', 25403e2635SBrad Bishop install_mode: 'rwxr-xr-x', 26403e2635SBrad Bishop install_dir: get_option('bindir'), 27403e2635SBrad Bishop ) 28403e2635SBrad Bishop 29403e2635SBrad Bishop configure_file( 30403e2635SBrad Bishop input: 'first-boot-set-hostname.service', 31403e2635SBrad Bishop output: 'first-boot-set-hostname.service', 32403e2635SBrad Bishop copy: true, 33*6b7fa819SPatrick Williams install_dir: set_hostname.get_variable('systemdsystemunitdir'), 34403e2635SBrad Bishop ) 35403e2635SBrad Bishopendif 36