1 # SPDX-License-Identifier: LGPL-2.1+
3 journal_client_sources = files('''
25 if conf.get('HAVE_GCRYPT') == 1
26 journal_client_sources += files('''
27 journal-authenticate.c
28 journal-authenticate.h
34 ############################################################
36 audit_type_includes = [config_h,
39 if conf.get('HAVE_AUDIT') == 1
40 audit_type_includes += 'libaudit.h'
43 generate_audit_type_list = find_program('generate-audit_type-list.sh')
44 audit_type_list_txt = custom_target(
45 'audit_type-list.txt',
46 output : 'audit_type-list.txt',
47 command : [generate_audit_type_list, cpp] + audit_type_includes,
50 audit_type_to_name = custom_target(
51 'audit_type-to-name.h',
52 input : ['audit_type-to-name.awk', audit_type_list_txt],
53 output : 'audit_type-to-name.h',
54 command : [awk, '-f', '@INPUT0@', '@INPUT1@'],
57 journal_client_sources += [audit_type_to_name]
59 libjournal_client = static_library(
61 journal_client_sources,
62 include_directories : includes,
63 c_args : ['-fvisibility=default'])
65 ############################################################
67 libjournal_core_sources = files('''
91 systemd_journald_sources = files('''
96 journald_gperf_c = custom_target(
98 input : 'journald-gperf.gperf',
99 output : 'journald-gperf.c',
100 command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@'])
102 systemd_cat_sources = files('cat.c')
104 journalctl_sources = files('''
110 if conf.get('HAVE_QRENCODE') == 1
111 journalctl_sources += files('journal-qrcode.c',
115 install_data('journald.conf',
116 install_dir : pkgsysconfdir)
118 if get_option('create-log-dirs')
119 meson.add_install_script(
121 mkdir_p.format('/var/log/journal'))
122 meson.add_install_script(
124 '''chown 0:0 $DESTDIR/var/log/journal &&
125 chmod 755 $DESTDIR/var/log/journal || :''')
126 if get_option('adm-group')
127 meson.add_install_script(
129 'setfacl -nm g:adm:rx,d:g:adm:rx $DESTDIR/var/log/journal || :')
131 if get_option('wheel-group')
132 meson.add_install_script(
134 'setfacl -nm g:wheel:rx,d:g:wheel:rx $DESTDIR/var/log/journal || :')