2017-05-05 14:35:26 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cracklib
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-03-11 19:42:35 +01:00
|
|
|
CRACKLIB_VERSION = 2.9.7
|
|
|
|
CRACKLIB_SITE = https://github.com/cracklib/cracklib/releases/download/v$(CRACKLIB_VERSION)
|
2017-05-05 14:35:26 +02:00
|
|
|
CRACKLIB_LICENSE = LGPL-2.1
|
|
|
|
CRACKLIB_LICENSE_FILES = COPYING.LIB
|
2021-03-20 19:21:02 +01:00
|
|
|
CRACKLIB_CPE_ID_VENDOR = cracklib_project
|
2017-05-05 14:35:26 +02:00
|
|
|
CRACKLIB_INSTALL_STAGING = YES
|
2019-05-09 22:43:40 +02:00
|
|
|
CRACKLIB_DEPENDENCIES = host-cracklib $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
CRACKLIB_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
2017-05-05 14:35:26 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
CRACKLIB_CONF_OPTS += --with-zlib
|
|
|
|
CRACKLIB_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
CRACKLIB_CONF_OPTS += --without-zlib
|
|
|
|
endif
|
|
|
|
|
2020-05-19 21:08:11 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
2017-05-05 14:35:26 +02:00
|
|
|
CRACKLIB_CONF_OPTS += --with-python
|
2020-05-19 21:08:11 +02:00
|
|
|
CRACKLIB_DEPENDENCIES += python
|
2017-05-05 14:35:26 +02:00
|
|
|
else
|
|
|
|
CRACKLIB_CONF_OPTS += --without-python
|
|
|
|
endif
|
|
|
|
|
|
|
|
HOST_CRACKLIB_CONF_OPTS += --without-python --without-zlib
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CRACKLIB_FULL_DICT),y)
|
|
|
|
CRACKLIB_EXTRA_DOWNLOADS = cracklib-words-$(CRACKLIB_VERSION).gz
|
2018-04-02 15:09:24 +02:00
|
|
|
CRACKLIB_DICT_SOURCE = $(CRACKLIB_DL_DIR)/cracklib-words-$(CRACKLIB_VERSION).gz
|
2017-05-05 14:35:26 +02:00
|
|
|
else
|
|
|
|
CRACKLIB_DICT_SOURCE = $(@D)/dicts/cracklib-small
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CRACKLIB_TOOLS),)
|
|
|
|
define CRACKLIB_REMOVE_TOOLS
|
|
|
|
rm -f $(TARGET_DIR)/usr/sbin/*cracklib*
|
|
|
|
endef
|
|
|
|
CRACKLIB_POST_INSTALL_TARGET_HOOKS += CRACKLIB_REMOVE_TOOLS
|
|
|
|
endif
|
|
|
|
|
|
|
|
define CRACKLIB_BUILD_DICT
|
|
|
|
$(HOST_MAKE_ENV) cracklib-format $(CRACKLIB_DICT_SOURCE) | \
|
|
|
|
$(HOST_MAKE_ENV) cracklib-packer $(TARGET_DIR)/usr/share/cracklib/pw_dict
|
|
|
|
rm $(TARGET_DIR)/usr/share/cracklib/cracklib-small
|
|
|
|
endef
|
|
|
|
CRACKLIB_POST_INSTALL_TARGET_HOOKS += CRACKLIB_BUILD_DICT
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|
|
|
|
$(eval $(host-autotools-package))
|