]>
Commit | Line | Data |
---|---|---|
5c23128d ZJS |
1 | # -*- mode: meson -*- |
2 | ||
aac26058 | 3 | journal_internal_sources = files(''' |
5c23128d ZJS |
4 | audit-type.c |
5 | audit-type.h | |
6 | catalog.c | |
7 | catalog.h | |
8 | compress.c | |
9 | compress.h | |
10 | journal-def.h | |
11 | journal-file.c | |
12 | journal-file.h | |
13 | journal-send.c | |
14 | journal-vacuum.c | |
15 | journal-vacuum.h | |
16 | journal-verify.c | |
17 | journal-verify.h | |
18 | lookup3.c | |
19 | lookup3.h | |
20 | mmap-cache.c | |
21 | mmap-cache.h | |
22 | sd-journal.c | |
23 | '''.split()) | |
24 | ||
25 | ############################################################ | |
26 | ||
27 | audit_type_includes = [config_h, | |
28 | missing_h, | |
29 | 'linux/audit.h'] | |
30 | if conf.get('HAVE_AUDIT', 0) == 1 | |
31 | audit_type_includes += 'libaudit.h' | |
32 | endif | |
33 | ||
34 | generate_audit_type_list = find_program('generate-audit_type-list.sh') | |
35 | audit_type_list_txt = custom_target( | |
36 | 'audit_type-list.txt', | |
37 | output : 'audit_type-list.txt', | |
9cc0e6e9 | 38 | command : [generate_audit_type_list, cpp] + audit_type_includes, |
5c23128d ZJS |
39 | capture : true) |
40 | ||
41 | audit_type_to_name = custom_target( | |
42 | 'audit_type-to-name.h', | |
43 | input : ['audit_type-to-name.awk', audit_type_list_txt], | |
44 | output : 'audit_type-to-name.h', | |
45 | command : [awk, '-f', '@INPUT0@', '@INPUT1@'], | |
46 | capture : true) | |
47 | ||
aac26058 | 48 | journal_internal_sources += [audit_type_to_name] |
09cef4e7 | 49 | |
5c23128d ZJS |
50 | ############################################################ |
51 | ||
5c23128d ZJS |
52 | libjournal_core_sources = files(''' |
53 | journald-kmsg.c | |
54 | journald-kmsg.h | |
55 | journald-syslog.c | |
56 | journald-syslog.h | |
57 | journald-stream.c | |
58 | journald-stream.h | |
59 | journald-server.c | |
60 | journald-server.h | |
61 | journald-console.c | |
62 | journald-console.h | |
63 | journald-wall.c | |
64 | journald-wall.h | |
65 | journald-native.c | |
66 | journald-native.h | |
67 | journald-audit.c | |
68 | journald-audit.h | |
69 | journald-rate-limit.c | |
70 | journald-rate-limit.h | |
71 | journal-internal.h | |
72 | '''.split()) | |
73 | ||
74 | systemd_journald_sources = files(''' | |
75 | journald.c | |
76 | journald-server.h | |
77 | '''.split()) | |
78 | ||
79 | journald_gperf_c = custom_target( | |
80 | 'journald-gperf.c', | |
81 | input : 'journald-gperf.gperf', | |
82 | output : 'journald-gperf.c', | |
83 | command : [gperf, '@INPUT@', '--output-file', '@OUTPUT@']) | |
84 | ||
85 | systemd_cat_sources = files('cat.c') | |
86 | ||
87 | journalctl_sources = files('journalctl.c') | |
88 | ||
89 | if conf.get('HAVE_QRENCODE', 0) == 1 | |
90 | journalctl_sources += files('journal-qrcode.c', | |
91 | 'journal-qrcode.h') | |
92 | endif | |
93 | ||
94 | install_data('journald.conf', | |
95 | install_dir : pkgsysconfdir) | |
f6e49d4e ZJS |
96 | |
97 | meson.add_install_script('sh', '-c', | |
98 | mkdir_p.format('/var/log/journal')) | |
99 | meson.add_install_script('sh', '-c', | |
100 | 'chown 0:0 $DESTDIR/var/log/journal && | |
101 | chmod 755 $DESTDIR/var/log/journal || :') | |
102 | if get_option('adm-group') | |
103 | meson.add_install_script('sh', '-c', | |
104 | 'setfacl -nm g:adm:rx,d:g:adm:rx $DESTDIR/var/log/journal || :') | |
105 | endif | |
106 | if get_option('wheel-group') | |
107 | meson.add_install_script('sh', '-c', | |
108 | 'setfacl -nm g:wheel:rx,d:g:wheel:rx $DESTDIR/var/log/journal || :') | |
109 | endif |