2 # Copyright (C) 2006-2014 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
11 PKG_SOURCE_DATE
:=2015-04-09
12 PKG_SOURCE_VERSION
:=78eb328721ba1a10571c19df95acddcb5f0c17c8
16 PKG_SOURCE_URL
:=https
://github.com
/Jajcus
/apinger
17 PKG_MIRROR_HASH
:=4ada1330fc5d0adc0216d141f5e3b494df7a4c6500bbffce1efeab3d58684f7e
19 PKG_MAINTAINER
:=Alex Samorukov
<samm@os2.kiev.ua
>
20 PKG_LICENSE
:=GPL-2.0
-only
22 PKG_REMOVE_FILES
:=autogen.sh
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/apinger
33 TITLE
:=Tool which monitors various IP devices by simple ICMP echo requests
34 URL
:=https
://github.com
/Jajcus
/apinger
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
48 define Package/apinger/conffiles
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
72 define Package/apinger-rrd
75 DEPENDS:=+apinger +rrdtool1 +rrdcgi1
76 TITLE:=Apinger RRD Graphs
77 URL:=https://github.com/Jajcus/apinger
80 define Package/apinger-rrd/description
81 Generate RRD Graphs from Apinger Data
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
89 $(eval $(call BuildPackage,apinger))
90 $(eval $(call BuildPackage,apinger-rrd))