diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2022-05-14 23:14:50 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-16 23:19:18 +0100 |
commit | 0dc16dcfff14ac5cbe672c5539ce1c0ac5b9d5c9 (patch) | |
tree | b0384e94d5fd0d815f3bfde20d605158dfc2eca5 | |
parent | 126e039eef6a9d3211206b6e44254260c3899cca (diff) | |
download | poky-0dc16dcfff14ac5cbe672c5539ce1c0ac5b9d5c9.tar.gz |
base-passwd: Update to 3.5.52
* Add a patch to allow the use of debconf to be disabled.
* Replace 0007-Disable-generation-of-the-documentation.patch with a new
patch to disable the generation of the documentation using a
configuration option.
* Replace 0006-Disable-shell-for-default-users.patch with a sed
expression that uses a variable, NOLOGIN, to specify what command to
use for users that are not expected to login. This allows to use some
other command than "nologin", e.g., "false". Also, by using
${base_sbindir}, it adheres to usrmerge being configured.
(From OE-Core rev: e7abf63cc8bdc61c8d978b3c21a38e17716fc292)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 files changed, 194 insertions, 101 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch b/meta/recipes-core/base-passwd/base-passwd/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch index ea0256684b..09f8cfea9c 100644 --- a/meta/recipes-core/base-passwd/base-passwd/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch +++ b/meta/recipes-core/base-passwd/base-passwd/0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch | |||
@@ -12,12 +12,12 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com> | |||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
13 | 13 | ||
14 | diff --git a/passwd.master b/passwd.master | 14 | diff --git a/passwd.master b/passwd.master |
15 | index a01a6aa..b54ff51 100644 | 15 | index 7cd4e24..041685a 100644 |
16 | --- a/passwd.master | 16 | --- a/passwd.master |
17 | +++ b/passwd.master | 17 | +++ b/passwd.master |
18 | @@ -1,4 +1,4 @@ | 18 | @@ -1,4 +1,4 @@ |
19 | -root:*:0:0:root:/root:/bin/bash | 19 | -root:*:0:0:root:/root:/bin/bash |
20 | +root:*:0:0:root:/root:/bin/sh | 20 | +root:*:0:0:root:/root:/bin/sh |
21 | daemon:*:1:1:daemon:/usr/sbin:/bin/sh | 21 | daemon:*:1:1:daemon:/usr/sbin:/usr/sbin/nologin |
22 | bin:*:2:2:bin:/bin:/bin/sh | 22 | bin:*:2:2:bin:/bin:/usr/sbin/nologin |
23 | sys:*:3:3:sys:/dev:/bin/sh | 23 | sys:*:3:3:sys:/dev:/usr/sbin/nologin |
diff --git a/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch b/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch index 88cc5be66c..06222ab04c 100644 --- a/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch +++ b/meta/recipes-core/base-passwd/base-passwd/0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch | |||
@@ -10,12 +10,12 @@ Signed-off-by: Scott Garman <scott.a.garman@intel.com> | |||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
11 | 11 | ||
12 | diff --git a/passwd.master b/passwd.master | 12 | diff --git a/passwd.master b/passwd.master |
13 | index b54ff51..e1c32ff 100644 | 13 | index 041685a..31a84d4 100644 |
14 | --- a/passwd.master | 14 | --- a/passwd.master |
15 | +++ b/passwd.master | 15 | +++ b/passwd.master |
16 | @@ -1,4 +1,4 @@ | 16 | @@ -1,4 +1,4 @@ |
17 | -root:*:0:0:root:/root:/bin/sh | 17 | -root:*:0:0:root:/root:/bin/sh |
18 | +root::0:0:root:/root:/bin/sh | 18 | +root::0:0:root:/root:/bin/sh |
19 | daemon:*:1:1:daemon:/usr/sbin:/bin/sh | 19 | daemon:*:1:1:daemon:/usr/sbin:/usr/sbin/nologin |
20 | bin:*:2:2:bin:/bin:/bin/sh | 20 | bin:*:2:2:bin:/bin:/usr/sbin/nologin |
21 | sys:*:3:3:sys:/dev:/bin/sh | 21 | sys:*:3:3:sys:/dev:/usr/sbin/nologin |
diff --git a/meta/recipes-core/base-passwd/base-passwd/0006-Disable-shell-for-default-users.patch b/meta/recipes-core/base-passwd/base-passwd/0006-Disable-shell-for-default-users.patch deleted file mode 100644 index 2bcb829d9c..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/0006-Disable-shell-for-default-users.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From f35eb24213475d3024ad45297fd855c6abfbbac0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> | ||
3 | Date: Mon, 18 Apr 2022 11:22:43 +0800 | ||
4 | Subject: [PATCH] Disable shell for default users | ||
5 | |||
6 | Change the shell of all global static users other than root (which | ||
7 | retains /bin/sh) and sync (as /bin/sync is rather harmless) to | ||
8 | /sbin/nologin (as /usr/sbin/nologin does not exist in openembedded) | ||
9 | |||
10 | Upstream-Status: Backport [https://launchpad.net/ubuntu/+source/base-passwd/3.5.30] | ||
11 | Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> | ||
12 | --- | ||
13 | passwd.master | 32 ++++++++++++++++---------------- | ||
14 | 1 file changed, 16 insertions(+), 16 deletions(-) | ||
15 | |||
16 | diff --git a/passwd.master b/passwd.master | ||
17 | index e1c32ff..0cd5ffd 100644 | ||
18 | --- a/passwd.master | ||
19 | +++ b/passwd.master | ||
20 | @@ -1,18 +1,18 @@ | ||
21 | root::0:0:root:/root:/bin/sh | ||
22 | -daemon:*:1:1:daemon:/usr/sbin:/bin/sh | ||
23 | -bin:*:2:2:bin:/bin:/bin/sh | ||
24 | -sys:*:3:3:sys:/dev:/bin/sh | ||
25 | +daemon:*:1:1:daemon:/usr/sbin:/sbin/nologin | ||
26 | +bin:*:2:2:bin:/bin:/sbin/nologin | ||
27 | +sys:*:3:3:sys:/dev:/sbin/nologin | ||
28 | sync:*:4:65534:sync:/bin:/bin/sync | ||
29 | -games:*:5:60:games:/usr/games:/bin/sh | ||
30 | -man:*:6:12:man:/var/cache/man:/bin/sh | ||
31 | -lp:*:7:7:lp:/var/spool/lpd:/bin/sh | ||
32 | -mail:*:8:8:mail:/var/mail:/bin/sh | ||
33 | -news:*:9:9:news:/var/spool/news:/bin/sh | ||
34 | -uucp:*:10:10:uucp:/var/spool/uucp:/bin/sh | ||
35 | -proxy:*:13:13:proxy:/bin:/bin/sh | ||
36 | -www-data:*:33:33:www-data:/var/www:/bin/sh | ||
37 | -backup:*:34:34:backup:/var/backups:/bin/sh | ||
38 | -list:*:38:38:Mailing List Manager:/var/list:/bin/sh | ||
39 | -irc:*:39:39:ircd:/var/run/ircd:/bin/sh | ||
40 | -gnats:*:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh | ||
41 | -nobody:*:65534:65534:nobody:/nonexistent:/bin/sh | ||
42 | +games:*:5:60:games:/usr/games:/sbin/nologin | ||
43 | +man:*:6:12:man:/var/cache/man:/sbin/nologin | ||
44 | +lp:*:7:7:lp:/var/spool/lpd:/sbin/nologin | ||
45 | +mail:*:8:8:mail:/var/mail:/sbin/nologin | ||
46 | +news:*:9:9:news:/var/spool/news:/sbin/nologin | ||
47 | +uucp:*:10:10:uucp:/var/spool/uucp:/sbin/nologin | ||
48 | +proxy:*:13:13:proxy:/bin:/sbin/nologin | ||
49 | +www-data:*:33:33:www-data:/var/www:/sbin/nologin | ||
50 | +backup:*:34:34:backup:/var/backups:/sbin/nologin | ||
51 | +list:*:38:38:Mailing List Manager:/var/list:/sbin/nologin | ||
52 | +irc:*:39:39:ircd:/var/run/ircd:/sbin/nologin | ||
53 | +gnats:*:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/sbin/nologin | ||
54 | +nobody:*:65534:65534:nobody:/nonexistent:/sbin/nologin | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/0006-Make-it-possible-to-build-without-debconf-support.patch b/meta/recipes-core/base-passwd/base-passwd/0006-Make-it-possible-to-build-without-debconf-support.patch new file mode 100644 index 0000000000..61ed1641a1 --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0006-Make-it-possible-to-build-without-debconf-support.patch | |||
@@ -0,0 +1,129 @@ | |||
1 | From 236d6c8c0dd7e15d9a9795813b94bc87ce09eec5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
3 | Date: Fri, 29 Apr 2022 19:32:29 +0200 | ||
4 | Subject: [PATCH] Make it possible to build without debconf support | ||
5 | |||
6 | Not all systems have the debconfclient library available. | ||
7 | |||
8 | Upstream-Status: Submitted [https://salsa.debian.org/debian/base-passwd/-/merge_requests/11] | ||
9 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
10 | --- | ||
11 | Makefile.am | 1 - | ||
12 | configure.ac | 13 +++++++++++++ | ||
13 | update-passwd.c | 15 +++++++++++++++ | ||
14 | 3 files changed, 28 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index 223916f..4bdd769 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -3,7 +3,6 @@ SUBDIRS = doc man | ||
21 | sbin_PROGRAMS = update-passwd | ||
22 | |||
23 | update_passwd_SOURCES = update-passwd.c | ||
24 | -update_passwd_LDADD = -ldebconfclient | ||
25 | |||
26 | pkgdata_DATA = passwd.master group.master | ||
27 | |||
28 | diff --git a/configure.ac b/configure.ac | ||
29 | index 9d1ace5..1e35ad1 100644 | ||
30 | --- a/configure.ac | ||
31 | +++ b/configure.ac | ||
32 | @@ -14,6 +14,19 @@ AC_SYS_LARGEFILE | ||
33 | dnl Scan for things we need | ||
34 | AC_CHECK_FUNCS([putgrent]) | ||
35 | |||
36 | +dnl Check for debconf | ||
37 | +AC_MSG_CHECKING([whether to enable debconf support]) | ||
38 | +AC_ARG_ENABLE([debconf], | ||
39 | + [AS_HELP_STRING([--disable-debconf], [disable support for debconf])], | ||
40 | + [], | ||
41 | + [enable_debconf=yes]) | ||
42 | +AC_MSG_RESULT($enable_debconf) | ||
43 | +AS_IF([test "x$enable_debconf" != xno], | ||
44 | + [AC_CHECK_LIB([debconfclient], [debconfclient_new], [], | ||
45 | + [AC_MSG_ERROR( | ||
46 | + [debconf support not available (use --disable-debconf to disable)])]) | ||
47 | + AC_DEFINE([HAVE_DEBCONF], [1], [Define if you have libdebconfclient])]) | ||
48 | + | ||
49 | dnl Finally output everything | ||
50 | AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile]) | ||
51 | AC_OUTPUT | ||
52 | diff --git a/update-passwd.c b/update-passwd.c | ||
53 | index 3f3dffa..5b49740 100644 | ||
54 | --- a/update-passwd.c | ||
55 | +++ b/update-passwd.c | ||
56 | @@ -39,7 +39,9 @@ | ||
57 | #include <stdarg.h> | ||
58 | #include <ctype.h> | ||
59 | |||
60 | +#ifdef HAVE_DEBCONF | ||
61 | #include <cdebconf/debconfclient.h> | ||
62 | +#endif | ||
63 | |||
64 | #define DEFAULT_PASSWD_MASTER "/usr/share/base-passwd/passwd.master" | ||
65 | #define DEFAULT_GROUP_MASTER "/usr/share/base-passwd/group.master" | ||
66 | @@ -143,6 +145,7 @@ int flag_debconf = 0; | ||
67 | const char* user_domain = DEFAULT_DEBCONF_DOMAIN; | ||
68 | const char* group_domain = DEFAULT_DEBCONF_DOMAIN; | ||
69 | |||
70 | +#ifdef HAVE_DEBCONF | ||
71 | struct debconfclient* debconf = NULL; | ||
72 | |||
73 | /* Abort the program if talking to debconf fails. Use ret exactly once. */ | ||
74 | @@ -162,6 +165,10 @@ struct debconfclient* debconf = NULL; | ||
75 | DEBCONF_CHECK(debconf_register(debconf, (template), (question))) | ||
76 | #define DEBCONF_SUBST(question, var, value) \ | ||
77 | DEBCONF_CHECK(debconf_subst(debconf, (question), (var), (value))) | ||
78 | +#else | ||
79 | +#define DEBCONF_REGISTER(template, question) | ||
80 | +#define DEBCONF_SUBST(question, var, value) | ||
81 | +#endif | ||
82 | |||
83 | |||
84 | /* malloc() with out-of-memory checking. | ||
85 | @@ -621,6 +628,7 @@ void version() { | ||
86 | * flag. Aborts the problem on any failure. | ||
87 | */ | ||
88 | int ask_debconf(const char* priority, const char* question) { | ||
89 | +#ifdef HAVE_DEBCONF | ||
90 | int ret; | ||
91 | const char* response; | ||
92 | |||
93 | @@ -640,6 +648,9 @@ int ask_debconf(const char* priority, const char* question) { | ||
94 | return 1; | ||
95 | else | ||
96 | return 0; | ||
97 | +#else | ||
98 | + return 0; | ||
99 | +#endif | ||
100 | } | ||
101 | |||
102 | |||
103 | @@ -1427,6 +1438,7 @@ int main(int argc, char** argv) { | ||
104 | /* If DEBIAN_HAS_FRONTEND is set in the environment, we're running under | ||
105 | * debconf. Enable debconf prompting unless --dry-run was also given. | ||
106 | */ | ||
107 | +#ifdef HAVE_DEBCONF | ||
108 | if (getenv("DEBIAN_HAS_FRONTEND")!=NULL && !opt_dryrun) { | ||
109 | debconf=debconfclient_new(); | ||
110 | if (debconf==NULL) { | ||
111 | @@ -1435,6 +1447,7 @@ int main(int argc, char** argv) { | ||
112 | } | ||
113 | flag_debconf=1; | ||
114 | } | ||
115 | +#endif | ||
116 | |||
117 | if (read_passwd(&master_accounts, master_passwd)!=0) | ||
118 | return 2; | ||
119 | @@ -1480,8 +1493,10 @@ int main(int argc, char** argv) { | ||
120 | if (!unlock_files()) | ||
121 | return 5; | ||
122 | |||
123 | +#ifdef HAVE_DEBCONF | ||
124 | if (debconf!=NULL) | ||
125 | debconfclient_delete(debconf); | ||
126 | +#endif | ||
127 | |||
128 | if (opt_dryrun) | ||
129 | return flag_dirty; | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd/0007-Disable-generation-of-the-documentation.patch b/meta/recipes-core/base-passwd/base-passwd/0007-Disable-generation-of-the-documentation.patch deleted file mode 100644 index 4a19f91c35..0000000000 --- a/meta/recipes-core/base-passwd/base-passwd/0007-Disable-generation-of-the-documentation.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 7ccf8227cb10d78f1958a7a7feed75a390a6b133 Mon Sep 17 00:00:00 2001 | ||
2 | From: Saul Wold <sgw@linux.intel.com> | ||
3 | Date: Fri, 29 Apr 2022 13:32:28 +0000 | ||
4 | Subject: [PATCH] Disable generation of the documentation | ||
5 | |||
6 | It uses tools currently not supported by OE-Core. It uses sgmltools | ||
7 | and po4a. | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE-Core specific] | ||
10 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
11 | --- | ||
12 | Makefile.in | 3 --- | ||
13 | 1 file changed, 3 deletions(-) | ||
14 | |||
15 | diff --git a/Makefile.in b/Makefile.in | ||
16 | index 9ba097c..d3ea47c 100644 | ||
17 | --- a/Makefile.in | ||
18 | +++ b/Makefile.in | ||
19 | @@ -25,13 +25,10 @@ gen_configure = config.cache config.status config.log \ | ||
20 | confdefhs.h config.h Makefile | ||
21 | |||
22 | all: update-passwd | ||
23 | - $(MAKE) -C doc all | ||
24 | - $(MAKE) -C man all | ||
25 | |||
26 | install: all | ||
27 | mkdir -p $(DESTDIR)$(sbindir) | ||
28 | $(INSTALL) update-passwd $(DESTDIR)$(sbindir)/ | ||
29 | - $(MAKE) -C man install | ||
30 | |||
31 | update-passwd.o: version.h | ||
32 | |||
diff --git a/meta/recipes-core/base-passwd/base-passwd/0007-Make-it-possible-to-disable-the-generation-of-the-do.patch b/meta/recipes-core/base-passwd/base-passwd/0007-Make-it-possible-to-disable-the-generation-of-the-do.patch new file mode 100644 index 0000000000..2bec065cdb --- /dev/null +++ b/meta/recipes-core/base-passwd/base-passwd/0007-Make-it-possible-to-disable-the-generation-of-the-do.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 63e8270141a296843cfe1daba38e1969ac6d75ae Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
3 | Date: Sat, 30 Apr 2022 00:35:34 +0200 | ||
4 | Subject: [PATCH] Make it possible to disable the generation of the | ||
5 | documentation | ||
6 | |||
7 | Not all systems have docbook and po4a available. | ||
8 | |||
9 | Upstream-Status: Submitted [https://salsa.debian.org/debian/base-passwd/-/merge_requests/11] | ||
10 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
11 | --- | ||
12 | Makefile.am | 2 ++ | ||
13 | configure.ac | 9 +++++++++ | ||
14 | 2 files changed, 11 insertions(+) | ||
15 | |||
16 | diff --git a/Makefile.am b/Makefile.am | ||
17 | index 4bdd769..97b4f42 100644 | ||
18 | --- a/Makefile.am | ||
19 | +++ b/Makefile.am | ||
20 | @@ -1,4 +1,6 @@ | ||
21 | +if ENABLE_DOCS | ||
22 | SUBDIRS = doc man | ||
23 | +endif | ||
24 | |||
25 | sbin_PROGRAMS = update-passwd | ||
26 | |||
27 | diff --git a/configure.ac b/configure.ac | ||
28 | index 1e35ad1..b98374e 100644 | ||
29 | --- a/configure.ac | ||
30 | +++ b/configure.ac | ||
31 | @@ -27,6 +27,15 @@ AS_IF([test "x$enable_debconf" != xno], | ||
32 | [debconf support not available (use --disable-debconf to disable)])]) | ||
33 | AC_DEFINE([HAVE_DEBCONF], [1], [Define if you have libdebconfclient])]) | ||
34 | |||
35 | +dnl Check whether to build the documentation | ||
36 | +AC_MSG_CHECKING([whether to build the documentation]) | ||
37 | +AC_ARG_ENABLE([docs], | ||
38 | + [AC_HELP_STRING([--disable-docs], [do not build and install documentation])], | ||
39 | + [], | ||
40 | + [enable_docs=yes]) | ||
41 | +AC_MSG_RESULT($enable_docs) | ||
42 | +AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = xyes) | ||
43 | + | ||
44 | dnl Finally output everything | ||
45 | AC_CONFIG_FILES([Makefile doc/Makefile man/Makefile]) | ||
46 | AC_OUTPUT | ||
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.52.bb index e561599136..f89752c077 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.5.52.bb | |||
@@ -5,27 +5,30 @@ SECTION = "base" | |||
5 | LICENSE = "GPL-2.0-only" | 5 | LICENSE = "GPL-2.0-only" |
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a" |
7 | 7 | ||
8 | RECIPE_NO_UPDATE_REASON = "Version 3.5.38 requires cdebconf for update-passwd utility" | 8 | SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar.xz \ |
9 | |||
10 | SRC_URI = "https://launchpad.net/debian/+archive/primary/+files/${BPN}_${PV}.tar.gz \ | ||
11 | file://0001-Add-a-shutdown-group.patch \ | 9 | file://0001-Add-a-shutdown-group.patch \ |
12 | file://0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch \ | 10 | file://0002-Use-bin-sh-instead-of-bin-bash-for-the-root-user.patch \ |
13 | file://0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch \ | 11 | file://0003-Remove-for-root-since-we-do-not-have-an-etc-shadow.patch \ |
14 | file://0004-Add-an-input-group-for-the-dev-input-devices.patch \ | 12 | file://0004-Add-an-input-group-for-the-dev-input-devices.patch \ |
15 | file://0005-Add-kvm-group.patch \ | 13 | file://0005-Add-kvm-group.patch \ |
16 | file://0006-Disable-shell-for-default-users.patch \ | 14 | file://0006-Make-it-possible-to-build-without-debconf-support.patch \ |
17 | file://0007-Disable-generation-of-the-documentation.patch \ | 15 | file://0007-Make-it-possible-to-disable-the-generation-of-the-do.patch \ |
18 | " | 16 | " |
19 | 17 | ||
20 | SRC_URI[md5sum] = "6beccac48083fe8ae5048acd062e5421" | 18 | SRC_URI[sha256sum] = "5dfec6556b5a16ecf14dd3f7c95b591d929270289268123f31a3d6317f95ccea" |
21 | SRC_URI[sha256sum] = "f0b66388b2c8e49c15692439d2bee63bcdd4bbbf7a782c7f64accc55986b6a36" | ||
22 | 19 | ||
23 | # the package is taken from launchpad; that source is static and goes stale | 20 | # the package is taken from launchpad; that source is static and goes stale |
24 | # so we check the latest upstream from a directory that does get updated | 21 | # so we check the latest upstream from a directory that does get updated |
25 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/b/base-passwd/" | 22 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/b/base-passwd/" |
26 | 23 | ||
24 | S = "${WORKDIR}/work" | ||
25 | |||
27 | inherit autotools | 26 | inherit autotools |
28 | 27 | ||
28 | EXTRA_OECONF += "--disable-debconf --disable-docs" | ||
29 | |||
30 | NOLOGIN ?= "${base_sbindir}/nologin" | ||
31 | |||
29 | do_install () { | 32 | do_install () { |
30 | install -d -m 755 ${D}${sbindir} | 33 | install -d -m 755 ${D}${sbindir} |
31 | install -o root -g root -p -m 755 ${B}/update-passwd ${D}${sbindir}/ | 34 | install -o root -g root -p -m 755 ${B}/update-passwd ${D}${sbindir}/ |
@@ -37,6 +40,7 @@ do_install () { | |||
37 | install -d -m 755 ${D}${datadir}/base-passwd | 40 | install -d -m 755 ${D}${datadir}/base-passwd |
38 | install -o root -g root -p -m 644 ${S}/passwd.master ${D}${datadir}/base-passwd/ | 41 | install -o root -g root -p -m 644 ${S}/passwd.master ${D}${datadir}/base-passwd/ |
39 | sed -i 's#:/root:#:${ROOT_HOME}:#' ${D}${datadir}/base-passwd/passwd.master | 42 | sed -i 's#:/root:#:${ROOT_HOME}:#' ${D}${datadir}/base-passwd/passwd.master |
43 | sed -i 's#/usr/sbin/nologin#${NOLOGIN}#' ${D}${datadir}/base-passwd/passwd.master | ||
40 | install -o root -g root -p -m 644 ${S}/group.master ${D}${datadir}/base-passwd/ | 44 | install -o root -g root -p -m 644 ${S}/group.master ${D}${datadir}/base-passwd/ |
41 | 45 | ||
42 | install -d -m 755 ${D}${docdir}/${BPN} | 46 | install -d -m 755 ${D}${docdir}/${BPN} |