distcc: Fix remaining postinst issues

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3263 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-11-28 15:58:35 +00:00
parent b12795d49f
commit 705bfa44d8

View File

@@ -2,7 +2,7 @@ DESCRIPTION = "distcc is a parallel build system that distributes \
compilation of C/C++/ObjC code across machines on a network."
SECTION = "devel"
LICENSE = "GPLv2"
PR = "r2"
PR = "r3"
DEPENDS = "avahi gtk+"
RRECOMMENDS = "avahi-daemon"
@@ -34,11 +34,11 @@ FILES_${PN} = " ${sysconfdir} \
FILES_distcc-distmon-gnome = " ${bindir}/distccmon-gnome \
${datadir}/distcc"
pkg_postinst() {
pkg_postinst_${PN} () {
if test "x$D" != "x"; then
exit 1
else
grep distcc /etc/passwd || adduser --system --home /dev/null --empty-password --ingroup nogroup distcc
grep distcc /etc/passwd || adduser --system --home /dev/null --no-create-home --empty-password --ingroup nogroup distcc
fi
}