blob: 39be3bd63ffe5e6a604960ba202f4a8f173d6e3e [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"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006LIC_FILES_CHKSUM = "file://builder_session.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008SRC_URI = "file://builder_session.sh \
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009 "
10
11S = "${WORKDIR}"
12
Patrick Williams213cb262021-08-07 19:21:33 -050013RDEPENDS:${PN} = "mini-x-session"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014
15inherit useradd
16
17# builder user password is "builder"
18BUILDER_PASSWORD ?= ".gLibiNXn0P12"
19USERADD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -050020USERADD_PARAM:${PN} = "--system --create-home \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021 --groups video,tty,audio \
22 --password ${BUILDER_PASSWORD} \
23 --user-group builder"
24
25do_install () {
26 install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050027 install -p -m 755 builder_session.sh ${D}${sysconfdir}/mini_x/session.d/
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029 chown builder.builder ${D}${sysconfdir}/mini_x/session.d/builder_session.sh
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030}
31
William A. Kennington IIIac69b482021-06-02 12:28:27 -070032# -4178 is an unrelated 'builder'
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000033CVE_CHECK_IGNORE = "CVE-2008-4178"