diff options
Diffstat (limited to 'meta/recipes-extended/shadow/shadow-sysroot_4.6.bb')
-rw-r--r-- | meta/recipes-extended/shadow/shadow-sysroot_4.6.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow-sysroot_4.6.bb b/meta/recipes-extended/shadow/shadow-sysroot_4.6.bb new file mode 100644 index 0000000000..00ab58b38c --- /dev/null +++ b/meta/recipes-extended/shadow/shadow-sysroot_4.6.bb @@ -0,0 +1,30 @@ +SUMMARY = "Shadow utils requirements for useradd.bbclass" +HOMEPAGE = "http://github.com/shadow-maint/shadow" +BUGTRACKER = "http://github.com/shadow-maint/shadow/issues" +SECTION = "base utils" +LICENSE = "BSD-3-Clause | Artistic-1.0" +LIC_FILES_CHKSUM = "file://login.defs_shadow-sysroot;endline=1;md5=ceddfb61608e4db87012499555184aed" + +DEPENDS = "base-passwd" + + +# The sole purpose of this recipe is to provide the /etc/login.defs +# file for the target sysroot - needed so the shadow-native utilities +# can add custom users/groups for recipes that use inherit useradd. +SRC_URI = "file://login.defs_shadow-sysroot" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}${sysconfdir} + install -p -m 644 ${S}/login.defs_shadow-sysroot ${D}${sysconfdir}/login.defs +} + +SYSROOT_DIRS += "${sysconfdir}" + +# don't create any packages +# otherwise: dbus-dev depends on shadow-sysroot-dev which depends on shadow-sysroot +# and this has another copy of /etc/login.defs already provided by shadow +PACKAGES = "" + +inherit nopackages |