miniupnpd: backport of r35520
[12.09/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   DEPENDS:=+libpthread
25   TITLE:=Host sFlow export agent
26   URL:=http://host-sflow.sourceforge.net/
27 endef
28
29 define Package/sflowovsd
30   SECTION:=net
31   CATEGORY:=Base system
32   DEPENDS:=+hsflowd
33   TITLE:=Host sFlow Open vSwitch agent
34   URL:=http://host-sflow.sourceforge.net/
35 endef
36
37
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
42  monitored.
43 endef
44
45 define Package/sflowovsd/description
46  The Host sFlow agent can automatically configure the sFlow settings in
47  the Open vSwitch.
48 endef
49
50 MAKE_VARS += \
51         LIBVIRT=no \
52         XEN_DDK=no \
53         DEBIAN=no \
54         PLATFORM=Linux \
55         OPT="$(TARGET_CFLAGS) -std=c99"
56
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
62
63 endef
64
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
69 endef
70
71 $(eval $(call BuildPackage,hsflowd))
72 $(eval $(call BuildPackage,sflowovsd))
73