[package] add luasoap
[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_SOURCE:=hsflowd-$(PKG_VERSION).tar.gz
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/hsflowd
22   SECTION:=net
23   CATEGORY:=Base system
24   TITLE:=Host sFlow export agent
25   URL:=http://host-sflow.sourceforge.net/
26 endef
27
28 define Package/sflowovsd
29   SECTION:=net
30   CATEGORY:=Base system
31   DEPENDS:=+hsflowd
32   TITLE:=Host sFlow Open vSwitch agent
33   URL:=http://host-sflow.sourceforge.net/
34 endef
35
36
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
41  monitored.
42 endef
43
44 define Package/sflowovsd/description
45  The Host sFlow agent can automatically configure the sFlow settings in
46  the Open vSwitch.
47 endef
48
49 MAKE_VARS += \
50         LIBVIRT=no \
51         XEN_DDK=no \
52         DEBIAN=no \
53         PLATFORM=Linux \
54         OPT="$(TARGET_CFLAGS) -std=c99"
55
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
61
62 endef
63
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
68 endef
69
70 $(eval $(call BuildPackage,hsflowd))
71 $(eval $(call BuildPackage,sflowovsd))
72