poco: moved to github
[packages.git] / net / hsflowd / Makefile
1 #
2 # Copyright (C) 2012 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=hsflowd
12 PKG_RELEASE:=1
13 PKG_SOURCE_URL:=@SF/host-sflow
14 PKG_VERSION:=1.20
15 PKG_MD5SUM:=0bfc0b05fbab27a80557c5efb5e66693
16
17 PKG_USE_MIPS16:=0
18
19 PKG_SOURCE:=hsflowd-$(PKG_VERSION).tar.gz
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/hsflowd
24   SECTION:=net
25   CATEGORY:=Base system
26   DEPENDS:=+libpthread
27   TITLE:=Host sFlow export agent
28   URL:=http://host-sflow.sourceforge.net/
29 endef
30
31 define Package/sflowovsd
32   SECTION:=net
33   CATEGORY:=Base system
34   DEPENDS:=+hsflowd
35   TITLE:=Host sFlow Open vSwitch agent
36   URL:=http://host-sflow.sourceforge.net/
37 endef
38
39
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
44  monitored.
45 endef
46
47 define Package/sflowovsd/description
48  The Host sFlow agent can automatically configure the sFlow settings in
49  the Open vSwitch.
50 endef
51
52 MAKE_VARS += \
53         LIBVIRT=no \
54         XEN_DDK=no \
55         DEBIAN=no \
56         PLATFORM=Linux \
57         OPT="$(TARGET_CFLAGS) -std=c99"
58
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
64
65 endef
66
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
71 endef
72
73 $(eval $(call BuildPackage,hsflowd))
74 $(eval $(call BuildPackage,sflowovsd))