1 ################################################################################
5 ################################################################################
7 LINUX_PAM_VERSION
= 1.3.0
8 LINUX_PAM_SOURCE
= Linux-PAM-
$(LINUX_PAM_VERSION
).
tar.bz2
9 LINUX_PAM_SITE
= http
://linux-pam.org
/library
10 LINUX_PAM_INSTALL_STAGING
= YES
11 LINUX_PAM_CONF_OPTS
= \
16 --disable-regenerate-docu \
17 --enable-securedir
=/lib
/security \
19 LINUX_PAM_DEPENDENCIES
= flex host-flex host-pkgconf
20 LINUX_PAM_AUTORECONF
= YES
21 LINUX_PAM_LICENSE
= BSD-3c
22 LINUX_PAM_LICENSE_FILES
= Copyright
24 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE
),y
)
25 LINUX_PAM_DEPENDENCIES
+= gettext
26 LINUX_PAM_MAKE_OPTS
+= LIBS
=-lintl
29 ifeq ($(BR2_PACKAGE_LIBSELINUX
),y
)
30 LINUX_PAM_CONF_OPTS
+= --enable-selinux
31 LINUX_PAM_DEPENDENCIES
+= libselinux
32 define LINUX_PAM_SELINUX_PAMFILE_TWEAK
33 $(SED
) 's/^# \(.*pam_selinux.so.*\)$$/\1/' \
34 $(TARGET_DIR
)/etc
/pam.d
/login
37 LINUX_PAM_CONF_OPTS
+= --disable-selinux
40 ifeq ($(BR2_PACKAGE_AUDIT
),y
)
41 LINUX_PAM_CONF_OPTS
+= --enable-audit
42 LINUX_PAM_DEPENDENCIES
+= audit
44 LINUX_PAM_CONF_OPTS
+= --disable-audit
47 # Install default pam config (deny everything except login)
48 define LINUX_PAM_INSTALL_CONFIG
49 $(INSTALL
) -m
0644 -D package
/linux-pam
/login.pam \
50 $(TARGET_DIR
)/etc
/pam.d
/login
51 $(INSTALL
) -m
0644 -D package
/linux-pam
/other.pam \
52 $(TARGET_DIR
)/etc
/pam.d
/other
53 $(LINUX_PAM_SELINUX_PAMFILE_TWEAK
)
56 LINUX_PAM_POST_INSTALL_TARGET_HOOKS
+= LINUX_PAM_INSTALL_CONFIG
58 $(eval
$(autotools-package
))