Hi all please help with feeds I have a package with following Makefile, if I place it inside /package directory (and any subdirectories there) it appears correctly in config menu( make menuconfig
). But if I am trying to separate it into custom feed (making by wiki instruction) it is not listed in menu even after update and install the custom feed( ./scripts/feeds update customfeed; ./scripts/feeds install -a -p customfeed
)
# Copyright 2017-2018
# This is free software, licensed under the GNU General Public License v2.
include $(TOPDIR)/rules.mk
PKG_NAME:=tpws
PKG_VERSION:=1.4
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0-or-later
PKG_MAINTAINER:=NewUse <some@mail.local>
SOURCE_DIR:=/src/openwrt/openwrt/customfeed/net/Zapret/tpws
include $(INCLUDE_DIR)/package.mk
define Package/tpws
SECTION:=net
CATEGORY:=Network
TITLE:=TPWS DPI bypass proxy server
SUBMENU:=Zapret
DEPENDS:=+zlib +libcap +zlib +libcap +iptables
endef
define Package/tpws/description
DPI bypass proxy
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) $(SOURCE_DIR)/tpws/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
endef
define Package/tpws/conffiles
/etc/config/zapret
endef
define Package/tpws/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DATA) ./files/zapret.conf $(1)/etc/config/zapret
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/zapret.init $(1)/etc/init.d/zapret
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_DATA) ./files/zapret.hotplug $(1)/etc/hotplug.d/iface/90-zapret
$(INSTALL_DIR) $(1)/opt/zapret/tpws
$(INSTALL_BIN) $(PKG_BUILD_DIR)/tpws $(1)/opt/zapret/tpws
endef
$(eval $(call BuildPackage,tpws))