2005-09-28 09:25:37 +00:00
|
|
|
DESCRIPTION = "Simple Xserver Init Script (no dm)"
|
2010-12-07 09:42:14 +00:00
|
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
|
2005-09-28 09:25:37 +00:00
|
|
|
SECTION = "x11"
|
2011-12-16 07:53:22 +00:00
|
|
|
PR = "r29"
|
2011-08-30 21:23:38 +00:00
|
|
|
RDEPENDS_${PN} = "sudo"
|
2005-09-28 09:25:37 +00:00
|
|
|
|
2010-12-07 09:42:14 +00:00
|
|
|
SRC_URI = "file://xserver-nodm \
|
2011-02-22 12:41:19 +00:00
|
|
|
file://Xusername \
|
2010-12-07 09:42:14 +00:00
|
|
|
file://gplv2-license.patch"
|
|
|
|
|
2012-02-26 21:53:02 +00:00
|
|
|
S = "${WORKDIR}"
|
2005-09-28 09:25:37 +00:00
|
|
|
|
2011-03-19 01:30:12 +00:00
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
2006-02-10 14:33:55 +00:00
|
|
|
|
2005-09-28 09:25:37 +00:00
|
|
|
do_install() {
|
|
|
|
install -d ${D}/etc
|
|
|
|
install -d ${D}/etc/init.d
|
|
|
|
install xserver-nodm ${D}/etc/init.d
|
2011-02-22 12:41:19 +00:00
|
|
|
if [ "${ROOTLESS_X}" = "1" ] ; then
|
|
|
|
install -d ${D}/etc/X11
|
|
|
|
install Xusername ${D}/etc/X11
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2011-10-27 14:16:40 +00:00
|
|
|
inherit update-rc.d useradd
|
2005-09-28 09:25:37 +00:00
|
|
|
|
|
|
|
INITSCRIPT_NAME = "xserver-nodm"
|
2008-07-16 09:40:54 +00:00
|
|
|
INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ."
|
2011-10-27 14:16:40 +00:00
|
|
|
|
|
|
|
# Use fixed Xusername of xuser for now, this will need to be
|
|
|
|
# fixed if the Xusername changes from xuser
|
2012-06-12 14:11:24 +00:00
|
|
|
# IMPORTANT: because xuser is shared with connman, please make sure the
|
|
|
|
# USERADD_PARAM is in sync with the one in connman.inc
|
2011-10-27 14:16:40 +00:00
|
|
|
USERADD_PACKAGES = "${PN}"
|
2011-12-16 07:53:22 +00:00
|
|
|
USERADD_PARAM_${PN} = "--create-home \
|
|
|
|
--groups video,tty,audio \
|
2011-10-27 14:16:40 +00:00
|
|
|
--user-group xuser"
|
|
|
|
|