summaryrefslogtreecommitdiff
path: root/packages/maemo
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-06-17 19:40:10 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-06-17 19:40:10 +0000
commita7b30f8d32100cac63a79286a2e5a10aac744d1c (patch)
tree21a37451e3649da7f2b995e32624c2c0684adb66 /packages/maemo
parent19edb1d8e5c8f04943be2d4cfeb503ceab947682 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/06/17 21:38:22+02:00 utwente.nl!koen xaw_7.0.2.bb: add AUXDIR patch, fixes bug #6 2005/06/17 21:06:56+02:00 utwente.nl!koen maemo-image.bb: prefer some versions and providers 2005/06/17 20:57:55+02:00 utwente.nl!koen osso-core-config_200515.1.bb: tweak osso-core-config postinst, courtesy Florian Boor add dbus-0.23.1-osso, courtesy Florian Boor BKrev: 42b3271axW-O5s3qTWvT15Ugo3C0YQ
Diffstat (limited to 'packages/maemo')
-rw-r--r--packages/maemo/osso-core-config_200515.1.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/packages/maemo/osso-core-config_200515.1.bb b/packages/maemo/osso-core-config_200515.1.bb
index e69de29bb2..1010e91e8a 100644
--- a/packages/maemo/osso-core-config_200515.1.bb
+++ b/packages/maemo/osso-core-config_200515.1.bb
@@ -0,0 +1,41 @@
+LICENSE = "unknown"
+MAINTAINER= "Florian Boor <florian@kernelconcepts.de"
+PR = "r4"
+
+DEPENDS = "base-passwd osso-af-startup"
+RDEPENDS = "base-passwd osso-af-startup"
+
+SRC_URI = "http://stage.maemo.org:80/pool/maemo/ossw/source/o/${PN}/${PN}_${PV}.tar.gz"
+
+
+inherit autotools update-rc.d
+
+FILES_${PN} = "${sysconfdir}/osso-af-init ${sysconfdir}/init.d/"
+
+INITSCRIPT_NAME = "x-server.sh"
+INITSCRIPT_PARAMS = "defaults 21"
+
+
+do_install () {
+ install -d ${D}${sysconfdir}/osso-af-init
+ install -m 755 ${S}/x-server.defs ${D}/${sysconfdir}/osso-af-init/x-server.defs
+
+ install -d ${D}${sysconfdir}/init.d
+ install -m 755 ${S}/x-server.sh ${D}/${sysconfdir}/init.d/x-server.sh
+}
+
+pkg_postinst () {
+#!/bin/sh
+
+# can't do adduser stuff offline
+if [ "x$D" != "x" ]; then
+ exit 1
+fi
+
+MAEMOUSER=user
+MAEMOHOME=/home/user
+
+mkdir -p $MAEMOHOME/MyDocs || true
+chgrp "$MAEMOUSER" "$MAEMOHOME" 2>/dev/null || addgroup "$MAEMOUSER"
+adduser --system --home "$MAEMOHOME" --no-create-home --disabled-password --ingroup "$MAEMOUSER" "$MAEMOUSER" || chown -R "$MAEMOUSER"."$MAEMOUSER" "$MAEMOHOME" 2>/dev/null
+}