2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-08-11 04:50:26 +02:00
|
|
|
#
|
|
|
|
# linux-pam
|
2013-11-28 18:22:26 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-08-11 04:50:26 +02:00
|
|
|
|
2020-11-27 18:13:36 +01:00
|
|
|
LINUX_PAM_VERSION = 1.5.1
|
2018-06-29 07:02:58 +02:00
|
|
|
LINUX_PAM_SOURCE = Linux-PAM-$(LINUX_PAM_VERSION).tar.xz
|
|
|
|
LINUX_PAM_SITE = https://github.com/linux-pam/linux-pam/releases/download/v$(LINUX_PAM_VERSION)
|
2012-08-11 04:50:26 +02:00
|
|
|
LINUX_PAM_INSTALL_STAGING = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
LINUX_PAM_CONF_OPTS = \
|
2012-08-11 04:50:26 +02:00
|
|
|
--disable-prelude \
|
|
|
|
--disable-isadir \
|
|
|
|
--disable-nis \
|
2012-09-12 01:27:31 +02:00
|
|
|
--disable-db \
|
2012-08-11 04:50:26 +02:00
|
|
|
--disable-regenerate-docu \
|
|
|
|
--enable-securedir=/lib/security \
|
|
|
|
--libdir=/lib
|
2017-07-03 22:55:18 +02:00
|
|
|
LINUX_PAM_DEPENDENCIES = flex host-flex host-pkgconf \
|
2021-08-22 11:34:28 +02:00
|
|
|
$(if $(BR2_PACKAGE_LIBXCRYPT),libxcrypt) \
|
2017-07-03 22:55:18 +02:00
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:38 +02:00
|
|
|
LINUX_PAM_LICENSE = BSD-3-Clause
|
2012-08-11 04:50:26 +02:00
|
|
|
LINUX_PAM_LICENSE_FILES = Copyright
|
2017-07-03 22:55:18 +02:00
|
|
|
LINUX_PAM_MAKE_OPTS += LIBS=$(TARGET_NLS_LIBS)
|
2021-01-14 23:34:30 +01:00
|
|
|
LINUX_PAM_CPE_ID_VENDOR = linux-pam
|
2021-08-22 11:34:28 +02:00
|
|
|
# We're patching configure.ac
|
|
|
|
LINUX_PAM_AUTORECONF = YES
|
2012-08-11 04:50:26 +02:00
|
|
|
|
2016-03-16 12:45:35 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
LINUX_PAM_CONF_OPTS += --enable-selinux
|
|
|
|
LINUX_PAM_DEPENDENCIES += libselinux
|
2016-12-06 21:27:03 +01:00
|
|
|
define LINUX_PAM_SELINUX_PAMFILE_TWEAK
|
|
|
|
$(SED) 's/^# \(.*pam_selinux.so.*\)$$/\1/' \
|
|
|
|
$(TARGET_DIR)/etc/pam.d/login
|
|
|
|
endef
|
2016-03-16 12:45:35 +01:00
|
|
|
else
|
|
|
|
LINUX_PAM_CONF_OPTS += --disable-selinux
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_AUDIT),y)
|
|
|
|
LINUX_PAM_CONF_OPTS += --enable-audit
|
|
|
|
LINUX_PAM_DEPENDENCIES += audit
|
|
|
|
else
|
|
|
|
LINUX_PAM_CONF_OPTS += --disable-audit
|
|
|
|
endif
|
|
|
|
|
2016-03-29 02:39:56 +02:00
|
|
|
# Install default pam config (deny everything except login)
|
2013-11-28 18:22:26 +01:00
|
|
|
define LINUX_PAM_INSTALL_CONFIG
|
2016-03-29 02:39:56 +02:00
|
|
|
$(INSTALL) -m 0644 -D package/linux-pam/login.pam \
|
|
|
|
$(TARGET_DIR)/etc/pam.d/login
|
2013-11-28 18:22:26 +01:00
|
|
|
$(INSTALL) -m 0644 -D package/linux-pam/other.pam \
|
|
|
|
$(TARGET_DIR)/etc/pam.d/other
|
2016-12-06 21:27:03 +01:00
|
|
|
$(LINUX_PAM_SELINUX_PAMFILE_TWEAK)
|
2013-11-28 18:22:26 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_INSTALL_CONFIG
|
|
|
|
|
2012-08-11 04:50:26 +02:00
|
|
|
$(eval $(autotools-package))
|