2 # Copyright (C) 2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
13 PKG_SOURCE_URL:=@SF/host-sflow
15 PKG_MD5SUM:=0bfc0b05fbab27a80557c5efb5e66693
17 PKG_SOURCE:=hsflowd-$(PKG_VERSION).tar.gz
19 include $(INCLUDE_DIR)/package.mk
21 define Package/hsflowd
24 TITLE:=Host sFlow export agent
25 URL:=http://host-sflow.sourceforge.net/
28 define Package/sflowovsd
32 TITLE:=Host sFlow Open vSwitch agent
33 URL:=http://host-sflow.sourceforge.net/
37 define Package/hsflowd/description
38 The Host sFlow agent exports server performance metrics using the sFlow
39 protocol. The agent is intended to provide scalable, multi-vendor,
40 multi-OS performance monitoring with minimal impact on the systems being
44 define Package/sflowovsd/description
45 The Host sFlow agent can automatically configure the sFlow settings in
54 OPT="$(TARGET_CFLAGS) -std=c99"
56 define Package/hsflowd/install
57 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
58 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Linux/hsflowd $(1)/usr/sbin
59 $(INSTALL_BIN) ./files/hsflowd.init $(1)/etc/init.d/hsflowd
60 $(INSTALL_CONF) ./files/hsflowd.config $(1)/etc/config/hsflowd
64 define Package/sflowovsd/install
65 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
66 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Linux/sflowovsd $(1)/usr/sbin
67 $(INSTALL_BIN) ./files/sflowovsd.init $(1)/etc/init.d/sflowovsd
70 $(eval $(call BuildPackage,hsflowd))
71 $(eval $(call BuildPackage,sflowovsd))