diff options
Diffstat (limited to 'recipes/opie-login')
-rw-r--r-- | recipes/opie-login/files/opie-login.conf | 2 | ||||
-rw-r--r-- | recipes/opie-login/files/opie-session | 15 | ||||
-rw-r--r-- | recipes/opie-login/files/post-session | 22 | ||||
-rw-r--r-- | recipes/opie-login/files/pre-session | 39 | ||||
-rw-r--r-- | recipes/opie-login/opie-login.inc | 31 | ||||
-rw-r--r-- | recipes/opie-login/opie-login_1.2.2.bb | 11 | ||||
-rw-r--r-- | recipes/opie-login/opie-login_1.2.3.bb | 10 | ||||
-rw-r--r-- | recipes/opie-login/opie-login_1.2.4.bb | 10 | ||||
-rw-r--r-- | recipes/opie-login/opie-login_cvs.bb | 11 |
9 files changed, 151 insertions, 0 deletions
diff --git a/recipes/opie-login/files/opie-login.conf b/recipes/opie-login/files/opie-login.conf new file mode 100644 index 0000000000..13195b1c37 --- /dev/null +++ b/recipes/opie-login/files/opie-login.conf @@ -0,0 +1,2 @@ +[General] +AutoLogin = root diff --git a/recipes/opie-login/files/opie-session b/recipes/opie-login/files/opie-session new file mode 100644 index 0000000000..f2425f6ef4 --- /dev/null +++ b/recipes/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/recipes/opie-login/files/post-session b/recipes/opie-login/files/post-session new file mode 100644 index 0000000000..47dc59727f --- /dev/null +++ b/recipes/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/recipes/opie-login/files/pre-session b/recipes/opie-login/files/pre-session new file mode 100644 index 0000000000..2fdf7e9f23 --- /dev/null +++ b/recipes/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/recipes/opie-login/opie-login.inc b/recipes/opie-login/opie-login.inc new file mode 100644 index 0000000000..8000cf9d45 --- /dev/null +++ b/recipes/opie-login/opie-login.inc @@ -0,0 +1,31 @@ +DESCRIPTION = "Opie Login Manager (similar to gdm, xdm or kdm)" +SECTION = "opie/base" +PRIORITY = "optional" +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/recipes/opie-login/opie-login_1.2.2.bb b/recipes/opie-login/opie-login_1.2.2.bb new file mode 100644 index 0000000000..c9c6c5f5e0 --- /dev/null +++ b/recipes/opie-login/opie-login_1.2.2.bb @@ -0,0 +1,11 @@ +require ${PN}.inc + + + +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" diff --git a/recipes/opie-login/opie-login_1.2.3.bb b/recipes/opie-login/opie-login_1.2.3.bb new file mode 100644 index 0000000000..449b6ba8ed --- /dev/null +++ b/recipes/opie-login/opie-login_1.2.3.bb @@ -0,0 +1,10 @@ +require ${PN}.inc + + +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" diff --git a/recipes/opie-login/opie-login_1.2.4.bb b/recipes/opie-login/opie-login_1.2.4.bb new file mode 100644 index 0000000000..449b6ba8ed --- /dev/null +++ b/recipes/opie-login/opie-login_1.2.4.bb @@ -0,0 +1,10 @@ +require ${PN}.inc + + +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" diff --git a/recipes/opie-login/opie-login_cvs.bb b/recipes/opie-login/opie-login_cvs.bb new file mode 100644 index 0000000000..f009d24b4f --- /dev/null +++ b/recipes/opie-login/opie-login_cvs.bb @@ -0,0 +1,11 @@ +require ${PN}.inc + +PV = "${OPIE_CVS_PV}" + +SRC_URI = "${HANDHELDS_CVS};module=opie/core/${APPNAME} \ + ${HANDHELDS_CVS};module=opie/core/apps/calibrate \ + ${HANDHELDS_CVS};module=opie/core/launcher \ + file://opie-session \ + file://post-session \ + file://pre-session \ + file://opie-login.conf" |