Initial Commit
- initial default booting image
This commit is contained in:
11
package/lynis/Config.in
Normal file
11
package/lynis/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_LYNIS
|
||||
bool "lynis"
|
||||
depends on BR2_USE_WCHAR # gzip
|
||||
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
select BR2_PACKAGE_GZIP # runtime (zgrep /proc/config.gz)
|
||||
help
|
||||
Lynis is an auditing tool which tests and gathers (security)
|
||||
information from Unix based systems.
|
||||
Written in shell and running on system itself.
|
||||
|
||||
https://cisofy.com/lynis/
|
||||
3
package/lynis/lynis.hash
Normal file
3
package/lynis/lynis.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 48d829d0dc2c583a3e838cc09a7190b69a3af844bcb913c7cf9c0226b04b95c5 lynis-3.1.7.tar.gz
|
||||
sha256 57151f0fa287550534af08facb1c6693ca803ffa65b512da38b55c3130810bcf LICENSE
|
||||
48
package/lynis/lynis.mk
Normal file
48
package/lynis/lynis.mk
Normal file
@@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# lynis
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LYNIS_VERSION = 3.1.7
|
||||
LYNIS_SITE = $(call github,CISOfy,lynis,$(LYNIS_VERSION))
|
||||
LYNIS_LICENSE = GPL-3.0
|
||||
LYNIS_LICENSE_FILES = LICENSE
|
||||
|
||||
define LYNIS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 $(@D)/lynis \
|
||||
$(TARGET_DIR)/usr/sbin/lynis
|
||||
$(INSTALL) -D -m 0644 $(@D)/default.prf \
|
||||
$(TARGET_DIR)/etc/lynis/default.prf
|
||||
$(INSTALL) -D -m 0644 $(@D)/developer.prf \
|
||||
$(TARGET_DIR)/etc/lynis/developer.prf
|
||||
$(INSTALL) -D -m 0644 $(@D)/plugins/* \
|
||||
-t $(TARGET_DIR)/etc/lynis/plugins
|
||||
$(INSTALL) -D -m 0644 $(@D)/include/* \
|
||||
-t $(TARGET_DIR)/usr/share/lynis/include
|
||||
$(INSTALL) -D -m 0644 $(@D)/db/*.db \
|
||||
-t $(TARGET_DIR)/usr/share/lynis/db
|
||||
$(INSTALL) -D -m 0644 $(@D)/db/languages/en \
|
||||
$(TARGET_DIR)/usr/share/lynis/db/languages/en
|
||||
endef
|
||||
|
||||
ifneq ($(BR2_PACKAGE_GAWK),y)
|
||||
define LYNIS_AWK_BUSYBOX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_AWK)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_FEATURE_AWK_LIBM)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_PACKAGE_COREUTILS),y)
|
||||
define LYNIS_STAT_BUSYBOX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_STAT)
|
||||
endef
|
||||
endif
|
||||
|
||||
define LYNIS_BUSYBOX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_PGREP)
|
||||
$(LYNIS_AWK_BUSYBOX_CONFIG_FIXUPS)
|
||||
$(LYNIS_STAT_BUSYBOX_CONFIG_FIXUPS)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user