1 DEPENDS = "virtual/libc"
4 SRC_URI = "${DEBIAN_MIRROR}/main/b/base-passwd/base-passwd_${PV}.tar.gz \
5 file://${FILESDIR}/configure.patch;patch=1 \
6 file://${FILESDIR}/nobash.patch;patch=1"
10 #do_compile_append () {
15 install -d -m 755 ${D}/${sbindir}
16 install -p -m 755 update-passwd ${D}/${sbindir}/
18 ${D}/${mandir}/man8 ${D}/${mandir}/pl/man8
19 install -p -m 644 man/update-passwd.8 \
21 install -p -m 644 man/update-passwd.pl.8 \
22 ${D}/${mandir}/pl/man8/update-passwd.8
23 gzip -9 ${D}/${mandir}/man8/* \
24 ${D}/${mandir}/pl/man8/*
25 install -d -m 755 ${D}/${datadir}/base-passwd
26 install -p -m 644 passwd.master \
27 ${D}/${datadir}/base-passwd/
28 install -p -m 644 group.master \
29 ${D}/${datadir}/base-passwd/
31 install -d -m 755 ${D}/${docdir}/${P}
32 install -p -m 644 debian/changelog ${D}/${docdir}/${P}/
33 gzip -9 ${D}/${docdir}/${P}/*
34 install -p -m 644 README ${D}/${docdir}/${P}/
35 install -p -m 644 debian/copyright ${D}/${docdir}/${P}/
37 # doc/users-and-groups.html doc/users-and-groups.txt \
38 # ${D}/${docdir}/${P}/
39 # gzip -9 ${D}/${docdir}/${P}/users-and-groups.txt
45 # if [ X"$1" != Xconfigure ]; then
49 if [ ! -e ${D}/${sysconfdir}/passwd ] ; then
50 cp ${D}/${datadir}/base-passwd/passwd.master ${D}/${sysconfdir}/passwd
53 if [ ! -e ${D}/${sysconfdir}/group ] ; then
54 cp ${D}/${datadir}/base-passwd/group.master ${D}/${sysconfdir}/group
57 # if ! [ -x ${sbindir}/update-passwd ]; then
58 # echo >&2 "`dirname $0`: ${sbindir}/update-passwd does not exist,"
59 # echo >&2 "or is not executable"
62 # update-passwd -p ${D}/${datadir}/base-passwd/passwd.master \
63 # -g ${D}/${datadir}/base-passwd/group.master \
64 # -P ${D}/${sysconfdir}/passwd \
65 # -G ${D}/${sysconfdir}/group \
66 # -S ${D}/${sysconfdir}/shadow --dry-run