treewide: remove AUTORELEASE
[feed/packages.git] / net / apinger / Makefile
1 #
2 # Copyright (C) 2006-2014 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
10 PKG_NAME:=apinger
11 PKG_SOURCE_DATE:=2015-04-09
12 PKG_SOURCE_VERSION:=78eb328721ba1a10571c19df95acddcb5f0c17c8
13 PKG_RELEASE:=5
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/Jajcus/apinger
17 PKG_MIRROR_HASH:=4ada1330fc5d0adc0216d141f5e3b494df7a4c6500bbffce1efeab3d58684f7e
18
19 PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
20 PKG_LICENSE:=GPL-2.0-only
21
22 PKG_REMOVE_FILES:=autogen.sh
23 PKG_FIXUP:=autoreconf
24
25 PKG_INSTALL:=1
26 PKG_BUILD_PARALLEL:=0
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/apinger
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=Tool which monitors various IP devices by simple ICMP echo requests
34 URL:=https://github.com/Jajcus/apinger
35 endef
36
37 define Package/apinger/description
38 Alarm Pinger (apinger) is a little tool which monitors various IP devices by
39 simple ICMP echo requests. There are various other tools, that can do this,
40 but most of them are shell or perl scripts, spawning many processes, thus much
41 CPU-expensive, especially when one wants continuous monitoring and fast
42 response on target failure. Alarm Pinger is a single program written in C, so
43 it doesn't need much CPU power even when monitoring many targets with frequent
44 probes. Alarm Pinger supports both IPv4 and IPv6. The code have been tested
45 on Linux and FreeBSD.
46 endef
47
48 define Package/apinger/conffiles
49 /etc/config/apinger
50 /etc/apinger.user
51 endef
52
53 define Package/apinger/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/apinger $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/etc
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/apinger.conf $(1)/etc/apinger.conf
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/apinger.init $(1)/etc/init.d/apinger
60 $(INSTALL_DIR) $(1)/etc/config
61 $(INSTALL_DATA) ./files/apinger.config $(1)/etc/config/apinger
62 $(INSTALL_DIR) $(1)/usr/libexec
63 $(INSTALL_BIN) ./files/apinger-hotplug $(1)/usr/libexec/apinger-hotplug
64 $(INSTALL_DIR) $(1)/etc/hotplug.d/apinger
65 $(INSTALL_DATA) ./files/user.hotplug $(1)/etc/hotplug.d/apinger/01-user
66 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
67 $(INSTALL_DATA) ./files/iface.hotplug $(1)/etc/hotplug.d/iface/25-apinger
68 $(INSTALL_DIR) $(1)/usr/libexec/rpcd
69 $(INSTALL_BIN) ./files/apinger.rpc $(1)/usr/libexec/rpcd/apinger
70 endef
71
72 define Package/apinger-rrd
73 SECTION:=net
74 CATEGORY:=Network
75 DEPENDS:=+apinger +rrdtool1 +rrdcgi1
76 TITLE:=Apinger RRD Graphs
77 URL:=https://github.com/Jajcus/apinger
78 endef
79
80 define Package/apinger-rrd/description
81 Generate RRD Graphs from Apinger Data
82 endef
83
84 define Package/apinger-rrd/install
85 $(INSTALL_DIR) $(1)/usr/libexec/apinger/rpc
86 $(INSTALL_DATA) ./files/graphs.sh $(1)/usr/libexec/apinger/rpc
87 endef
88
89 $(eval $(call BuildPackage,apinger))
90 $(eval $(call BuildPackage,apinger-rrd))
91