Root/package/network/utils/iputils/Makefile

1#
2# Copyright (C) 2006-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=iputils
11PKG_VERSION:=20101006
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-s$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://www.skbuff.net/iputils
16PKG_MD5SUM:=a36c25e9ec17e48be514dc0485e7376c
17
18PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
19
20PKG_BUILD_DEPENDS:=sysfsutils
21PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION)
22
23include $(INCLUDE_DIR)/package.mk
24
25
26define Package/iputils/Default
27  SECTION:=net
28  CATEGORY:=Network
29  URL:=http://www.skbuff.net/iputils
30endef
31
32
33define Package/iputils-arping
34$(call Package/iputils/Default)
35  TITLE:=iputils - arping
36  DEPENDS+= +libsysfs
37endef
38
39define Package/iputils-arping/description
40  Program arping from iputils.
41  Sends ARP REQUEST to a neighbour host.
42endef
43
44
45define Package/iputils-clockdiff
46$(call Package/iputils/Default)
47  TITLE:=iputils - clockdiff
48endef
49
50define Package/iputils-clockdiff/description
51  Program clockdiff from iputils.
52  Measures clock difference between hosts.
53endef
54
55
56define Package/iputils-ping
57$(call Package/iputils/Default)
58  TITLE:=iputils - ping
59endef
60
61define Package/iputils-ping/description
62  Program ping from iputils.
63  Sends ICMP ECHO_REQUEST to network hosts (IPv4).
64endef
65
66
67define Package/iputils-ping6
68$(call Package/iputils/Default)
69  TITLE:=iputils - ping6
70  DEPENDS+= @IPV6
71endef
72
73define Package/iputils-ping6/description
74  Program ping6 from iputils.
75  Sends ICMP ECHO_REQUEST to network hosts (IPv6).
76endef
77
78
79define Package/iputils-tftpd
80$(call Package/iputils/Default)
81  TITLE:=iputils - tftpd
82endef
83
84define Package/iputils-tftpd/description
85  Program tftpd from iputils
86  Trivial File Transfer Protocol server.
87endef
88
89
90define Package/iputils-tracepath
91$(call Package/iputils/Default)
92  TITLE:=iputils - tracepath
93endef
94
95define Package/iputils-tracepath/description
96  Program tracepath from iputils.
97  Traces path to a network host discovering MTU along this path (IPv4).
98endef
99
100
101define Package/iputils-tracepath6
102$(call Package/iputils/Default)
103  TITLE:=iputils - tracepath6
104  DEPENDS+= @IPV6
105endef
106
107define Package/iputils-tracepath6/description
108  Program tracepath6 from iputils.
109  Traces path to a network host discovering MTU along this path (IPv6).
110endef
111
112
113define Package/iputils-traceroute6
114$(call Package/iputils/Default)
115  TITLE:=iputils - traceroute6
116  DEPENDS+= @IPV6
117endef
118
119define Package/iputils-traceroute6/description
120  Program traceroute6 from iputils.
121  Traces path to a network host (IPv6).
122endef
123
124ifeq ($(BOARD),brcm47xx)
125  TARGET_CFLAGS += -O2
126endif
127
128MAKE_FLAGS += \
129    CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS)" \
130    CONFIG_IPV6="$(CONFIG_IPV6)" \
131    CONFIG_USE_UCLIBC="$(CONFIG_USE_UCLIBC)" \
132
133define Package/iputils-arping/install
134    $(INSTALL_DIR) $(1)/usr/bin
135    $(INSTALL_BIN) $(PKG_BUILD_DIR)/arping $(1)/usr/bin/
136endef
137
138define Package/iputils-clockdiff/install
139    $(INSTALL_DIR) $(1)/usr/bin
140    $(INSTALL_BIN) $(PKG_BUILD_DIR)/clockdiff $(1)/usr/bin/
141endef
142
143define Package/iputils-ping/install
144    $(INSTALL_DIR) $(1)/usr/bin
145    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping $(1)/usr/bin/
146endef
147
148define Package/iputils-ping6/install
149    $(INSTALL_DIR) $(1)/usr/bin
150    $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping6 $(1)/usr/bin/
151endef
152
153define Package/iputils-tftpd/install
154    $(INSTALL_DIR) $(1)/usr/sbin
155    $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd $(1)/usr/sbin/
156endef
157
158define Package/iputils-tracepath/install
159    $(INSTALL_DIR) $(1)/usr/bin
160    $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath $(1)/usr/bin/
161endef
162
163define Package/iputils-tracepath6/install
164    $(INSTALL_DIR) $(1)/usr/bin
165    $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath6 $(1)/usr/bin/
166endef
167
168define Package/iputils-traceroute6/install
169    $(INSTALL_DIR) $(1)/usr/bin
170    $(INSTALL_BIN) $(PKG_BUILD_DIR)/traceroute6 $(1)/usr/bin/
171endef
172
173$(eval $(call BuildPackage,iputils-arping))
174$(eval $(call BuildPackage,iputils-clockdiff))
175$(eval $(call BuildPackage,iputils-ping))
176$(eval $(call BuildPackage,iputils-tftpd))
177$(eval $(call BuildPackage,iputils-tracepath))
178$(eval $(call BuildPackage,iputils-ping6))
179$(eval $(call BuildPackage,iputils-tracepath6))
180$(eval $(call BuildPackage,iputils-traceroute6))
181

Archive Download this file



interactive