shadow-sysroot_4.6.bb 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. SUMMARY = "Shadow utils requirements for useradd.bbclass"
  2. HOMEPAGE = "http://github.com/shadow-maint/shadow"
  3. BUGTRACKER = "http://github.com/shadow-maint/shadow/issues"
  4. SECTION = "base utils"
  5. LICENSE = "BSD-3-Clause | Artistic-1.0"
  6. LIC_FILES_CHKSUM = "file://login.defs_shadow-sysroot;endline=1;md5=ceddfb61608e4db87012499555184aed"
  7. DEPENDS = "base-passwd"
  8. # The sole purpose of this recipe is to provide the /etc/login.defs
  9. # file for the target sysroot - needed so the shadow-native utilities
  10. # can add custom users/groups for recipes that use inherit useradd.
  11. SRC_URI = "file://login.defs_shadow-sysroot"
  12. S = "${WORKDIR}/sources"
  13. UNPACKDIR = "${S}"
  14. do_install() {
  15. install -d ${D}${sysconfdir}
  16. install -p -m 644 ${S}/login.defs_shadow-sysroot ${D}${sysconfdir}/login.defs
  17. }
  18. SYSROOT_DIRS += "${sysconfdir}"
  19. # don't create any packages
  20. # otherwise: dbus-dev depends on shadow-sysroot-dev which depends on shadow-sysroot
  21. # and this has another copy of /etc/login.defs already provided by shadow
  22. PACKAGES = ""
  23. inherit nopackages