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
+4 -4
View File
@@ -21,7 +21,7 @@ PKG_SOURCE_VERSION:=v$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
define Package/lua-mosquitto
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
@@ -30,13 +30,13 @@ define Package/$(PKG_NAME)
MAINTAINER:=Karl Palsson <karlp@remake.is>
endef
define Package/$(PKG_NAME)/description
define Package/lua-mosquitto/description
Lua bindings to libmosquitto
endef
define Package/$(PKG_NAME)/install
define Package/lua-mosquitto/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mosquitto.so $(1)/usr/lib/lua
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,lua-mosquitto))
+3 -3
View File
@@ -21,7 +21,7 @@ PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
define Package/lua-openssl
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
@@ -34,9 +34,9 @@ define Package/lua-openssl/description
A free, MIT-licensed OpenSSL binding for Lua.
endef
define Package/$(PKG_NAME)/install
define Package/lua-openssl/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_BIN) $(PKG_BUILD_DIR)/openssl.so $(1)/usr/lib/lua/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,lua-openssl))
+4 -4
View File
@@ -19,7 +19,7 @@ PKG_LICENSE_FILES:=LICENSE.md
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
define Package/lua-penlight
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
@@ -29,7 +29,7 @@ define Package/$(PKG_NAME)
MAINTAINER:= Karl Palsson <karlp@remake.is>
endef
define Package/$(PKG_NAME)/description
define Package/lua-penlight/description
It is often said of Lua that it does not include batteries.
Penlight is the batteries.
endef
@@ -38,9 +38,9 @@ define Build/Compile
echo "Nothing to compile, pure lua package"
endef
define Package/$(PKG_NAME)/install
define Package/lua-penlight/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(CP) $(PKG_BUILD_DIR)/lua/pl $(1)/usr/lib/lua
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,lua-penlight))