forked from linux-can/socketcand
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
31 lines (28 loc) · 806 Bytes
/
Copy pathmeson.build
File metadata and controls
31 lines (28 loc) · 806 Bytes
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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
# SPDX-FileCopyrightText: 2024 Yegor Yefremov <yegorslists@googlemail.com>
if enable_libconfig
install_data(
sources: 'socketcand.conf',
install_dir: '/etc',
)
endif
if enable_rc_script
install_data(
sources: 'socketcand-rc.d',
rename: 'socketcand',
install_mode: 'rwxr-xr-x',
install_dir: '/etc/rc.d',
)
endif
if enable_init_script
init_conf = configuration_data()
init_conf.set('fullpath', get_option('prefix') / get_option('sbindir'))
configure_file(
input : 'socketcand-init.d.in',
output : 'socketcand',
configuration : init_conf,
install : true,
install_mode : 'rwxr-xr-x',
install_dir : '/etc/init.d',
)
endif