Add new package into customfeed instead of package directory

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))

not sure this is a valid entry :wink:

yes, you are right, it's mistype but it doesn't make different.

I usually copy feeds.conf.default into feeds.conf. Then make sure your feed is at start of file. Also make sure you clean your feeds or rm -f feeds before you update/install feeds.

2 Likes

I'll try but it doesn't clearify why when I move package directory from customfeeds directory to project package directory it's starts working, but if I move it back it stops working again....

./scripts/feeds clean
resolved the issue.

It’s really just a vagary of the update/install feeds process. Cleaning your feeds forces an update/install and re-index of the feeds. I really haven’t looked into the intricacies of the process, but for the little effort it takes if you’re using custom feeds, I always add that step as matter of course.

1 Like