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
19 PKG_SOURCE:=hsflowd-$(PKG_VERSION).tar.gz
21 include $(INCLUDE_DIR)/package.mk
23 define Package/hsflowd
27 TITLE:=Host sFlow export agent
28 URL:=http://host-sflow.sourceforge.net/
31 define Package/sflowovsd
35 TITLE:=Host sFlow Open vSwitch agent
36 URL:=http://host-sflow.sourceforge.net/
40 define Package/hsflowd/description
41 The Host sFlow agent exports server performance metrics using the sFlow
42 protocol. The agent is intended to provide scalable, multi-vendor,
43 multi-OS performance monitoring with minimal impact on the systems being
47 define Package/sflowovsd/description
48 The Host sFlow agent can automatically configure the sFlow settings in
57 OPT="$(TARGET_CFLAGS) -std=c99"
59 define Package/hsflowd/install
60 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d $(1)/etc/config
61 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Linux/hsflowd $(1)/usr/sbin
62 $(INSTALL_BIN) ./files/hsflowd.init $(1)/etc/init.d/hsflowd
63 $(INSTALL_CONF) ./files/hsflowd.config $(1)/etc/config/hsflowd
67 define Package/sflowovsd/install
68 $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/init.d
69 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/Linux/sflowovsd $(1)/usr/sbin
70 $(INSTALL_BIN) ./files/sflowovsd.init $(1)/etc/init.d/sflowovsd
73 $(eval $(call BuildPackage,hsflowd))
74 $(eval $(call BuildPackage,sflowovsd))