aboutsummaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-08-22 13:09:30 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-09-04 16:01:29 -0500
commitd6622a1156929294b909d08273fd227c7d817bb9 (patch)
tree29df9fc3ecae9e72e467effc91f3985eafaccd82 /conf.d
parent92004a2ed65045b7ca79063dda8fc5b4ac761606 (diff)
add meson build files
Closes #116. Closes #171. Closes #172. Closes #175.
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/meson.build59
1 files changed, 59 insertions, 0 deletions
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)