aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2020-03-21 18:45:46 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-04-07 08:50:14 +0200
commit6867e34259feefe858d34c0bcfecf8d563708cb5 (patch)
tree3c3ecd51cfd4f9205d4b1c5a0b815c44fdbe23d3
parent99b59f196535412707fa371f75e01a0a6f00ccbe (diff)
downloadbuildroot-6867e34259feefe858d34c0bcfecf8d563708cb5.tar.gz
buildroot-6867e34259feefe858d34c0bcfecf8d563708cb5.tar.bz2
package/screen: add linux-pam optional dependency
linux-pam is an optional dependency for more than 5 years: https://git.savannah.gnu.org/cgit/screen.git/commit/src/configure.ac?h=screen-v4&id=a8dc1fb5b47ee52c79884fc5270805a3a39cda4a Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit c685bded08f02ded5d45136e7a1328354bf6515f) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/screen/screen.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/screen/screen.mk b/package/screen/screen.mk
index 91aa7c3a7a..ed02079412 100644
--- a/package/screen/screen.mk
+++ b/package/screen/screen.mk
@@ -14,6 +14,13 @@ SCREEN_CONF_ENV = CFLAGS="$(TARGET_CFLAGS)"
SCREEN_CONF_OPTS = --enable-colors256
SCREEN_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) SCREEN=screen install_bin
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+SCREEN_DEPENDENCIES += linux-pam
+SCREEN_CONF_OPTS += --enable-pam
+else
+SCREEN_CONF_OPTS += --disable-pam
+endif
+
define SCREEN_INSTALL_SCREENRC
$(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc
endef