summaryrefslogtreecommitdiff
path: root/packages/opie-login
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/opie-login
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/opie-login')
-rw-r--r--packages/opie-login/.mtn2git_empty0
-rw-r--r--packages/opie-login/files/.mtn2git_empty0
-rw-r--r--packages/opie-login/files/opie-login.conf2
-rw-r--r--packages/opie-login/files/opie-session15
-rw-r--r--packages/opie-login/files/post-session22
-rw-r--r--packages/opie-login/files/pre-session39
-rw-r--r--packages/opie-login/opie-login.inc32
-rw-r--r--packages/opie-login/opie-login_1.2.0.bb12
8 files changed, 122 insertions, 0 deletions
diff --git a/packages/opie-login/.mtn2git_empty b/packages/opie-login/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/opie-login/.mtn2git_empty
diff --git a/packages/opie-login/files/.mtn2git_empty b/packages/opie-login/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/opie-login/files/.mtn2git_empty
diff --git a/packages/opie-login/files/opie-login.conf b/packages/opie-login/files/opie-login.conf
index e69de29bb2..13195b1c37 100644
--- a/packages/opie-login/files/opie-login.conf
+++ b/packages/opie-login/files/opie-login.conf
@@ -0,0 +1,2 @@
+[General]
+AutoLogin = root
diff --git a/packages/opie-login/files/opie-session b/packages/opie-login/files/opie-session
index e69de29bb2..f2425f6ef4 100644
--- a/packages/opie-login/files/opie-session
+++ b/packages/opie-login/files/opie-session
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ -x /usr/bin/ssh-agent ]; then
+ SSHAGENT=/usr/bin/ssh-agent
+else
+ SSHAGENT=""
+fi
+
+if [ -x $OPIEDIR/bin/opie-sh-ssh-askpass.sh ]; then
+ export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh
+fi
+
+$OPIEDIR/bin/opie-reorgfiles
+
+$SSHAGENT $OPIEDIR/bin/qpe
diff --git a/packages/opie-login/files/post-session b/packages/opie-login/files/post-session
index e69de29bb2..47dc59727f 100644
--- a/packages/opie-login/files/post-session
+++ b/packages/opie-login/files/post-session
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+permout ()
+{
+ if [ -e $1 ]
+ then
+ chown root $1
+ else
+ echo Warning: $1 does not exist.
+ return 1
+ fi
+}
+
+if [ -e /proc/hal/model ]; then
+ for i in /dev/sound/dsp /dev/sound/mixer /dev/touchscreen/* /dev/fb/0 /dev/vc/0; do
+ permout $i
+ done
+else
+ for i in /dev/dsp /dev/dsp1 /dev/mixer /dev/ts /dev/fb0 /dev/sharp* /dev/collie*; do
+ permout $i
+ done
+fi
diff --git a/packages/opie-login/files/pre-session b/packages/opie-login/files/pre-session
index e69de29bb2..2fdf7e9f23 100644
--- a/packages/opie-login/files/pre-session
+++ b/packages/opie-login/files/pre-session
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+USER=$1
+
+# NOTE about permissions in OpenZaurus
+# The devices in question here by default
+# are accessible to everyone in the group in
+# question. We wish to ensure that, as a policy
+# choice, a login to opie makes access to these
+# devices exclusive by 1) changing device ownership
+# to the user, and 2) removing group access.
+#
+# A better implementation would probably be to store
+# existing device permissions at load time, and restore
+# them at exit, rather than making assumptions about
+# user/group ownership, or permissions.
+
+permin ()
+{
+ if [ -e $1 ]
+ then
+ chown $USER $1
+ else
+ echo Warning: $1 does not exist.
+ return 1
+ fi
+}
+
+if [ -e /proc/hal/model ]; then
+ # fix for misconfigured devfsd
+ chmod +x /dev/sound /dev/touchscreen /dev/fb /dev/vc
+ for i in /dev/sound/dsp /dev/sound/mixer /dev/touchscreen/* /dev/fb/0 /dev/vc/0; do
+ permin $i
+ done
+else
+ for i in /dev/dsp/* /dev/dsp1 /dev/mixer /dev/ts /dev/fb0 /dev/sharp* /dev/collie*; do
+ permin $i
+ done
+fi
diff --git a/packages/opie-login/opie-login.inc b/packages/opie-login/opie-login.inc
index e69de29bb2..1dc7ed9289 100644
--- a/packages/opie-login/opie-login.inc
+++ b/packages/opie-login/opie-login.inc
@@ -0,0 +1,32 @@
+DESCRIPTION = "Opie Login Manager (similar to gdm, xdm or kdm)"
+SECTION = "opie/base"
+PRIORITY = "optional"
+MAINTAINER = "Team Opie <opie@handhelds.org>"
+LICENSE = "GPL"
+RRECOMMENDS = "opie-logoutapplet"
+APPNAME = "opie-login"
+
+BROKEN = 1
+
+S = "${WORKDIR}/${APPNAME}"
+
+inherit opie
+
+EXTRA_QMAKEVARS_POST_append = " LIBS-=-lpam"
+EXTRA_QMAKEVARS_POST_append = " DEFINES-=USEPAM"
+
+do_install() {
+ install -d ${D}${palmtopdir}/bin
+ install -d ${D}${palmtopdir}/etc
+ install -d ${D}${palmtopdir}/share/opie-login
+
+ install -m 755 ${WORKDIR}/${PN}/opie-login ${D}${palmtopdir}/bin
+ install -m 644 ${WORKDIR}/*-session ${D}${palmtopdir}/share/opie-login
+ install -m 644 ${WORKDIR}/opie-login.conf ${D}${palmtopdir}/etc
+}
+
+do_configure() {
+ install -d "${WORKDIR}/apps"
+ ln -s "${WORKDIR}/calibrate" "${WORKDIR}/apps/calibrate"
+ palmtop_do_configure
+}
diff --git a/packages/opie-login/opie-login_1.2.0.bb b/packages/opie-login/opie-login_1.2.0.bb
index e69de29bb2..593459138b 100644
--- a/packages/opie-login/opie-login_1.2.0.bb
+++ b/packages/opie-login/opie-login_1.2.0.bb
@@ -0,0 +1,12 @@
+include ${PN}.inc
+
+
+PR = "r0"
+
+SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/${APPNAME} \
+ ${HANDHELDS_CVS};tag=${TAG};module=opie/core/apps/calibrate \
+ ${HANDHELDS_CVS};tag=${TAG};module=opie/core/launcher \
+ file://opie-session \
+ file://post-session \
+ file://pre-session \
+ file://opie-login.conf"