python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / linux-pam / linux-pam.mk
blobc8ba30f74de60bb3c1ae9a5c61001df7dc4eac84
1 ################################################################################
3 # linux-pam
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 = \
12 --disable-prelude \
13 --disable-isadir \
14 --disable-nis \
15 --disable-db \
16 --disable-regenerate-docu \
17 --enable-securedir=/lib/security \
18 --libdir=/lib
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
27 endif
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
35 endef
36 else
37 LINUX_PAM_CONF_OPTS += --disable-selinux
38 endif
40 ifeq ($(BR2_PACKAGE_AUDIT),y)
41 LINUX_PAM_CONF_OPTS += --enable-audit
42 LINUX_PAM_DEPENDENCIES += audit
43 else
44 LINUX_PAM_CONF_OPTS += --disable-audit
45 endif
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)
54 endef
56 LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_INSTALL_CONFIG
58 $(eval $(autotools-package))