1################################################################################ 2# 3# libpwquality 4# 5################################################################################ 6 7LIBPWQUALITY_VERSION = 1.4.5 8LIBPWQUALITY_SOURCE = libpwquality-$(LIBPWQUALITY_VERSION).tar.bz2 9LIBPWQUALITY_SITE = https://github.com/libpwquality/libpwquality/releases/download/libpwquality-$(LIBPWQUALITY_VERSION) 10LIBPWQUALITY_LICENSE = BSD-3-Clause or GPL-2.0+ 11LIBPWQUALITY_INSTALL_STAGING = YES 12LIBPWQUALITY_DEPENDENCIES = cracklib 13LIBPWQUALITY_LICENSE_FILES = COPYING 14# We're patching python/Makefile.am 15LIBPWQUALITY_AUTORECONF = YES 16 17ifeq ($(BR2_PACKAGE_PYTHON3),y) 18LIBPWQUALITY_CONF_OPTS += --enable-python-bindings 19LIBPWQUALITY_DEPENDENCIES += python3 host-python-setuptools 20LIBPWQUALITY_MAKE_ENV += $(PKG_PYTHON_SETUPTOOLS_ENV) 21else 22LIBPWQUALITY_CONF_OPTS += --disable-python-bindings 23endif 24 25ifeq ($(BR2_PACKAGE_LINUX_PAM),y) 26LIBPWQUALITY_CONF_OPTS += --enable-pam 27LIBPWQUALITY_DEPENDENCIES += linux-pam 28else 29LIBPWQUALITY_CONF_OPTS += --disable-pam 30endif 31 32# Static link with cracklib requires -lz if zlib is enabled 33ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_ZLIB),yy) 34LIBPWQUALITY_CONF_ENV += LIBS="-lz" 35endif 36 37ifeq ($(BR2_PACKAGE_LIBPWQUALITY_TOOLS),) 38define LIBPWQUALITY_REMOVE_TOOLS 39 rm -f $(TARGET_DIR)/usr/bin/pwmake 40 rm -f $(TARGET_DIR)/usr/bin/pwscore 41endef 42 43LIBPWQUALITY_POST_INSTALL_TARGET_HOOKS += LIBPWQUALITY_REMOVE_TOOLS 44endif 45 46$(eval $(autotools-package)) 47