Initial Commit
- initial default booting image
This commit is contained in:
28
package/cracklib/Config.in
Normal file
28
package/cracklib/Config.in
Normal file
@@ -0,0 +1,28 @@
|
||||
config BR2_PACKAGE_CRACKLIB
|
||||
bool "cracklib"
|
||||
help
|
||||
CrackLib tests passwords to determine whether they match
|
||||
certain security-oriented characteristics, with the purpose
|
||||
of stopping users from choosing passwords that are easy to
|
||||
guess. CrackLib performs several tests on passwords: it
|
||||
tries to generate words from a username and gecos entry and
|
||||
checks those words against the password; it checks for
|
||||
simplistic patterns in passwords; and it checks for the
|
||||
password in a dictionary.
|
||||
|
||||
https://github.com/cracklib/cracklib
|
||||
|
||||
if BR2_PACKAGE_CRACKLIB
|
||||
|
||||
config BR2_PACKAGE_CRACKLIB_TOOLS
|
||||
bool "install tools"
|
||||
help
|
||||
Install cracklib command line tools for creating dicts.
|
||||
|
||||
config BR2_PACKAGE_CRACKLIB_FULL_DICT
|
||||
bool "full dict"
|
||||
help
|
||||
Install the full cracklib dict (requires about 8Mb extra
|
||||
target space).
|
||||
|
||||
endif
|
||||
4
package/cracklib/cracklib.hash
Normal file
4
package/cracklib/cracklib.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# Locally calculated
|
||||
sha256 1d1b83676b5673051b9373e1ca0db81c1fa88faf9a195a3c1af984fd9c250d66 cracklib-2.10.3.tar.xz
|
||||
sha256 b3d1e0e0ae9bc7ffed65c0042d7c68bdb903368aa6b918f94572453c6ea874dc cracklib-words-2.10.3.xz
|
||||
sha256 f18a0811fa0e220ccbc42f661545e77f0388631e209585ed582a1c693029c6aa COPYING.LIB
|
||||
60
package/cracklib/cracklib.mk
Normal file
60
package/cracklib/cracklib.mk
Normal file
@@ -0,0 +1,60 @@
|
||||
################################################################################
|
||||
#
|
||||
# cracklib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CRACKLIB_VERSION = 2.10.3
|
||||
CRACKLIB_SOURCE = cracklib-$(CRACKLIB_VERSION).tar.xz
|
||||
CRACKLIB_SITE = https://github.com/cracklib/cracklib/releases/download/v$(CRACKLIB_VERSION)
|
||||
CRACKLIB_LICENSE = LGPL-2.1
|
||||
CRACKLIB_LICENSE_FILES = COPYING.LIB
|
||||
CRACKLIB_CPE_ID_VALID = YES
|
||||
CRACKLIB_INSTALL_STAGING = YES
|
||||
CRACKLIB_DEPENDENCIES = host-cracklib $(TARGET_NLS_DEPENDENCIES)
|
||||
CRACKLIB_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
CRACKLIB_CONF_OPTS += --with-zlib
|
||||
CRACKLIB_DEPENDENCIES += zlib
|
||||
else
|
||||
CRACKLIB_CONF_OPTS += --without-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
# py-compile must be rebuilt because python 3.12 removed imp module
|
||||
CRACKLIB_AUTORECONF = YES
|
||||
CRACKLIB_CONF_OPTS += --with-python
|
||||
CRACKLIB_CONF_ENV += \
|
||||
ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3 \
|
||||
am_cv_python_version=$(PYTHON3_VERSION_MAJOR)
|
||||
CRACKLIB_DEPENDENCIES += python3
|
||||
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).xz
|
||||
CRACKLIB_DICT_SOURCE = $(CRACKLIB_DL_DIR)/cracklib-words-$(CRACKLIB_VERSION).xz
|
||||
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))
|
||||
Reference in New Issue
Block a user