2019-05-20 14:38:33 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=urandom-seed
|
|
|
|
PKG_VERSION:=1.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2020-02-23 12:37:36 +00:00
|
|
|
define Package/urandom-seed
|
2019-05-20 14:38:33 +00:00
|
|
|
SECTION:=base
|
|
|
|
CATEGORY:=Base system
|
|
|
|
DEPENDS:=+getrandom
|
|
|
|
TITLE:=/etc/urandom.seed handling for OpenWrt
|
|
|
|
URL:=http://openwrt.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile/Default
|
|
|
|
endef
|
|
|
|
Build/Compile = $(Build/Compile/Default)
|
|
|
|
|
2020-02-23 12:37:36 +00:00
|
|
|
define Package/urandom-seed/install
|
2019-05-20 14:38:33 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,urandom-seed))
|