File: meson.build

package info (click to toggle)
openrc 0.63-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,412 kB
  • sloc: ansic: 16,255; sh: 2,225; perl: 28; makefile: 26
file content (99 lines) | stat: -rw-r--r-- 1,738 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
runlevel_dir =get_option('sysconfdir') / 'runlevels'

sysinit = []
sysinit_linux = [
  'cgroups',
  'devfs',
  'dmesg',
  'sysfs']
if os == 'linux'
  sysinit += sysinit_linux
endif

boot = [
  'bootmisc',
  'fsck',
  'hostname',
  'localmount',
  'loopback',
  'root',
  'swap',
  'sysctl']
boot_bsd = [
  'hostid',
  'newsyslog',
  'savecore',
  'syslogd',
  'urandom']
boot_freebsd = [
  'adjkerntz',
  'dumpon',
  'modules',
  'syscons']
boot_linux = [
  'binfmt',
  'hwclock',
  'keymaps',
  'modules',
  'mtab',
  'procfs',
  'save-keymaps',
  'save-termencoding',
  'seedrng',
  'termencoding']
boot_netbsd = [
  'devdb',
  'swap-blk',
  'tys',
  'wscons']
if get_option('newnet')
  boot += [
    'network',
    'staticroute']
endif
if os == 'DragonFly'
  boot += boot_bsd
elif os == 'freebsd'
  boot += boot_bsd + boot_freebsd
elif os == 'linux'
  boot += boot_linux
elif os == 'netbsd'
  boot += boot_bsd + boot_netbsd
endif

default = [
  'local',
  'netmount']

nonetwork=['local']

shutdown = ['savecache']
shutdown_linux = [
  'killprocs',
  'mount-ro']
if os == 'linux'
  shutdown += shutdown_linux
endif

runlevels = {
  'sysinit': sysinit,
  'boot': boot,
  'default': default,
  'nonetwork': nonetwork,
  'shutdown': shutdown
  }

foreach runlevel: runlevels.keys()
  foreach service: runlevels[runlevel]
    install_symlink(service,
      install_dir: runlevel_dir / runlevel,
      pointing_to: init_d_dir / service) 
  endforeach
  if get_option('sysvinit') == true and os == 'linux' and runlevel == 'default'
    foreach tty : get_option('agetty')
      install_symlink('agetty.' + tty,
        install_dir: runlevel_dir / runlevel,
        pointing_to: init_d_dir / 'agetty.' + tty)
    endforeach
  endif
endforeach