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