summaryrefslogtreecommitdiff
path: root/recipes/base-passwd
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2009-06-14 11:18:09 +0100
committerPhil Blundell <philb@gnu.org>2009-06-14 11:18:09 +0100
commit2088234985ba46a767634f0959690015c4f032ce (patch)
treebdd2296e14ebf23e211d9f69879db87f56e131d6 /recipes/base-passwd
parent1d2cdebb360b780745e03ecd9c7eba0a9858d15c (diff)
base-passwd: adjust packaging for micro
Diffstat (limited to 'recipes/base-passwd')
-rw-r--r--recipes/base-passwd/base-passwd_3.5.20.bb27
1 files changed, 19 insertions, 8 deletions
diff --git a/recipes/base-passwd/base-passwd_3.5.20.bb b/recipes/base-passwd/base-passwd_3.5.20.bb
index 78079a0aa6..5305730a9f 100644
--- a/recipes/base-passwd/base-passwd_3.5.20.bb
+++ b/recipes/base-passwd/base-passwd_3.5.20.bb
@@ -1,6 +1,7 @@
DESCRIPTION = "Base system password/group files."
SECTION = "base"
LICENSE = "GPL"
+PR = "r1"
SRC_URI = "\
${DEBIAN_MIRROR}/main/b/base-passwd/base-passwd_${PV}.tar.gz \
@@ -12,9 +13,7 @@ S = "${WORKDIR}/base-passwd"
inherit autotools
-do_install () {
- install -d -m 755 ${D}${sbindir}
- install -p -m 755 update-passwd ${D}${sbindir}/
+do_install_docs () {
install -d -m 755 \
${D}${mandir}/man8 ${D}${mandir}/pl/man8
install -p -m 644 man/update-passwd.8 \
@@ -23,11 +22,6 @@ do_install () {
${D}${mandir}/pl/man8/update-passwd.8
gzip -9 ${D}${mandir}/man8/* \
${D}${mandir}/pl/man8/*
- install -d -m 755 ${D}${datadir}/base-passwd
- install -p -m 644 passwd.master \
- ${D}${datadir}/base-passwd/
- install -p -m 644 group.master \
- ${D}${datadir}/base-passwd/
install -d -m 755 ${D}${docdir}/${PN}
install -p -m 644 debian/changelog ${D}${docdir}/${PN}/
@@ -36,6 +30,23 @@ do_install () {
install -p -m 644 debian/copyright ${D}${docdir}/${PN}/
}
+do_install () {
+ do_install_docs
+
+ install -d -m 755 ${D}${sbindir}
+ install -p -m 755 update-passwd ${D}${sbindir}/
+ install -d -m 755 ${D}${datadir}/base-passwd
+ install -p -m 644 passwd.master \
+ ${D}${datadir}/base-passwd/
+ install -p -m 644 group.master \
+ ${D}${datadir}/base-passwd/
+}
+
+do_install_micro () {
+ install -d -m 755 ${D}${sysconfdir}
+ install -p -m 644 passwd.master ${D}${sysconfdir}/passwd
+ install -p -m 644 group.master ${D}${sysconfdir}/group
+}
do_install_append_openmn() {
echo "0:Jn6tcg/qjqvUE:0:0:root:/root:/bin/sh" >>${D}${datadir}/base-passwd/passwd.master