4 DEPENDS = "base-passwd osso-af-startup"
5 RDEPENDS = "base-passwd osso-af-startup"
7 SRC_URI = "http://stage.maemo.org:80/pool/maemo/ossw/source/o/${PN}/${PN}_${PV}.tar.gz"
10 inherit autotools update-rc.d
12 FILES_${PN} = "${sysconfdir}/osso-af-init ${sysconfdir}/init.d/"
14 INITSCRIPT_NAME = "x-server.sh"
15 INITSCRIPT_PARAMS = "defaults 21"
19 install -d ${D}${sysconfdir}/osso-af-init
20 install -m 755 ${S}/x-server.defs ${D}/${sysconfdir}/osso-af-init/x-server.defs
22 install -d ${D}${sysconfdir}/init.d
23 install -m 755 ${S}/x-server.sh ${D}/${sysconfdir}/init.d/x-server.sh
29 # can't do adduser stuff offline
30 if [ "x$D" != "x" ]; then
38 mkdir -p $MAEMOHOME/MyDocs || true
39 adduser --system --home "$MAEMOHOME" --no-create-home --disabled-password --ingroup "$MAEMOUSER" "$MAEMOUSER"
40 chown -R "$MAEMOUSER"."$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
41 chgrp "$MAEMOUSER" "$MAEMOHOME" 2>/dev/null