2 # Copyright (C) 2009-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
13 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
14 PKG_LICENSE:=LGPL-2.1+
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=https://noping.cc/files
18 PKG_MD5SUM:=9c9f65bfd297d7e7092c7f219c31f66a
24 include $(INCLUDE_DIR)/package.mk
26 define Package/liboping/Default
27 URL:=http://verplant.org/liboping/
30 define Package/liboping
31 $(call Package/liboping/Default)
34 TITLE:=C library to generate ICMP echo requests.
38 $(call Package/liboping/Default)
41 TITLE:=Send ICMP echo request to network hosts
46 $(call Package/liboping/Default)
49 TITLE:=Ncurses application to send ICMP echo request to network hosts
50 DEPENDS+= +liboping +libncurses
53 TARGET_CFLAGS += $(FPIC)
56 --without-perl-bindings \
60 define Build/InstallDev
61 $(INSTALL_DIR) $(1)/usr/include
62 $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/
67 define Package/liboping/install
68 $(INSTALL_DIR) $(1)/usr/lib
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so.* $(1)/usr/lib/
72 define Package/oping/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oping $(1)/usr/bin/
77 define Package/noping/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/noping $(1)/usr/bin/
82 $(eval $(call BuildPackage,liboping))
83 $(eval $(call BuildPackage,oping))
84 $(eval $(call BuildPackage,noping))