aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2020-02-23 21:38:24 +0900
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-02-23 22:42:51 +0100
commit3124c9afe32d80f8068777bec0ed785cc85a6738 (patch)
treece5b40b9a166f43b7fd74f764057fddd2c82d664 /package
parent33ecc694d5fdf5390d2e2703ef995ef8459f5071 (diff)
downloadupstream-3124c9afe32d80f8068777bec0ed785cc85a6738.tar.gz
upstream-3124c9afe32d80f8068777bec0ed785cc85a6738.tar.bz2
upstream-3124c9afe32d80f8068777bec0ed785cc85a6738.zip
urngd: avoid PKG_NAME in define lines
> Avoid reuse of PKG_NAME in call, define and eval lines for consistency and > readability. Write the full name instead. Ref: https://openwrt.org/docs/guide-developer/packages Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'package')
-rw-r--r--package/system/urngd/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/system/urngd/Makefile b/package/system/urngd/Makefile
index 9e26f222b6..54a1f457d2 100644
--- a/package/system/urngd/Makefile
+++ b/package/system/urngd/Makefile
@@ -17,14 +17,14 @@ PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
-define Package/$(PKG_NAME)
+define Package/urngd
SECTION:=utils
CATEGORY:=Base system
TITLE:=OpenWrt non-physical true random number generator based on timing jitter
DEPENDS:=+libubox
endef
-define Package/$(PKG_NAME)/description
+define Package/urngd/description
urngd is OpenWrt's micro non-physical true random number generator based on
timing jitter.
@@ -38,11 +38,11 @@ define Package/$(PKG_NAME)/description
Jitter RNGd provides a source of sufficient entropy.
endef
-define Package/$(PKG_NAME)/install
+define Package/urngd/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
$(INSTALL_DIR) $(1)/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/$(PKG_NAME)
endef
-$(eval $(call BuildPackage,$(PKG_NAME)))
+$(eval $(call BuildPackage,urngd))