mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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:
@@ -49,7 +49,7 @@ PKG_CONFIG_DEPENDS:= \
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/$(PKG_NAME)
|
||||
define Package/privoxy
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Web Servers/Proxies
|
||||
@@ -61,12 +61,12 @@ define Package/$(PKG_NAME)
|
||||
endef
|
||||
|
||||
# shown in LuCI package description
|
||||
define Package/$(PKG_NAME)/description
|
||||
define Package/privoxy/description
|
||||
$(TITLE) - Homepage: www.privoxy.org
|
||||
endef
|
||||
|
||||
# shown in make menuconfig <Help>
|
||||
define Package/$(PKG_NAME)/config
|
||||
define Package/privoxy/config
|
||||
help
|
||||
Privoxy is a web proxy with advanced filtering capabilities for protecting
|
||||
privacy, modifying web page content, managing cookies, controlling access,
|
||||
@@ -110,14 +110,14 @@ CONFIGURE_ARGS += \
|
||||
# needed otherwise errors during compile
|
||||
MAKE_FLAGS:=
|
||||
|
||||
define Package/$(PKG_NAME)/conffiles
|
||||
define Package/privoxy/conffiles
|
||||
/etc/config/privoxy
|
||||
/etc/privoxy/user.action
|
||||
/etc/privoxy/user.filter
|
||||
/etc/privoxy/user.trust
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/preinst
|
||||
define Package/privoxy/preinst
|
||||
#!/bin/sh
|
||||
[ -n "$${IPKG_INSTROOT}" ] && exit 0 # if run within buildroot exit
|
||||
|
||||
@@ -127,7 +127,7 @@ define Package/$(PKG_NAME)/preinst
|
||||
exit 0 # suppress errors from stop command
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/install
|
||||
define Package/privoxy/install
|
||||
if [ -f $(PKG_INSTALL_DIR)/etc/privoxy/trust ]; then \
|
||||
mv -f $(PKG_INSTALL_DIR)/etc/privoxy/trust $(PKG_INSTALL_DIR)/etc/privoxy/user.trust; \
|
||||
fi
|
||||
@@ -155,10 +155,10 @@ define Package/$(PKG_NAME)/install
|
||||
$(INSTALL_CONF) ./files/privoxy.config $(1)/etc/config/privoxy
|
||||
endef
|
||||
|
||||
define Package/$(PKG_NAME)/postinst
|
||||
define Package/privoxy/postinst
|
||||
#!/bin/sh
|
||||
grep -i privoxy $${IPKG_INSTROOT}/etc/services >/dev/null 2>&1 || \
|
||||
echo -e "privoxy\t8118" >> $${IPKG_INSTROOT}/etc/services
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,$(PKG_NAME)))
|
||||
$(eval $(call BuildPackage,privoxy))
|
||||
|
||||
Reference in New Issue
Block a user