Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Creates an 'xuser' account used for running X11" |
| 2 | LICENSE = "MIT" |
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
| 4 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 5 | SRC_URI = "file://system-xuser.conf" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | |
| 7 | inherit allarch useradd |
| 8 | |
| 9 | do_configure() { |
| 10 | : |
| 11 | } |
| 12 | |
| 13 | do_compile() { |
| 14 | : |
| 15 | } |
| 16 | |
| 17 | do_install() { |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 18 | install -D -m 0644 ${WORKDIR}/system-xuser.conf ${D}${sysconfdir}/dbus-1/system.d/system-xuser.conf |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | } |
| 20 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 21 | FILES_${PN} = "${sysconfdir}/dbus-1/system.d/system-xuser.conf" |
| 22 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | USERADD_PACKAGES = "${PN}" |
| 24 | GROUPADD_PARAM_${PN} = "--system shutdown" |
| 25 | USERADD_PARAM_${PN} = "--create-home \ |
| 26 | --groups video,tty,audio,input,shutdown,disk \ |
| 27 | --user-group xuser" |
| 28 | |
| 29 | ALLOW_EMPTY_${PN} = "1" |