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
25 TITLE:=Host sFlow export agent
26 URL:=http://host-sflow.sourceforge.net/
29 define Package/sflowovsd
33 TITLE:=Host sFlow Open vSwitch agent
34 URL:=http://host-sflow.sourceforge.net/
38 define Package/hsflowd/description
39 The Host sFlow agent exports server performance metrics using the sFlow
40 protocol. The agent is intended to provide scalable, multi-vendor,
41 multi-OS performance monitoring with minimal impact on the systems being
45 define Package/sflowovsd/description
46 The Host sFlow agent can automatically configure the sFlow settings in
55 OPT="$(TARGET_CFLAGS) -std=c99"
57 define Package/hsflowd/install
58 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Linux/hsflowd $(1)/usr/sbin
60 $(INSTALL_BIN) ./files/hsflowd.init $(1)/etc/init.d/hsflowd
61 $(INSTALL_CONF) ./files/hsflowd.config $(1)/etc/config/hsflowd
65 define Package/sflowovsd/install
66 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
67 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Linux/sflowovsd $(1)/usr/sbin
68 $(INSTALL_BIN) ./files/sflowovsd.init $(1)/etc/init.d/sflowovsd
71 $(eval $(call BuildPackage,hsflowd))
72 $(eval $(call BuildPackage,sflowovsd))