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
|
|
|
|
2015-08-23 21:02:58 +02:00
|
|
|
LINUX_PAM_VERSION = 1.2.1
|
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
|
2013-09-05 01:15:31 +02:00
|
|
|
LINUX_PAM_DEPENDENCIES = flex host-flex host-pkgconf
|
2012-08-11 04:50:26 +02:00
|
|
|
LINUX_PAM_AUTORECONF = YES
|
|
|
|
LINUX_PAM_LICENSE = BSD-3c
|
|
|
|
LINUX_PAM_LICENSE_FILES = Copyright
|
|
|
|
|
2012-09-16 14:57:49 +02:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
LINUX_PAM_DEPENDENCIES += gettext
|
|
|
|
LINUX_PAM_MAKE_OPTS += LIBS=-lintl
|
2012-08-11 04:50:26 +02:00
|
|
|
endif
|
|
|
|
|
2016-03-16 12:45:35 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
LINUX_PAM_CONF_OPTS += --enable-selinux
|
|
|
|
LINUX_PAM_DEPENDENCIES += libselinux
|
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
|
|
|
LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_INSTALL_CONFIG
|
|
|
|
|
2012-08-11 04:50:26 +02:00
|
|
|
$(eval $(autotools-package))
|