2 # Copyright (C) 2009-2012 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
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://verplant.org/liboping/files
16 PKG_MD5SUM:=64a6f31310093d2517cfe7f05aa011e0
22 include $(INCLUDE_DIR)/package.mk
24 define Package/liboping/Default
25 URL:=http://verplant.org/liboping/
28 define Package/liboping
29 $(call Package/liboping/Default)
32 TITLE:=C library to generate ICMP echo requests.
36 $(call Package/liboping/Default)
39 TITLE:=Send ICMP echo request to network hosts
44 $(call Package/liboping/Default)
47 TITLE:=Ncurses application to send ICMP echo request to network hosts
48 DEPENDS+= +liboping +libncurses
51 TARGET_CFLAGS += $(FPIC)
54 --without-perl-bindings \
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/oping.h $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.{a,so*} $(1)/usr/lib/
65 define Package/liboping/install
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboping.so.* $(1)/usr/lib/
70 define Package/oping/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/oping $(1)/usr/bin/
75 define Package/noping/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/noping $(1)/usr/bin/
80 $(eval $(call BuildPackage,liboping))
81 $(eval $(call BuildPackage,oping))
82 $(eval $(call BuildPackage,noping))