aboutsummaryrefslogtreecommitdiff
path: root/etc/meson.build
blob: fb736ac81cd55a62875c54a71dda5ae9c2a796f7 (plain)
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
etc_conf_data = configuration_data()
if os == 'FreeBSD'
  etc_conf_data.set('TERM', 'cons25')
elif os == 'Linux'
  etc_conf_data.set('TERM', 'wsvt25')
endif

etc_conf_common = [
  'rc.conf',
  ]

etc_bin_FreeBSD = [
  'rc.devd',
  ]

etc_conf_FreeBSD = [
  'devd.conf',
  ]

etc_bin_NetBSD =  [
  'rc.in',
  'rc.shutdown.in',
  ]

install_data(etc_conf_common,
  install_dir : get_option('sysconfdir'))

  if os == 'FreeBSD'
  install_data(etc_bin_FreeBSD,
    install_dir : get_option('sysconfdir'),
    install_mode: 'rwxr-xr-x')
  install_data(etc_conf_FreeBSD,
    install_dir : get_option('sysconfdir'))
endif

if os == 'FreeBSD' or os == 'NetBSD'
  foreach file : etc_bin_NetBSD
    configure_file(input : file,
      output : '@BASENAME@',
      configuration : etc_conf_data,
      install_dir: get_option('sysconfdir'),
      install_mode: 'rwxr-xr-x')
  endforeach
endif