diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/base-passwd/base-passwd_3.5.22.bb | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb index 137512dc3c..aa90a6d925 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | SUMMARY = "Base system master password/group files." | 1 | SUMMARY = "Base system master password/group files." |
| 2 | DESCRIPTION = "The master copies of the user database files (/etc/passwd and /etc/group). The update-passwd tool is also provided to keep the system databases synchronized with these master files." | 2 | DESCRIPTION = "The master copies of the user database files (/etc/passwd and /etc/group). The update-passwd tool is also provided to keep the system databases synchronized with these master files." |
| 3 | SECTION = "base" | 3 | SECTION = "base" |
| 4 | PR = "r3" | 4 | PR = "r4" |
| 5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" |
| 7 | 7 | ||
| @@ -37,6 +37,23 @@ do_install () { | |||
| 37 | install -p -m 644 debian/copyright ${D}${docdir}/${BPN}/ | 37 | install -p -m 644 debian/copyright ${D}${docdir}/${BPN}/ |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | pkg_preinst_${PN} () { | ||
| 41 | set -e | ||
| 42 | |||
| 43 | # Used for rootfs generation. On in-target install this will be run | ||
| 44 | # before the unpack so the files won't be available | ||
| 45 | |||
| 46 | if [ ! -e $D${sysconfdir}/passwd ] && [ -e $D${datadir}/base-passwd/passwd.master ]; then | ||
| 47 | cp $D${datadir}/base-passwd/passwd.master $D${sysconfdir}/passwd | ||
| 48 | fi | ||
| 49 | |||
| 50 | if [ ! -e $D${sysconfdir}/group ] && [ -e $D${datadir}/base-passwd/group.master ]; then | ||
| 51 | cp $D${datadir}/base-passwd/group.master $D${sysconfdir}/group | ||
| 52 | fi | ||
| 53 | |||
| 54 | exit 0 | ||
| 55 | } | ||
| 56 | |||
| 40 | pkg_postinst_${PN} () { | 57 | pkg_postinst_${PN} () { |
| 41 | set -e | 58 | set -e |
| 42 | 59 | ||
