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
|
|
|
|
2016-10-16 10:50:32 +02:00
|
|
|
LINUX_PAM_VERSION = 1.3.0
|
2012-08-11 04:50:26 +02:00
|
|
|
LINUX_PAM_SOURCE = Linux-PAM-$(LINUX_PAM_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
LINUX_PAM_SITE = http://linux-pam.org/library
|
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 \
|
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2012-08-11 04:50:26 +02:00
|
|
|
LINUX_PAM_AUTORECONF = YES
|
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)
|
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
|
|
|
|
|
2017-05-11 23:04:47 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_CRACKLIB),y)
|
|
|
|
LINUX_PAM_CONF_OPTS += --enable-cracklib
|
|
|
|
LINUX_PAM_DEPENDENCIES += cracklib
|
|
|
|
else
|
|
|
|
LINUX_PAM_CONF_OPTS += --disable-cracklib
|
|
|
|
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))
|