summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/distcc
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-12-17 11:46:47 +0200
committerSaul Wold <sgw@linux.intel.com>2012-12-18 23:48:22 -0800
commitc42ca31e34ffa3eed17407245a51322f2700e630 (patch)
tree7668de125a182c7f2a7ef47a9b537bad2386a596 /meta/recipes-devtools/distcc
parent878cb7b76b19b03c51aa368b0bc037647c844a21 (diff)
downloadopenembedded-core-c42ca31e34ffa3eed17407245a51322f2700e630.tar.gz
openembedded-core-c42ca31e34ffa3eed17407245a51322f2700e630.tar.bz2
openembedded-core-c42ca31e34ffa3eed17407245a51322f2700e630.zip
distcc: use useradd.bbclass to add the distcc user
This is needed for the postinstalls to run at do_rootfs time. [YOCTO #3601] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/distcc')
-rw-r--r--meta/recipes-devtools/distcc/distcc_2.18.3.bb19
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."
SECTION = "devel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
-PR = "r8"
+PR = "r9"
DEPENDS = "avahi"
@@ -28,7 +28,14 @@ SRC_URI = "http://distcc.googlecode.com/files/${BPN}-${PV}.tar.bz2 \
SRC_URI[md5sum] = "0d6b80a1efc3a3d816c4f4175f63eaa2"
SRC_URI[sha256sum] = "6500f1bc2a30b1f044ebed79c6ce15457d1712263e65f0db7d6046af262ba434"
-inherit autotools pkgconfig update-rc.d
+inherit autotools pkgconfig update-rc.d useradd
+
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM_${PN} = "--system \
+ --home /dev/null \
+ --no-create-home \
+ --gid nogroup \
+ distcc"
INITSCRIPT_NAME = "distcc"
@@ -53,10 +60,6 @@ FILES_${PN} = " ${sysconfdir} \
FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \
${datadir}/distcc"
-pkg_postinst_${PN} () {
- if test "x$D" != "x"; then
- exit 1
- else
- grep distcc /etc/passwd || adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup distcc
- fi
+pkg_postrm_${PN} () {
+ deluser distcc || true
}