diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-14 13:54:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-15 12:05:25 +0000 |
commit | d3c950e62254d5f1be0d591d858bde9a37dfabf3 (patch) | |
tree | 75e1ff3e5e91918d82b921a0f44452b994bf93ac /meta/recipes-core | |
parent | d0151bcd7bc8124fc9c448a01eb0e093c4f23250 (diff) | |
download | poky-d3c950e62254d5f1be0d591d858bde9a37dfabf3.tar.gz |
base-passwd: Move update-passwd into a separate package
update-passwd is the only user of the passwd/group.master files
and was never used by OE since it wasn't run.
This patch packages this separately and adds an appropriate postinst
to make the package useful so people can include it as they wish.
(From OE-Core rev: 77ab0f09546c5f6217a8e2f1bc30cf3d4306e3fa)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/base-passwd/base-passwd_3.5.22.bb | 14 |
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 @@ | |||
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 = "r5" | 4 | PR = "r9" |
5 | LICENSE = "GPLv2+" | 5 | LICENSE = "GPLv2+" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" |
7 | 7 | ||
@@ -16,6 +16,11 @@ S = "${WORKDIR}/base-passwd" | |||
16 | 16 | ||
17 | inherit autotools | 17 | inherit autotools |
18 | 18 | ||
19 | PACKAGES =+ "${PN}-update" | ||
20 | FILES_${PN}-update = "${sbindir}/* ${datadir}/${PN}" | ||
21 | |||
22 | ALLOW_EMPTY_${PN} = "1" | ||
23 | |||
19 | SSTATEPOSTINSTFUNCS += "base_passwd_sstate_postinst" | 24 | SSTATEPOSTINSTFUNCS += "base_passwd_sstate_postinst" |
20 | 25 | ||
21 | do_install () { | 26 | do_install () { |
@@ -78,3 +83,10 @@ fi | |||
78 | d.setVar('pkg_preinst_${PN}', preinst) | 83 | d.setVar('pkg_preinst_${PN}', preinst) |
79 | } | 84 | } |
80 | 85 | ||
86 | pkg_postinst_${PN}-update () { | ||
87 | #!/bin/sh | ||
88 | if [ -n "$D" ]; then | ||
89 | exit 0 | ||
90 | fi | ||
91 | ${sbindir}/update-passwd | ||
92 | } | ||