d6db37eb353425a434a0a36f086e7a4dcd6b1849
[scm/bb/meta-tizen.git] / recipes-tizen / systemd / systemd-extraconf.inc
1 SRC_URI += "file://systemd-user \
2             file://user@.service \
3            "
4
5 systemd_files += "${sysconfdir}/*"
6
7 systemd_files += "/usr/lib64/python2.7"
8 systemd_files += "/usr/lib64/python2.7/site-packages"
9 systemd_files += "/usr/lib64/python2.7/site-packages/systemd"
10 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/__init__.py"
11 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/daemon.py"
12 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/_daemon.so"
13 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/_reader.so"
14 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/_journal.so"
15 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/__init__.pyo"
16 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/daemon.pyo"
17 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/journal.pyo"
18 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/journal.py"
19 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/id128.so"
20 systemd_files += "/usr/lib64/python2.7/site-packages/systemd/login.so"
21
22 systemd_files += "${prefix}/lib/rpm"
23 systemd_files += "${prefix}/lib/rpm/macros.d"
24
25 systemd_files += "/var/log"
26 systemd_files += "/var/lib/systemd"
27 systemd_files += "/var/volatile/log"
28 systemd_files += "/var/volatile/log/README"
29 systemd_files += "/var/volatile/log/journal"
30
31 systemd-dbg_files += "${prefix}/lib/security/.debug"
32 systemd-dbg_files += "${prefix}/lib/systemd/system-generators/.debug"
33 systemd-dbg_files += "${prefix}/lib/udev/.debug"
34 systemd-dbg_files += "${prefix}/lib64/python2.7/site-packages/systemd/.debug"
35
36 FILES_${PN}-dbg += "${systemd-dbg_files}"
37
38 do_install_append() {
39  rm ${D}${sysconfdir}/hostname
40  rm ${D}${sysconfdir}/vconsole.conf
41  rm ${D}${sysconfdir}/locale.conf
42  rm ${D}${sysconfdir}/machine-id
43  rm ${D}${sysconfdir}/machine-info
44  rm ${D}${sysconfdir}/timezone
45
46  install -m 0644 ${WORKDIR}/systemd-user ${D}${sysconfdir}/pam.d
47  install -m 0644 ${WORKDIR}/user@.service ${D}/usr/lib/systemd/system/
48 }
49
50 EXTRA_OECONF += "--disable-manpages"
51 EXTRA_OECONF += "--without-python"
52
53 GTKDOC_DOCDIR = "${S}/docs/"
54
55 do_configure_prepend() {
56     rm -f ${S}/docs/gtk-doc.make
57     echo 'EXTRA_DIST =' > ${S}/docs/gtk-doc.make
58
59     sed -i 's!@MKDIR_P@!/bin/mkdir -p!g' ${S}/units/kmod-static-nodes.service.in
60     sed -i 's!@KMOD@!/bin/kmod!g' ${S}/units/kmod-static-nodes.service.in
61     sed -i 's!@KILL@!/bin/kill!g' ${S}/units/user/systemd-exit.service.in
62 }