summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-passwd
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/base-passwd')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd-3.5.22/mysql.patch13
-rw-r--r--meta/recipes-core/base-passwd/base-passwd-3.5.22/nobash.patch20
-rw-r--r--meta/recipes-core/base-passwd/base-passwd-3.5.22/root-home.patch11
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.22.bb50
4 files changed, 94 insertions, 0 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd-3.5.22/mysql.patch b/meta/recipes-core/base-passwd/base-passwd-3.5.22/mysql.patch
new file mode 100644
index 0000000000..8bfd757929
--- /dev/null
+++ b/meta/recipes-core/base-passwd/base-passwd-3.5.22/mysql.patch
@@ -0,0 +1,13 @@
1# set correct uid/gid for mysql, from OE (8836cd807198c224ed23b05fa4f708f096881b27).
2# however poky doesn't include mysql so far. Remove it from patch list, but keep
3# this patch for a while
4#
5# comment added by Kevin Tian <kevin.tian@intel.com>, 2010-07-06
6--- base-passwd/group.master.orig 2005-07-08 06:36:07.717990112 +0200
7+++ base-passwd/group.master 2005-07-08 06:36:32.000000000 +0200
8@@ -36,4 +36,5 @@
9 staff:*:50:
10 games:*:60:
11 users:*:100:
12+mysql:*:64001:
13 nogroup:*:65534:
diff --git a/meta/recipes-core/base-passwd/base-passwd-3.5.22/nobash.patch b/meta/recipes-core/base-passwd/base-passwd-3.5.22/nobash.patch
new file mode 100644
index 0000000000..52650166f8
--- /dev/null
+++ b/meta/recipes-core/base-passwd/base-passwd-3.5.22/nobash.patch
@@ -0,0 +1,20 @@
1# use /bin/sh instead of /bin/bash, since the latter may not be included in
2# some images such as minimal
3#
4# comment added by Kevin Tian <kevin.tian@intel.com>, 2010-07-06
5#
6# remove "*" for root since we don't have a /etc/shadow so far.
7#
8# by Kevin Tian <kevin.tian@intel.com>, 2010-07-06
9#
10# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
11#
12
13--- base-passwd/passwd.master~nobash
14+++ base-passwd/passwd.master
15@@ -1,4 +1,4 @@
16-root:*:0:0:root:/root:/bin/bash
17+root::0:0:root:/root:/bin/sh
18 daemon:*:1:1:daemon:/usr/sbin:/bin/sh
19 bin:*:2:2:bin:/bin:/bin/sh
20 sys:*:3:3:sys:/dev:/bin/sh
diff --git a/meta/recipes-core/base-passwd/base-passwd-3.5.22/root-home.patch b/meta/recipes-core/base-passwd/base-passwd-3.5.22/root-home.patch
new file mode 100644
index 0000000000..87c4655a04
--- /dev/null
+++ b/meta/recipes-core/base-passwd/base-passwd-3.5.22/root-home.patch
@@ -0,0 +1,11 @@
1# poky uses /home/root instead of /root.
2#
3# comment added by Kevin Tian <kevin.tian@intel.com>, 2010-07-06
4--- base-passwd/passwd.master.orig 2005-07-08 06:26:22.000000000 +0200
5+++ base-passwd/passwd.master 2005-07-08 06:31:58.000000000 +0200
6@@ -1,4 +1,4 @@
7-root::0:0:root:/root:/bin/sh
8+root::0:0:root:/home/root:/bin/sh
9 daemon:*:1:1:daemon:/usr/sbin:/bin/sh
10 bin:*:2:2:bin:/bin:/bin/sh
11 sys:*:3:3:sys:/dev:/bin/sh
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
new file mode 100644
index 0000000000..f0ca8e6280
--- /dev/null
+++ b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
@@ -0,0 +1,50 @@
1DESCRIPTION = "Base system password/group files."
2SECTION = "base"
3PR = "r0"
4LICENSE = "GPLv2+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
6
7SRC_URI = "${DEBIAN_MIRROR}/main/b/base-passwd/base-passwd_${PV}.tar.gz \
8 file://nobash.patch \
9 file://root-home.patch"
10
11S = "${WORKDIR}/base-passwd"
12
13inherit autotools
14
15do_install () {
16 install -d -m 755 ${D}${sbindir}
17 install -p -m 755 update-passwd ${D}${sbindir}/
18 install -d -m 755 ${D}${mandir}/man8 ${D}${mandir}/pl/man8
19 install -p -m 644 man/update-passwd.8 ${D}${mandir}/man8/
20 install -p -m 644 man/update-passwd.pl.8 \
21 ${D}${mandir}/pl/man8/update-passwd.8
22 gzip -9 ${D}${mandir}/man8/* ${D}${mandir}/pl/man8/*
23 install -d -m 755 ${D}${datadir}/base-passwd
24 install -p -m 644 passwd.master ${D}${datadir}/base-passwd/
25 install -p -m 644 group.master ${D}${datadir}/base-passwd/
26
27 install -d -m 755 ${D}${docdir}/${PN}
28 install -p -m 644 debian/changelog ${D}${docdir}/${PN}/
29 gzip -9 ${D}${docdir}/${PN}/*
30 install -p -m 644 README ${D}${docdir}/${PN}/
31 install -p -m 644 debian/copyright ${D}${docdir}/${PN}/
32}
33
34do_install_append_openmn() {
35 echo "0:Jn6tcg/qjqvUE:0:0:root:/root:/bin/sh" >>${D}${datadir}/base-passwd/passwd.master
36}
37
38
39pkg_postinst () {
40 set -e
41
42 if [ ! -e $D${sysconfdir}/passwd ] ; then
43 cp $D${datadir}/base-passwd/passwd.master $D${sysconfdir}/passwd
44 fi
45
46 if [ ! -e $D${sysconfdir}/group ] ; then
47 cp $D${datadir}/base-passwd/group.master $D${sysconfdir}/group
48 fi
49 exit 0
50}