diff options
Diffstat (limited to 'meta/recipes-graphics/builder/builder_0.1.bb')
-rw-r--r-- | meta/recipes-graphics/builder/builder_0.1.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb new file mode 100644 index 0000000000..ceb961206d --- /dev/null +++ b/meta/recipes-graphics/builder/builder_0.1.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "New user to do specific job" | ||
2 | DESCRIPTION = "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" | ||
3 | SECTION = "x11" | ||
4 | PR = "r0" | ||
5 | LICENSE = "MIT" | ||
6 | LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e" | ||
7 | |||
8 | SRC_URI = "file://builder_hob_start.sh" | ||
9 | |||
10 | S = "${WORKDIR}" | ||
11 | |||
12 | RDEPENDS_${PN} = "mini-x-session" | ||
13 | |||
14 | inherit useradd | ||
15 | |||
16 | USERADD_PACKAGES = "${PN}" | ||
17 | USERADD_PARAM_${PN} = "--system --create-home \ | ||
18 | --groups video,tty,audio \ | ||
19 | --user-group ${PN}" | ||
20 | |||
21 | do_install () { | ||
22 | install -d -m 755 ${D}/etc/mini_x/session.d | ||
23 | install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/ | ||
24 | |||
25 | chown ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh | ||
26 | } | ||
27 | |||