blob: bb729fce22097317a445c8767a6365f6ada9cfb8 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "New user to do specific job"
2DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
3SECTION = "x11"
4PR = "r6"
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
7
8SRC_URI = "file://builder_hob_start.sh \
9 file://please_wait_dialog.py \
10 "
11
12S = "${WORKDIR}"
13
14RDEPENDS_${PN} = "mini-x-session"
15
16inherit useradd
17
18# builder user password is "builder"
19BUILDER_PASSWORD ?= ".gLibiNXn0P12"
20USERADD_PACKAGES = "${PN}"
21USERADD_PARAM_${PN} = "--system --create-home \
22 --groups video,tty,audio \
23 --password ${BUILDER_PASSWORD} \
24 --user-group builder"
25
26do_install () {
27 install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
28 install -p -m 755 builder_hob_start.sh ${D}${sysconfdir}/mini_x/session.d/
29
30 chown builder.builder ${D}${sysconfdir}/mini_x/session.d/builder_hob_start.sh
31 install -p -m 755 please_wait_dialog.py ${D}${sysconfdir}/mini_x
32}
33