From d6622a1156929294b909d08273fd227c7d817bb9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 22 Aug 2021 13:09:30 -0500 Subject: add meson build files Closes #116. Closes #171. Closes #172. Closes #175. --- conf.d/meson.build | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 conf.d/meson.build (limited to 'conf.d/meson.build') diff --git a/conf.d/meson.build b/conf.d/meson.build new file mode 100644 index 00000000..ddb056a4 --- /dev/null +++ b/conf.d/meson.build @@ -0,0 +1,59 @@ +conf_d_dir = get_option('sysconfdir') / 'conf.d' + +conf_common = [ + 'bootmisc', + 'fsck', + 'hostname', + 'localmount', + 'netmount', + 'swap', + 'urandom', + ] + +conf_net = [ + 'network', + 'staticroute', + ] + +conf_FreeBSD = [ + 'ipfw', + 'modules', + 'moused', + 'powerd', + 'rarpd', + 'savecore', + 'syscons', + ] + +conf_Linux = [ + 'agetty', + 'consolefont', + 'devfs', + 'dmesg', + 'hwclock', + 'keymaps', + 'killprocs', + 'modules', + 'mtab', + 'net-online', + ] + +conf_NetBSD = [ + 'moused', + 'rarpd', + 'savecore', + ] + +conf_data = conf_common +if get_option('newnet') + conf_data = conf_data + conf_net +endif +if os == 'FreeBSD' + conf_data = conf_data + conf_FreeBSD +elif os == 'Linux' + conf_data = conf_data + conf_Linux +elif os == 'NetBSD' + conf_data = conf_data + conf_NetBSD +endif + +install_data(conf_data, install_dir : conf_d_dir) -- cgit v1.2.3