blob: 81817d1e25c8a06f63d93e8d5189d55ae1de28c3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Creates an 'xuser' account used for running X11"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4
Patrick Williamsf1e5d692016-03-30 15:21:19 -05005SRC_URI = "file://system-xuser.conf"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006
7inherit allarch useradd
8
9do_configure() {
10 :
11}
12
13do_compile() {
14 :
15}
16
17do_install() {
Patrick Williamsf1e5d692016-03-30 15:21:19 -050018 install -D -m 0644 ${WORKDIR}/system-xuser.conf ${D}${sysconfdir}/dbus-1/system.d/system-xuser.conf
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019}
20
Patrick Williamsf1e5d692016-03-30 15:21:19 -050021FILES_${PN} = "${sysconfdir}/dbus-1/system.d/system-xuser.conf"
22
Patrick Williamsc124f4f2015-09-15 14:41:29 -050023USERADD_PACKAGES = "${PN}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024USERADD_PARAM_${PN} = "--create-home \
25 --groups video,tty,audio,input,shutdown,disk \
26 --user-group xuser"
27
28ALLOW_EMPTY_${PN} = "1"