diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2021-08-22 13:09:30 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2021-09-04 16:01:29 -0500 |
commit | d6622a1156929294b909d08273fd227c7d817bb9 (patch) | |
tree | 29df9fc3ecae9e72e467effc91f3985eafaccd82 /etc | |
parent | 92004a2ed65045b7ca79063dda8fc5b4ac761606 (diff) |
add meson build files
Closes #116.
Closes #171.
Closes #172.
Closes #175.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/meson.build | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/etc/meson.build b/etc/meson.build new file mode 100644 index 00000000..fb736ac8 --- /dev/null +++ b/etc/meson.build @@ -0,0 +1,44 @@ +etc_conf_data = configuration_data() +if os == 'FreeBSD' + etc_conf_data.set('TERM', 'cons25') +elif os == 'Linux' + etc_conf_data.set('TERM', 'wsvt25') +endif + +etc_conf_common = [ + 'rc.conf', + ] + +etc_bin_FreeBSD = [ + 'rc.devd', + ] + +etc_conf_FreeBSD = [ + 'devd.conf', + ] + +etc_bin_NetBSD = [ + 'rc.in', + 'rc.shutdown.in', + ] + +install_data(etc_conf_common, + install_dir : get_option('sysconfdir')) + + if os == 'FreeBSD' + install_data(etc_bin_FreeBSD, + install_dir : get_option('sysconfdir'), + install_mode: 'rwxr-xr-x') + install_data(etc_conf_FreeBSD, + install_dir : get_option('sysconfdir')) +endif + +if os == 'FreeBSD' or os == 'NetBSD' + foreach file : etc_bin_NetBSD + configure_file(input : file, + output : '@BASENAME@', + configuration : etc_conf_data, + install_dir: get_option('sysconfdir'), + install_mode: 'rwxr-xr-x') + endforeach +endif |