treewide: use name in define and eval lines

For consistency, use full name instead of $(PKG_NAME) in define and eval
lines for all packages.

I've seen reviews that asked to do this before, and I am asking the same
during reviews now. To avoid this in the future, fix this treewide so
when people use existing packages as example, we will not have to
request this change anymore.

This makes all packages consistent with both LEDE and OpenWrt base
repositories.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
Stijn Tintel
2017-03-07 13:41:01 +01:00
parent 694e5a677c
commit f82287cf5c
17 changed files with 157 additions and 156 deletions
+5 -5
View File
@@ -15,7 +15,7 @@ PKG_LICENSE:=GPL-3.0+
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
define Package/dynapoint
SECTION:=net
CATEGORY:=Network
SUBMENU:=wireless
@@ -23,19 +23,19 @@ define Package/$(PKG_NAME)
TITLE:=Dynamic access point manager
endef
define Package/$(PKG_NAME)/description
define Package/dynapoint/description
Dynapoint uses LUA scripts to allow dynamic access point creation
and deletion depending on changes of certain network conditions.
endef
define Package/$(PKG_NAME)/conffiles
define Package/dynapoint/conffiles
/etc/config/dynapoint
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
define Package/dynapoint/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) ./src/dynapoint.lua $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
@@ -44,4 +44,4 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DATA) ./src/dynapoint.config $(1)/etc/config/dynapoint
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,dynapoint))