2017-05-05 14:35:27 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libpwquality
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-05-19 15:33:09 +02:00
|
|
|
LIBPWQUALITY_VERSION = 1.4.2
|
2017-05-05 14:35:27 +02:00
|
|
|
LIBPWQUALITY_SOURCE = libpwquality-$(LIBPWQUALITY_VERSION).tar.bz2
|
|
|
|
LIBPWQUALITY_SITE = https://github.com/libpwquality/libpwquality/releases/download/libpwquality-$(LIBPWQUALITY_VERSION)
|
|
|
|
LIBPWQUALITY_LICENSE = BSD-3-Clause or GPL-2.0+
|
|
|
|
LIBPWQUALITY_INSTALL_STAGING = YES
|
|
|
|
LIBPWQUALITY_DEPENDENCIES = cracklib
|
|
|
|
LIBPWQUALITY_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
LIBPWQUALITY_CONF_OPTS += --enable-python-bindings
|
|
|
|
LIBPWQUALITY_DEPENDENCIES += python
|
|
|
|
LIBPWQUALITY_MAKE_ENV += $(PKG_PYTHON_DISTUTILS_ENV)
|
|
|
|
else
|
|
|
|
LIBPWQUALITY_CONF_OPTS += --disable-python-bindings
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
|
|
|
|
LIBPWQUALITY_CONF_OPTS += --enable-pam
|
|
|
|
LIBPWQUALITY_DEPENDENCIES += linux-pam
|
|
|
|
else
|
|
|
|
LIBPWQUALITY_CONF_OPTS += --disable-pam
|
|
|
|
endif
|
|
|
|
|
2017-07-05 12:45:18 +02:00
|
|
|
# Static link with cracklib requires -lz if zlib is enabled
|
|
|
|
ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_ZLIB),yy)
|
|
|
|
LIBPWQUALITY_CONF_ENV += LIBS="-lz"
|
|
|
|
endif
|
|
|
|
|
2017-05-05 14:35:27 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBPWQUALITY_TOOLS),)
|
|
|
|
define LIBPWQUALITY_REMOVE_TOOLS
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/pwmake
|
|
|
|
rm -f $(TARGET_DIR)/usr/bin/pwscore
|
|
|
|
endef
|
|
|
|
|
|
|
|
LIBPWQUALITY_POST_INSTALL_TARGET_HOOKS += LIBPWQUALITY_REMOVE_TOOLS
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|