summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.22.bb14
1 files changed, 13 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 05be23f7e2..5feb924214 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 @@
1SUMMARY = "Base system master password/group files." 1SUMMARY = "Base system master password/group files."
2DESCRIPTION = "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." 2DESCRIPTION = "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."
3SECTION = "base" 3SECTION = "base"
4PR = "r5" 4PR = "r9"
5LICENSE = "GPLv2+" 5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" 6LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
7 7
@@ -16,6 +16,11 @@ S = "${WORKDIR}/base-passwd"
16 16
17inherit autotools 17inherit autotools
18 18
19PACKAGES =+ "${PN}-update"
20FILES_${PN}-update = "${sbindir}/* ${datadir}/${PN}"
21
22ALLOW_EMPTY_${PN} = "1"
23
19SSTATEPOSTINSTFUNCS += "base_passwd_sstate_postinst" 24SSTATEPOSTINSTFUNCS += "base_passwd_sstate_postinst"
20 25
21do_install () { 26do_install () {
@@ -78,3 +83,10 @@ fi
78 d.setVar('pkg_preinst_${PN}', preinst) 83 d.setVar('pkg_preinst_${PN}', preinst)
79} 84}
80 85
86pkg_postinst_${PN}-update () {
87#!/bin/sh
88if [ -n "$D" ]; then
89 exit 0
90fi
91${sbindir}/update-passwd
92}