]>
Commit | Line | Data |
---|---|---|
52ad194e MB |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
3 | # Copyright 2017 Zbigniew Jędrzejewski-Szmek | |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU Lesser General Public License as published by | |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
8 | # (at your option) any later version. | |
9 | # | |
10 | # systemd is distributed in the hope that it will be useful, but | |
11 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | # Lesser General Public License for more details. | |
14 | # | |
15 | # You should have received a copy of the GNU Lesser General Public License | |
16 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
17 | ||
81c58355 MB |
18 | systemd_journal_upload_sources = files(''' |
19 | journal-upload.h | |
20 | journal-upload.c | |
21 | journal-upload-journal.c | |
22 | '''.split()) | |
23 | ||
24 | systemd_journal_remote_sources = files(''' | |
25 | journal-remote-parse.h | |
26 | journal-remote-parse.c | |
27 | journal-remote-write.h | |
28 | journal-remote-write.c | |
29 | journal-remote.h | |
30 | journal-remote.c | |
31 | microhttpd-util.h | |
32 | microhttpd-util.c | |
33 | '''.split()) | |
34 | ||
35 | systemd_journal_gatewayd_sources = files(''' | |
36 | journal-gatewayd.c | |
37 | microhttpd-util.h | |
38 | microhttpd-util.c | |
39 | '''.split()) | |
40 | ||
f5e65279 | 41 | if conf.get('ENABLE_REMOTE') ==1 and conf.get('HAVE_LIBCURL') == 1 |
81c58355 MB |
42 | journal_upload_conf = configure_file( |
43 | input : 'journal-upload.conf.in', | |
44 | output : 'journal-upload.conf', | |
45 | configuration : substs) | |
46 | install_data(journal_upload_conf, | |
47 | install_dir : pkgsysconfdir) | |
48 | endif | |
49 | ||
f5e65279 | 50 | if conf.get('ENABLE_REMOTE') == 1 and conf.get('HAVE_MICROHTTPD') == 1 |
81c58355 MB |
51 | journal_remote_conf = configure_file( |
52 | input : 'journal-remote.conf.in', | |
53 | output : 'journal-remote.conf', | |
54 | configuration : substs) | |
55 | install_data(journal_remote_conf, | |
56 | install_dir : pkgsysconfdir) | |
57 | ||
58 | install_data('browse.html', | |
59 | install_dir : join_paths(pkgdatadir, 'gatewayd')) | |
60 | ||
61 | meson.add_install_script('sh', '-c', | |
62 | mkdir_p.format('/var/log/journal/remote')) | |
63 | meson.add_install_script('sh', '-c', | |
64 | 'chown 0:0 $DESTDIR/var/log/journal/remote && | |
65 | chmod 755 $DESTDIR/var/log/journal/remote || :') | |
66 | endif |