2021-08-22 23:39:30 +05:30
|
|
|
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',
|
|
|
|
'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',
|
2022-03-30 21:45:13 +05:30
|
|
|
'seedrng.in',
|
2021-08-22 23:39:30 +05:30
|
|
|
'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',
|
2022-03-30 21:45:13 +05:30
|
|
|
'urandom.in',
|
2021-08-22 23:39:30 +05:30
|
|
|
]
|
|
|
|
|
|
|
|
init_FreeBSD = [
|
|
|
|
'adjkerntz.in',
|
2021-12-31 06:11:17 +05:30
|
|
|
'devd.in',
|
2021-08-22 23:39:30 +05:30
|
|
|
'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
|