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 /init.d | |
parent | 92004a2ed65045b7ca79063dda8fc5b4ac761606 (diff) |
add meson build files
Closes #116.
Closes #171.
Closes #172.
Closes #175.
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/meson.build | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/init.d/meson.build b/init.d/meson.build new file mode 100644 index 00000000..9976710c --- /dev/null +++ b/init.d/meson.build @@ -0,0 +1,100 @@ +init_d_dir = get_option('sysconfdir') / 'init.d' + +init_common = [ + 'bootmisc.in', + 'fsck.in', + 'hostname.in', + 'local.in', + 'localmount.in', + 'loopback.in', + 'netmount.in', + 'osclock.in', + 'root.in', + 'savecache.in', + 'swap.in', + 'swclock.in', + 'sysctl.in', + 'runsvdir.in', + 'urandom.in', + 's6-svscan.in', + ] + +if get_option('newnet') + init_common = init_common + [ + 'network.in', + 'staticroute.in', + ] +endif + +init_Linux = [ + 'agetty.in', + 'binfmt.in', + 'cgroups.in', + 'consolefont.in', + 'devfs.in', + 'dmesg.in', + 'hwclock.in', + 'keymaps.in', + 'killprocs.in', + 'modules.in', + 'mount-ro.in', + 'mtab.in', + 'numlock.in', + 'procfs.in', + 'net-online.in', + 'save-keymaps.in', + 'save-termencoding.in', + 'sysfs.in', + 'termencoding.in', + ] + +init_BSD = [ + 'hostid.in', + 'moused.in', + 'newsyslog.in', + 'pf.in', + 'rarpd.in', + 'rc-enabled.in', + 'rpcbind.in', + 'savecore.in', + 'syslogd.in', + ] + +init_FreeBSD = [ + 'adjkerntz.in', + 'devd .in', + 'dumpon.in', + 'encswap.in', + 'ipfw.in', + 'modules.in', + 'mixer.in', + 'nscd.in', + 'powerd.in', + 'syscons.in', + ] + +init_NetBSD = [ + 'devdb.in', + 'swap-blk.in', + 'ttys.in', + 'wscons.in', + ] + +init_data = init_common +if os == 'Dragonfly' + init_data = init_data + init_BSD +elif os == 'FreeBSD' or os == 'Gnu-kFreeBSD' + init_data = init_data + init_BSD + init_FreeBSD +elif os == 'Linux' + init_data = init_data + init_Linux +elif os == 'NetBSD' + init_data = init_data + init_BSD + init_NetBSD + endif + +foreach init_d_file : init_data + configure_file(input : init_d_file, + output : '@BASENAME@', + configuration : init_d_conf_data, + install_dir: init_d_dir, + install_mode: 'rwxr-xr-x') +endforeach |