summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/builder/builder_0.1.bb
blob: ceb961206d3898176e1b23857533a2fab98d0e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SUMMARY = "New user to do specific job"
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"
SECTION = "x11"
PR = "r0"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"

SRC_URI = "file://builder_hob_start.sh"

S = "${WORKDIR}"

RDEPENDS_${PN} = "mini-x-session"

inherit useradd

USERADD_PACKAGES = "${PN}"
USERADD_PARAM_${PN} = "--system --create-home \
                       --groups video,tty,audio \
                       --user-group ${PN}"

do_install () {
	install -d -m 755 ${D}/etc/mini_x/session.d
	install -p -m 755 builder_hob_start.sh ${D}/etc/mini_x/session.d/

	chown  ${PN}.${PN} ${D}/etc/mini_x/session.d/builder_hob_start.sh
}