From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1ielpk-0001r3-5H for ptxdist@pengutronix.de; Tue, 10 Dec 2019 21:10:12 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990923AbfLJUKJMHq1b (ORCPT ); Tue, 10 Dec 2019 21:10:09 +0100 Date: Tue, 10 Dec 2019 21:10:07 +0100 From: Ladislav Michl Message-ID: <20191210201007.GC948325@lenoch> References: <20191210200817.GA759825@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20191210200817.GA759825@lenoch> Subject: [ptxdist] [PATCH 3/4] util-linux: optionally build login program List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Ladislav Michl --- rules/util-linux-ng.in | 16 ++++++++++++++++ rules/util-linux-ng.make | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in index 4f230bc60..1178cbfff 100644 --- a/rules/util-linux-ng.in +++ b/rules/util-linux-ng.in @@ -7,6 +7,7 @@ menuconfig UTIL_LINUX_NG select UTIL_LINUX_NG_LIBBLKID select UTIL_LINUX_NG_LIBUUID if UTIL_LINUX_NG_MKSWAP_UUID select NCURSES if UTIL_LINUX_NG_USES_NCURSES + select PAM if UTIL_LINUX_NG_USES_PAM if UTIL_LINUX_NG @@ -32,6 +33,9 @@ config UTIL_LINUX_NG_FDISKS config UTIL_LINUX_NG_USES_NCURSES bool +config UTIL_LINUX_NG_USES_PAM + bool + config UTIL_LINUX_NG_PARTX_TOOLS select UTIL_LINUX_NG_LIBBLKID select UTIL_LINUX_NG_LIBSMARTCOLS @@ -441,4 +445,16 @@ config UTIL_LINUX_NG_LSCPU help lscpu shows information about the CPU architecture +config UTIL_LINUX_NG_LOGIN + bool + select UTIL_LINUX_NG_USES_PAM + depends on GLOBAL_PAM && (!BUSYBOX_LOGIN || ALLYES) + prompt "login" + help + The login program is used to establish a new session with + the system. + +comment "BusyBox' login is selected!" + depends on BUSYBOX_LOGIN + endif diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make index cda06a4a6..cc09e13d3 100644 --- a/rules/util-linux-ng.make +++ b/rules/util-linux-ng.make @@ -115,7 +115,7 @@ UTIL_LINUX_NG_CONF_OPT := \ --disable-chfn-chsh-password \ --disable-chfn-chsh \ --disable-chsh-only-listed \ - --disable-login \ + --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_LOGIN)-login \ --disable-login-chown-vcs \ --disable-login-stat-mail \ --disable-nologin \ @@ -312,6 +312,9 @@ endif ifdef PTXCONF_UTIL_LINUX_NG_LSCPU @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/lscpu) endif +ifdef PTXCONF_UTIL_LINUX_NG_LOGIN + @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/login) +endif @$(call install_finish, util-linux-ng) -- 2.24.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de