1include $(TOPDIR)/rules.mk 2 3# Build package version from git sha-1 4PKG_NAME:=drflocs 5PKG_SOURCE_PROTO:=git 6PKG_SOURCE_URL:=ssh://qca-git01.qualcomm.com:29418/streamboost/drflocs 7PKG_BRANCH:=banana 8PKG_START_ORDER:=50 9PKG_RELEASE:=2 10 11include $(INCLUDE_DIR)/local-development.mk 12ifeq ($(DUMP)$(PKG_VERSION),) 13PKG_REV:=02f6341 14PKG_VERSION:=g02f6341 15endif 16 17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 18PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 19PKG_SOURCE_VERSION:=$(PKG_REV) 20PKG_SOURCE_MIRROR:=none 21PKG_BUILD_DEPENDS:=argp-standalone libyaml 22 23include $(INCLUDE_DIR)/package-version-override.mk 24include $(INCLUDE_DIR)/package.mk 25 26# use SPACES here instead of tabs 27define Package/drflocs 28 CATEGORY:=Bigfoot 29 SUBMENU:=Flow Detect 30 TITLE:=Bigfoot Networks Runtime Flow Classification System 31 DEPENDS:=+libpcap +librt +libevent2-core +hiredis +libnl-bf +libnetfilter-conntrack 32 MAINTAINER:=Ryan Nowakowski <rnowakow@qca.qualcomm.com> 33endef 34 35define Package/drflocs/description 36DRFloCS implements Layer 4-based packet inspection sauce to accelerate your life!!! 37endef 38 39# https://forum.openwrt.org/viewtopic.php?id=21953 40TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib 41 42# Note: -largp seems to be required with uclibc 43MAKE_FLAGS += \ 44 EXTRA_CFLAGS="$(TARGET_CFLAGS) \ 45 -I$(STAGING_DIR)/usr/include \ 46 -I$(STAGING_DIR)/usr/include/libnl3" \ 47 EXTRA_LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \ 48 EXTRA_LDLIBS="-largp" 49 50# TABS 51define Package/drflocs/install 52 $(INSTALL_DIR) $(1)/etc/appflow/streamboost.d/ 53 $(INSTALL_DIR) $(1)/usr/sbin/ 54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/drflocs $(1)/usr/sbin/ 55 $(INSTALL_BIN) ./files/drflocs.init $(1)/etc/appflow/streamboost.d/${PKG_START_ORDER}_${PKG_NAME} 56endef 57 58# NO TABS, NO SPACES 59$(eval $(call BuildPackage,drflocs)) 60