]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/journal-remote/meson.build
d266b34e659ebad6eafe4ff635506ee545e8f445
[thirdparty/systemd.git] / src / journal-remote / meson.build
1 systemd_journal_upload_sources = files('''
2 journal-upload.h
3 journal-upload.c
4 journal-upload-journal.c
5 '''.split())
6
7 systemd_journal_remote_sources = files('''
8 journal-remote-parse.h
9 journal-remote-parse.c
10 journal-remote-write.h
11 journal-remote-write.c
12 journal-remote.h
13 journal-remote.c
14 microhttpd-util.h
15 microhttpd-util.c
16 '''.split())
17
18 systemd_journal_gatewayd_sources = files('''
19 journal-gatewayd.c
20 microhttpd-util.h
21 microhttpd-util.c
22 '''.split())
23
24 if conf.get('ENABLE_REMOTE', false) and conf.get('HAVE_LIBCURL', false)
25 journal_upload_conf = configure_file(
26 input : 'journal-upload.conf.in',
27 output : 'journal-upload.conf',
28 configuration : substs)
29 install_data(journal_upload_conf,
30 install_dir : pkgsysconfdir)
31 endif
32
33 if conf.get('ENABLE_REMOTE', false) and conf.get('HAVE_MICROHTTPD', false)
34 journal_remote_conf = configure_file(
35 input : 'journal-remote.conf.in',
36 output : 'journal-remote.conf',
37 configuration : substs)
38 install_data(journal_remote_conf,
39 install_dir : pkgsysconfdir)
40
41 install_data('browse.html',
42 install_dir : join_paths(pkgdatadir, 'gatewayd'))
43
44 meson.add_install_script('sh', '-c',
45 mkdir_p.format('/var/log/journal/remote'))
46 meson.add_install_script('sh', '-c',
47 'chown 0:0 $DESTDIR/var/log/journal/remote &&
48 chmod 755 $DESTDIR/var/log/journal/remote || :')
49 endif