mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-20 07:57:44 +00:00
pcsc-lite: create pcscd user and group also via useradd
The recipe currently only does this via systemd-sysusers. This does not work for read-only root filesystems, though. So use useradd to create the pcscd user and group. Signed-off-by: Bastian Krause <bst@pengutronix.de> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
1 parent
201c25456e
commit
46fad8b381
1 file changed
+4
-1
@@ -14,7 +14,7 @@ DEPENDS = "autoconf-archive-native flex-native"
|
||||
SRC_URI = "https://pcsclite.apdu.fr/files/${BP}.tar.xz"
|
||||
SRC_URI[sha256sum] = "bfcfe38a20afc49849c6bf55325e38f449fc4b26d3923fdc32b969ae41a8741b"
|
||||
|
||||
inherit meson systemd pkgconfig perlnative
|
||||
inherit meson systemd pkgconfig perlnative useradd
|
||||
|
||||
EXTRA_OEMESON = " \
|
||||
-Dlibusb=false \
|
||||
@@ -37,6 +37,9 @@ RRECOMMENDS:${PN} = "ccid"
|
||||
RRECOMMENDS:${PN}:class-native = ""
|
||||
RPROVIDES:${PN}:append:class-native = " pcsc-lite-lib-native"
|
||||
|
||||
USERADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM:${PN} = "--system --no-create-home --shell /sbin/nologin --user-group pcscd"
|
||||
|
||||
FILES:${PN} = "${sbindir}/pcscd \
|
||||
${datadir}/polkit-1 \
|
||||
${systemd_system_unitdir}/pcscd.service \
|
||||
|
||||
Reference in new issue
Block a user