Tizen recipes : Fix tizen common build and get little more closer to current Tizen...
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-core / systemd / systemd-extraconf.inc
1 SRC_URI += "file://systemd-user"
2
3 inherit useradd
4
5 RDEPENDS_${PN}_remove_class-native = "gawk-native glibc-native"
6 DEPENDS_remove_class-native = "usbutils-native"
7 DEPENDS_remove_class-native = "pciutils-native"
8
9 USERADD_PACKAGES = "${PN}"
10 GROUPADD_PARAM_${PN} += "--system -g 11 cdrom;"
11 GROUPADD_PARAM_${PN} += "--system -g 33 tape;"
12 GROUPADD_PARAM_${PN} += "--system -g 18 dialout;"
13 GROUPADD_PARAM_${PN} += "--system -g 19 floppy"
14
15 EXTRA_OECONF += "--disable-manpages"
16 EXTRA_OECONF += "--without-python"
17 EXTRA_OECONF += "--disable-libcurl"
18
19 GTKDOC_DOCDIR = "${S}/docs/"
20
21 do_configure_prepend() {
22     rm -f ${S}/docs/gtk-doc.make
23     echo 'EXTRA_DIST =' > ${S}/docs/gtk-doc.make
24
25     sed -i 's!@MKDIR_P@!/bin/mkdir -p!g' ${S}/units/kmod-static-nodes.service.in
26     sed -i 's!@KMOD@!/bin/kmod!g' ${S}/units/kmod-static-nodes.service.in
27     sed -i 's!@KILL@!/bin/kill!g' ${S}/units/user/systemd-exit.service.in
28 }
29
30 do_install_append() {
31     rm -fr ${D}${prefix}/share/factory
32     rm -fr ${D}/lib/systemd/network/80-container-ve.network
33     rm -fr ${D}/lib/systemd/network/80-container-host0.network
34     rm -fr ${D}/lib/systemd/system-preset/90-systemd.preset
35     
36     rm -fr ${D}${sysconfdir}/hostname
37     rm -fr ${D}${sysconfdir}/timezone
38     
39     install -m 0644 ${WORKDIR}/systemd-user ${D}${sysconfdir}/pam.d
40 }
41
42 pkg_preinst_${PN}() {
43     #!/bin/sh -e
44
45     # Rename configuration files that changed their names
46     mv -n $D${sysconfdir}/systemd/systemd-logind.conf $D${sysconfdir}/systemd/logind.conf >/dev/null 2>&1 || :
47     mv -n $D${sysconfdir}/systemd/systemd-journald.conf $D${sysconfdir}/systemd/journald.conf >/dev/null 2>&1 || :
48 }
49
50
51
52 systemd-dbg_files += "/lib/systemd/.debug"
53 systemd-dbg_files += "/lib/security/.debug"
54 systemd-dbg_files += "/lib/systemd/system-generators/.debug"
55 systemd-dbg_files += "/lib/udev/.debug"
56
57 FILES_${PN}-dbg += "${systemd-dbg_files}"
58
59
60 FILES_${PN}-locale-fr += "${prefix}/lib/systemd/catalog/systemd.fr.catalog"
61 FILES_${PN}-locale-it += "${prefix}/lib/systemd/catalog/systemd.it.catalog"
62 FILES_${PN}-locale-ru += "${prefix}/lib/systemd/catalog/systemd.ru.catalog"
63 FILES_${PN}-locale    += "${prefix}/lib/systemd/catalog/systemd.catalog"
64   
65
66 systemd_files += "${prefix}/lib/systemd/network"
67 systemd_files += "${sysconfdir}/machine-id"
68 systemd_files += "${sysconfdir}/vconsole.conf"
69 systemd_files += "${sysconfdir}/locale.conf"
70 systemd_files += "${sysconfdir}/machine-info"