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 | 32 |
1 files changed, 32 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..ef014628f6 --- /dev/null +++ b/meta/recipes-extended/shadow/shadow-sysroot_4.6.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | SUMMARY = "Shadow utils requirements for useradd.bbclass" | ||
2 | HOMEPAGE = "http://pkg-shadow.alioth.debian.org" | ||
3 | BUGTRACKER = "https://alioth.debian.org/tracker/?group_id=30580" | ||
4 | SECTION = "base utils" | ||
5 | LICENSE = "BSD | Artistic-1.0" | ||
6 | LIC_FILES_CHKSUM = "file://login.defs_shadow-sysroot;md5=25e2f2de4dfc8f966ac5cdfce45cd7d5" | ||
7 | |||
8 | DEPENDS = "base-passwd" | ||
9 | |||
10 | PR = "r3" | ||
11 | |||
12 | # The sole purpose of this recipe is to provide the /etc/login.defs | ||
13 | # file for the target sysroot - needed so the shadow-native utilities | ||
14 | # can add custom users/groups for recipes that use inherit useradd. | ||
15 | SRC_URI = "file://login.defs_shadow-sysroot" | ||
16 | |||
17 | SRC_URI[md5sum] = "b8608d8294ac88974f27b20f991c0e79" | ||
18 | SRC_URI[sha256sum] = "633f5bb4ea0c88c55f3642c97f9d25cbef74f82e0b4cf8d54e7ad6f9f9caa778" | ||
19 | |||
20 | S = "${WORKDIR}" | ||
21 | |||
22 | do_install() { | ||
23 | install -d ${D}${sysconfdir} | ||
24 | install -p -m 644 ${S}/login.defs_shadow-sysroot ${D}${sysconfdir}/login.defs | ||
25 | } | ||
26 | |||
27 | SYSROOT_DIRS += "${sysconfdir}" | ||
28 | |||
29 | # don't create any packages | ||
30 | # otherwise: dbus-dev depends on shadow-sysroot-dev which depends on shadow-sysroot | ||
31 | # and this has another copy of /etc/login.defs already provided by shadow | ||
32 | PACKAGES = "" | ||