1include $(TOPDIR)/rules.mk 2 3# Build package version from git sha-1 4PKG_NAME:=flowman 5PKG_SOURCE_PROTO:=git 6PKG_SOURCE_URL:=ssh://qca-git01.qualcomm.com:29418/streamboost/flowman.git 7PKG_BRANCH:=banana 8PKG_START_ORDER:=45 9PKG_RELEASE:=2 10 11include $(INCLUDE_DIR)/local-development.mk 12ifeq ($(DUMP)$(PKG_VERSION),) 13PKG_REV:=2b87ed0 14PKG_VERSION:=g2b87ed0 15endif 16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 17PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 18PKG_SOURCE_VERSION:=$(PKG_REV) 19PKG_SOURCE_MIRROR:=none 20PKG_BUILD_DEPENDS:=argp-standalone 21 22include $(INCLUDE_DIR)/package-version-override.mk 23include $(INCLUDE_DIR)/package.mk 24 25# use SPACES here instead of tabs 26define Package/flowman 27 CATEGORY:=Bigfoot 28 SUBMENU:=Flow Detect 29 TITLE:=Streamboost Flow Manager 30 DEPENDS:=+hiredis +libsbdaemon 31 MAINTAINER:=Cristian Prundeanu <prundeanu@qca.qualcomm.com> 32endef 33 34define Package/flowman/description 35Flowman is Da Man in charge of flow creation, deletion and association with connections. 36endef 37 38# https://forum.openwrt.org/viewtopic.php?id=21953 39TARGET_CFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib 40 41# Note: -largp seems to be required with uclibc 42MAKE_FLAGS += \ 43 EXTRA_LDLIBS+="-largp" 44 45# TABS 46define Package/flowman/install 47 $(INSTALL_DIR) $(1)/etc/appflow/streamboost.d/ 48 $(INSTALL_DIR) $(1)/usr/sbin/ 49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/flowman $(1)/usr/sbin/ 50 $(INSTALL_BIN) ./files/flowman.init $(1)/etc/appflow/streamboost.d/${PKG_START_ORDER}_${PKG_NAME} 51endef 52 53# NO TABS, NO SPACES 54$(eval $(call BuildPackage,flowman)) 55