meson.build 572 B

123456789101112131415161718192021222324
  1. tangd_service = configure_file(
  2. input: 'tangd@.service.in',
  3. output: 'tangd@.service',
  4. configuration: data
  5. )
  6. tangd_socket = configure_file(
  7. input: 'tangd.socket.in',
  8. output: 'tangd.socket',
  9. configuration: data
  10. )
  11. if host_machine.system() == 'freebsd'
  12. tangd_rc = configure_file(
  13. input: 'tangd.rc.in',
  14. output: 'tangd',
  15. configuration: data,
  16. install_dir: join_paths(get_option('prefix') + sysconfdir, 'rc.d'),
  17. install_mode: ['rwxr-xr-x', 'root', 'wheel']
  18. )
  19. else
  20. units += tangd_socket
  21. units += tangd_service
  22. endif
  23. # vim:set ts=2 sw=2 et: