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
|
project('gereal')
# Paths
bindir = get_option('bindir') # usually /usr/bin
sysconfdir = get_option('sysconfdir') # usually /etc
mandir = get_option('mandir') # usually /usr/share/man
# Dependency
systemd = dependency('systemd')
# Install main command
install_data(
'src/gerealctl',
install_dir: bindir,
install_mode: 'rwxr-xr-x'
)
# Install mandatory systemd generator
install_data(
'src/gereal-generator',
install_dir: systemd.get_variable('systemdsystemgeneratordir'),
install_mode: 'rwxr-xr-x'
)
# Install config
install_data(
'etc/screenrc',
install_dir: sysconfdir / 'gereal',
install_mode: 'rw-r--r--'
)
# Install manpages
install_man(
'doc/gerealctl.1',
'doc/gereal-generator.8',
'doc/gereal.conf.5'
)
|