diff options
Diffstat (limited to 'meta/packages/base-passwd')
5 files changed, 111 insertions, 0 deletions
diff --git a/meta/packages/base-passwd/base-passwd-3.5.9/configure.patch b/meta/packages/base-passwd/base-passwd-3.5.9/configure.patch new file mode 100644 index 0000000000..a9adb1e9e2 --- /dev/null +++ b/meta/packages/base-passwd/base-passwd-3.5.9/configure.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- base-passwd/configure.in~configure | ||
7 | +++ base-passwd/configure.in | ||
8 | @@ -1,5 +1,6 @@ | ||
9 | dnl Initialize the autoconf process | ||
10 | -AC_INIT(update-passwd.c) | ||
11 | +AC_INIT | ||
12 | +AC_CONFIG_SRCDIR([update-passwd.c]) | ||
13 | AC_CONFIG_HEADER(config.h) | ||
14 | AC_PREFIX_DEFAULT(/usr) | ||
15 | |||
16 | @@ -12,5 +13,6 @@ | ||
17 | AC_CHECK_FUNCS(putgrent) | ||
18 | |||
19 | dnl Finally output everything | ||
20 | -AC_OUTPUT(Makefile) | ||
21 | +AC_CONFIG_FILES([Makefile]) | ||
22 | +AC_OUTPUT | ||
23 | |||
diff --git a/meta/packages/base-passwd/base-passwd-3.5.9/mysql.patch b/meta/packages/base-passwd/base-passwd-3.5.9/mysql.patch new file mode 100644 index 0000000000..b641f41238 --- /dev/null +++ b/meta/packages/base-passwd/base-passwd-3.5.9/mysql.patch | |||
@@ -0,0 +1,8 @@ | |||
1 | --- base-passwd/group.master.orig 2005-07-08 06:36:07.717990112 +0200 | ||
2 | +++ base-passwd/group.master 2005-07-08 06:36:32.000000000 +0200 | ||
3 | @@ -36,4 +36,5 @@ | ||
4 | staff:*:50: | ||
5 | games:*:60: | ||
6 | users:*:100: | ||
7 | +mysql:*:64001: | ||
8 | nogroup:*:65534: | ||
diff --git a/meta/packages/base-passwd/base-passwd-3.5.9/nobash.patch b/meta/packages/base-passwd/base-passwd-3.5.9/nobash.patch new file mode 100644 index 0000000000..2bde9bf33b --- /dev/null +++ b/meta/packages/base-passwd/base-passwd-3.5.9/nobash.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- base-passwd/passwd.master~nobash | ||
7 | +++ base-passwd/passwd.master | ||
8 | @@ -1,4 +1,4 @@ | ||
9 | -root::0:0:root:/root:/bin/bash | ||
10 | +root::0:0:root:/root:/bin/sh | ||
11 | daemon:*:1:1:daemon:/usr/sbin:/bin/sh | ||
12 | bin:*:2:2:bin:/bin:/bin/sh | ||
13 | sys:*:3:3:sys:/dev:/bin/sh | ||
diff --git a/meta/packages/base-passwd/base-passwd-3.5.9/root-home.patch b/meta/packages/base-passwd/base-passwd-3.5.9/root-home.patch new file mode 100644 index 0000000000..85d96b6185 --- /dev/null +++ b/meta/packages/base-passwd/base-passwd-3.5.9/root-home.patch | |||
@@ -0,0 +1,8 @@ | |||
1 | --- base-passwd/passwd.master.orig 2005-07-08 06:26:22.000000000 +0200 | ||
2 | +++ base-passwd/passwd.master 2005-07-08 06:31:58.000000000 +0200 | ||
3 | @@ -1,4 +1,4 @@ | ||
4 | -root::0:0:root:/root:/bin/sh | ||
5 | +root::0:0:root:/home/root:/bin/sh | ||
6 | daemon:*:1:1:daemon:/usr/sbin:/bin/sh | ||
7 | bin:*:2:2:bin:/bin:/bin/sh | ||
8 | sys:*:3:3:sys:/dev:/bin/sh | ||
diff --git a/meta/packages/base-passwd/base-passwd_3.5.9.bb b/meta/packages/base-passwd/base-passwd_3.5.9.bb new file mode 100644 index 0000000000..6fcb211bda --- /dev/null +++ b/meta/packages/base-passwd/base-passwd_3.5.9.bb | |||
@@ -0,0 +1,59 @@ | |||
1 | DESCRIPTION = "Base system password/group files." | ||
2 | SECTION = "base" | ||
3 | PR = "r2" | ||
4 | LICENSE = "GPL" | ||
5 | |||
6 | SRC_URI = "${DEBIAN_MIRROR}/main/b/base-passwd/base-passwd_${PV}.tar.gz \ | ||
7 | file://configure.patch;patch=1 \ | ||
8 | file://nobash.patch;patch=1 \ | ||
9 | file://root-home.patch;patch=1 \ | ||
10 | file://mysql.patch;patch=1" | ||
11 | |||
12 | S = "${WORKDIR}/base-passwd" | ||
13 | |||
14 | inherit autotools | ||
15 | |||
16 | FILES_${PN}-doc += "${docdir}" | ||
17 | |||
18 | do_install () { | ||
19 | install -d -m 755 ${D}${sbindir} | ||
20 | install -p -m 755 update-passwd ${D}${sbindir}/ | ||
21 | install -d -m 755 \ | ||
22 | ${D}${mandir}/man8 ${D}${mandir}/pl/man8 | ||
23 | install -p -m 644 man/update-passwd.8 \ | ||
24 | ${D}${mandir}/man8/ | ||
25 | install -p -m 644 man/update-passwd.pl.8 \ | ||
26 | ${D}${mandir}/pl/man8/update-passwd.8 | ||
27 | gzip -9 ${D}${mandir}/man8/* \ | ||
28 | ${D}${mandir}/pl/man8/* | ||
29 | install -d -m 755 ${D}${datadir}/base-passwd | ||
30 | install -p -m 644 passwd.master \ | ||
31 | ${D}${datadir}/base-passwd/ | ||
32 | install -p -m 644 group.master \ | ||
33 | ${D}${datadir}/base-passwd/ | ||
34 | |||
35 | install -d -m 755 ${D}${docdir}/${PN} | ||
36 | install -p -m 644 debian/changelog ${D}${docdir}/${PN}/ | ||
37 | gzip -9 ${D}${docdir}/${PN}/* | ||
38 | install -p -m 644 README ${D}${docdir}/${PN}/ | ||
39 | install -p -m 644 debian/copyright ${D}${docdir}/${PN}/ | ||
40 | } | ||
41 | |||
42 | |||
43 | do_install_append_openmn() { | ||
44 | echo "0:Jn6tcg/qjqvUE:0:0:root:/root:/bin/sh" >>${D}${datadir}/base-passwd/passwd.master | ||
45 | } | ||
46 | |||
47 | |||
48 | pkg_postinst () { | ||
49 | set -e | ||
50 | |||
51 | if [ ! -e $D${sysconfdir}/passwd ] ; then | ||
52 | cp $D${datadir}/base-passwd/passwd.master $D${sysconfdir}/passwd | ||
53 | fi | ||
54 | |||
55 | if [ ! -e $D${sysconfdir}/group ] ; then | ||
56 | cp $D${datadir}/base-passwd/group.master $D${sysconfdir}/group | ||
57 | fi | ||
58 | exit 0 | ||
59 | } | ||