[packages] net-tools: ensure that the cross-ar gets used, fixes linker issues on...
[openwrt/svn-archive/archive.git] / net / net-tools / 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:=net-tools
11 PKG_VERSION:=1.60
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.tazenda.demon.co.uk/phil/net-tools/
16 PKG_MD5SUM:=888774accab40217dde927e21979c165
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/net-tools-arp
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=net-tools - arp
26 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
27 endef
28
29 define Package/net-tools-arp/description
30 Program arp from net-tools. Manipulate kernel's ARP cache.
31 Add, delete an entry, or to dump the entire cache.
32 endef
33
34 define Package/net-tools-dnsdomainname
35 SECTION:=net
36 CATEGORY:=Network
37 DEPENDS += net-tools-hostname
38 TITLE:=net-tools - dnsdomainname
39 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
40 endef
41
42 define Package/net-tools-dnsdomainname/description
43 Program dnsdomainname from net-tools.
44 Reports the system's DNS domain name.
45 endef
46
47 define Package/net-tools-domainname
48 SECTION:=net
49 CATEGORY:=Network
50 DEPENDS += net-tools-hostname
51 TITLE:=net-tools - domainname
52 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
53 endef
54
55 define Package/net-tools-domainname/description
56 Program domainname from net-tools.
57 Reports the system's NIS/YP domain name.
58 endef
59
60 define Package/net-tools-hostname
61 SECTION:=net
62 CATEGORY:=Network
63 TITLE:=net-tools - hostname
64 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
65 endef
66
67 define Package/net-tools-hostname/description
68 Program hostname from net-tools.
69 Reports or sets the name of the current host system.
70 endef
71
72 define Package/net-tools-ifconfig
73 SECTION:=net
74 CATEGORY:=Network
75 TITLE:=net-tools - ifconfig
76 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
77 endef
78
79 define Package/net-tools-ifconfig/description
80 Program ifconfig from net-tools.
81 Configure network interfaces.
82 endef
83
84 define Package/net-tools-ipmaddr
85 SECTION:=net
86 CATEGORY:=Network
87 TITLE:=net-tools - ipmaddr
88 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
89 endef
90
91 define Package/net-tools-ipmaddr/description
92 Program ipmaddr from net-tools. Adds,
93 deletes and shows an interface's multicast addresses.
94 endef
95
96 define Package/net-tools-iptunnel
97 SECTION:=net
98 CATEGORY:=Network
99 TITLE:=net-tools - iptunnel
100 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
101 endef
102
103 define Package/net-tools-iptunnel/description
104 Program iptunnel from net-tools.
105 Adds, changes, deletes and shows an interface's tunnels.
106 endef
107
108 define Package/net-tools-mii-tool
109 SECTION:=net
110 CATEGORY:=Network
111 TITLE:=net-tools - mii-tool
112 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
113 endef
114
115 define Package/net-tools-mii-tool/description
116 Program mii-tool from net-tools. Checks or sets
117 the status of a network interface's Media Independent
118 Interface (MII) unit.
119 endef
120
121 define Package/net-tools-nameif
122 SECTION:=net
123 CATEGORY:=Network
124 TITLE:=net-tools - nameif
125 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
126 endef
127
128 define Package/net-tools-nameif/description
129 Program nameif from net-tools
130 Trivial File Transfer Protocol server.
131 endef
132
133 define Package/net-tools-netstat
134 SECTION:=net
135 CATEGORY:=Network
136 TITLE:=net-tools - netstat
137 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
138 endef
139
140 define Package/net-tools-netstat/description
141 Program netstat from net-tools. Report network
142 connections, routing tables, and interface statistics.
143 endef
144
145 define Package/net-tools-nisdomainname
146 SECTION:=net
147 CATEGORY:=Network
148 DEPENDS += net-tools-hostname
149 TITLE:=net-tools - nisdomainname
150 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
151 endef
152
153 define Package/net-tools-nisdomainname/description
154 Program nisdomainname from net-tools.
155 Same as domainname.
156 endef
157
158 define Package/net-tools-plipconfig
159 SECTION:=net
160 CATEGORY:=Network
161 TITLE:=net-tools - plipconfig
162 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
163 endef
164
165 define Package/net-tools-plipconfig/description
166 Program plipconfig from net-tools. Fine tune the
167 PLIP device parameters, to improve its performance.
168 endef
169
170 define Package/net-tools-rarp
171 SECTION:=net
172 CATEGORY:=Network
173 TITLE:=net-tools - rarp
174 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
175 endef
176
177 define Package/net-tools-rarp/description
178 Program rarp from net-tools.
179 Manipulate the kernel's RARP table.
180 endef
181
182 define Package/net-tools-route
183 SECTION:=net
184 CATEGORY:=Network
185 SUBMENU:=Routing and Redirection
186 TITLE:=net-tools - route
187 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
188 endef
189
190 define Package/net-tools-route/description
191 Program route from net-tools.
192 Manipulate the IP routing table.
193 endef
194
195 define Package/net-tools-slattach
196 SECTION:=net
197 CATEGORY:=Network
198 TITLE:=net-tools - slattach
199 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
200 endef
201
202 define Package/net-tools-slattach/description
203 Program slattach from net-tools. Attaches a
204 network interface to a serial line. This allows
205 to use normal terminal lines for point-to-point
206 links to other computers.
207 endef
208
209 define Package/net-tools-ypdomainname
210 SECTION:=net
211 CATEGORY:=Network
212 DEPENDS += net-tools-hostname
213 TITLE:=net-tools - ypdomainname
214 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
215 endef
216
217 define Package/net-tools-ypdomainname/description
218 Program route from net-tools.
219 Same as domainname.
220 endef
221
222 define Build/Compile
223 $(MAKE) -C $(PKG_BUILD_DIR) \
224 CC="$(TARGET_CC)" \
225 AR="$(TARGET_CROSS)ar" \
226 COPTS="$(TARGET_CFLAGS)"
227 endef
228
229 define Package/net-tools-arp/install
230 $(INSTALL_DIR) $(1)/usr/bin
231 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arp $(1)/usr/bin/
232 endef
233
234 define Package/net-tools-dnsdomainname/install
235 $(INSTALL_DIR) $(1)/usr/bin
236 ln -sf hostname $(1)/usr/bin/dnsdomainname
237 endef
238
239 define Package/net-tools-domainname/install
240 $(INSTALL_DIR) $(1)/usr/bin
241 ln -sf hostname $(1)/usr/bin/domainname
242 endef
243
244 define Package/net-tools-hostname/install
245 $(INSTALL_DIR) $(1)/usr/bin
246 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostname $(1)/usr/bin/
247 endef
248
249 define Package/net-tools-ifconfig/install
250 $(INSTALL_DIR) $(1)/usr/sbin
251 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifconfig $(1)/usr/sbin/
252 endef
253
254 define Package/net-tools-ipmaddr/install
255 $(INSTALL_DIR) $(1)/usr/bin
256 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipmaddr $(1)/usr/bin/
257 endef
258
259 define Package/net-tools-iptunnel/install
260 $(INSTALL_DIR) $(1)/usr/bin
261 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iptunnel $(1)/usr/bin/
262 endef
263
264 define Package/net-tools-mii-tool/install
265 $(INSTALL_DIR) $(1)/usr/bin
266 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/bin/
267 endef
268
269 define Package/net-tools-nameif/install
270 $(INSTALL_DIR) $(1)/usr/bin
271 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nameif $(1)/usr/bin/
272 endef
273
274 define Package/net-tools-netstat/install
275 $(INSTALL_DIR) $(1)/usr/bin
276 $(INSTALL_BIN) $(PKG_BUILD_DIR)/netstat $(1)/usr/bin/
277 endef
278
279 define Package/net-tools-nisdomainname/install
280 $(INSTALL_DIR) $(1)/usr/bin
281 ln -sf hostname $(1)/usr/bin/nisdomainname
282 endef
283
284 define Package/net-tools-plipconfig/install
285 $(INSTALL_DIR) $(1)/usr/bin
286 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plipconfig $(1)/usr/bin/
287 endef
288
289 define Package/net-tools-rarp/install
290 $(INSTALL_DIR) $(1)/usr/bin
291 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rarp $(1)/usr/bin/
292 endef
293
294 define Package/net-tools-route/install
295 $(INSTALL_DIR) $(1)/usr/bin
296 $(INSTALL_BIN) $(PKG_BUILD_DIR)/route $(1)/usr/bin/
297 endef
298
299 define Package/net-tools-slattach/install
300 $(INSTALL_DIR) $(1)/usr/bin
301 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slattach $(1)/usr/bin/
302 endef
303
304 define Package/net-tools-ypdomainname/install
305 $(INSTALL_DIR) $(1)/usr/bin
306 ln -sf hostname $(1)/usr/bin/ypdomainname
307 endef
308
309 $(eval $(call BuildPackage,net-tools-arp))
310 $(eval $(call BuildPackage,net-tools-hostname))
311 $(eval $(call BuildPackage,net-tools-dnsdomainname))
312 $(eval $(call BuildPackage,net-tools-domainname))
313 $(eval $(call BuildPackage,net-tools-ifconfig))
314 $(eval $(call BuildPackage,net-tools-ipmaddr))
315 $(eval $(call BuildPackage,net-tools-iptunnel))
316 $(eval $(call BuildPackage,net-tools-mii-tool))
317 $(eval $(call BuildPackage,net-tools-nameif))
318 $(eval $(call BuildPackage,net-tools-netstat))
319 $(eval $(call BuildPackage,net-tools-nisdomainname))
320 $(eval $(call BuildPackage,net-tools-plipconfig))
321 $(eval $(call BuildPackage,net-tools-rarp))
322 $(eval $(call BuildPackage,net-tools-route))
323 $(eval $(call BuildPackage,net-tools-slattach))
324 $(eval $(call BuildPackage,net-tools-ypdomainname))