diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2012-12-17 11:46:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-19 17:54:55 +0000 |
commit | 4606a8b1fb2c6c0f1e901b8069301c0264f57eee (patch) | |
tree | 4b1ca644343bca226c77ece94af0afecb9f5b200 /meta | |
parent | 83242c81ecb26670247ac71cc3cec6179bbe3166 (diff) | |
download | poky-4606a8b1fb2c6c0f1e901b8069301c0264f57eee.tar.gz |
distcc: use useradd.bbclass to add the distcc user
This is needed for the postinstalls to run at do_rootfs time.
[YOCTO #3601]
(From OE-Core rev: c42ca31e34ffa3eed17407245a51322f2700e630)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/distcc/distcc_2.18.3.bb | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/meta/recipes-devtools/distcc/distcc_2.18.3.bb b/meta/recipes-devtools/distcc/distcc_2.18.3.bb index de181e5e87..bd2af4a1b5 100644 --- a/meta/recipes-devtools/distcc/distcc_2.18.3.bb +++ b/meta/recipes-devtools/distcc/distcc_2.18.3.bb | |||
@@ -4,7 +4,7 @@ compilation of C/C++/ObjC code across machines on a network." | |||
4 | SECTION = "devel" | 4 | SECTION = "devel" |
5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPLv2" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
7 | PR = "r8" | 7 | PR = "r9" |
8 | 8 | ||
9 | DEPENDS = "avahi" | 9 | DEPENDS = "avahi" |
10 | 10 | ||
@@ -28,7 +28,14 @@ SRC_URI = "http://distcc.googlecode.com/files/${BPN}-${PV}.tar.bz2 \ | |||
28 | SRC_URI[md5sum] = "0d6b80a1efc3a3d816c4f4175f63eaa2" | 28 | SRC_URI[md5sum] = "0d6b80a1efc3a3d816c4f4175f63eaa2" |
29 | SRC_URI[sha256sum] = "6500f1bc2a30b1f044ebed79c6ce15457d1712263e65f0db7d6046af262ba434" | 29 | SRC_URI[sha256sum] = "6500f1bc2a30b1f044ebed79c6ce15457d1712263e65f0db7d6046af262ba434" |
30 | 30 | ||
31 | inherit autotools pkgconfig update-rc.d | 31 | inherit autotools pkgconfig update-rc.d useradd |
32 | |||
33 | USERADD_PACKAGES = "${PN}" | ||
34 | USERADD_PARAM_${PN} = "--system \ | ||
35 | --home /dev/null \ | ||
36 | --no-create-home \ | ||
37 | --gid nogroup \ | ||
38 | distcc" | ||
32 | 39 | ||
33 | INITSCRIPT_NAME = "distcc" | 40 | INITSCRIPT_NAME = "distcc" |
34 | 41 | ||
@@ -53,10 +60,6 @@ FILES_${PN} = " ${sysconfdir} \ | |||
53 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ | 60 | FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \ |
54 | ${datadir}/distcc" | 61 | ${datadir}/distcc" |
55 | 62 | ||
56 | pkg_postinst_${PN} () { | 63 | pkg_postrm_${PN} () { |
57 | if test "x$D" != "x"; then | 64 | deluser distcc || true |
58 | exit 1 | ||
59 | else | ||
60 | grep distcc /etc/passwd || adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup distcc | ||
61 | fi | ||
62 | } | 65 | } |