sysklogd: fix build on musl
[buildroot-gz.git] / package / linux-pam / linux-pam.mk
blob6ce3839edcb903102f539a402edfc6274a6af64f
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 else
33 LINUX_PAM_CONF_OPTS += --disable-selinux
34 endif
36 ifeq ($(BR2_PACKAGE_AUDIT),y)
37 LINUX_PAM_CONF_OPTS += --enable-audit
38 LINUX_PAM_DEPENDENCIES += audit
39 else
40 LINUX_PAM_CONF_OPTS += --disable-audit
41 endif
43 # Install default pam config (deny everything except login)
44 define LINUX_PAM_INSTALL_CONFIG
45 $(INSTALL) -m 0644 -D package/linux-pam/login.pam \
46 $(TARGET_DIR)/etc/pam.d/login
47 $(INSTALL) -m 0644 -D package/linux-pam/other.pam \
48 $(TARGET_DIR)/etc/pam.d/other
49 endef
51 LINUX_PAM_POST_INSTALL_TARGET_HOOKS += LINUX_PAM_INSTALL_CONFIG
53 $(eval $(autotools-package))