xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/shadow/shadow-sysroot_4.6.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Shadow utils requirements for useradd.bbclass"
2*4882a593SmuzhiyunHOMEPAGE = "http://github.com/shadow-maint/shadow"
3*4882a593SmuzhiyunBUGTRACKER = "http://github.com/shadow-maint/shadow/issues"
4*4882a593SmuzhiyunSECTION = "base utils"
5*4882a593SmuzhiyunLICENSE = "BSD-3-Clause | Artistic-1.0"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://login.defs_shadow-sysroot;md5=25e2f2de4dfc8f966ac5cdfce45cd7d5"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunDEPENDS = "base-passwd"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunPR = "r3"
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun# The sole purpose of this recipe is to provide the /etc/login.defs
13*4882a593Smuzhiyun# file for the target sysroot - needed so the shadow-native utilities
14*4882a593Smuzhiyun# can add custom users/groups for recipes that use inherit useradd.
15*4882a593SmuzhiyunSRC_URI = "file://login.defs_shadow-sysroot"
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunS = "${WORKDIR}"
18*4882a593Smuzhiyun
19*4882a593Smuzhiyundo_install() {
20*4882a593Smuzhiyun	install -d ${D}${sysconfdir}
21*4882a593Smuzhiyun	install -p -m 644 ${S}/login.defs_shadow-sysroot ${D}${sysconfdir}/login.defs
22*4882a593Smuzhiyun}
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunSYSROOT_DIRS += "${sysconfdir}"
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun# don't create any packages
27*4882a593Smuzhiyun# otherwise: dbus-dev depends on shadow-sysroot-dev which depends on shadow-sysroot
28*4882a593Smuzhiyun# and this has another copy of /etc/login.defs already provided by shadow
29*4882a593SmuzhiyunPACKAGES = ""
30*4882a593Smuzhiyun
31*4882a593Smuzhiyuninherit nopackages
32