net/net-tools: break one big output package to individual net-tools utilities
[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 TITLE:=net-tools - route
186 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
187 endef
188
189 define Package/net-tools-route/description
190 Program route from net-tools.
191 Manipulate the IP routing table.
192 endef
193
194 define Package/net-tools-slattach
195 SECTION:=net
196 CATEGORY:=Network
197 TITLE:=net-tools - slattach
198 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
199 endef
200
201 define Package/net-tools-slattach/description
202 Program slattach from net-tools. Attaches a
203 network interface to a serial line. This allows
204 to use normal terminal lines for point-to-point
205 links to other computers.
206 endef
207
208 define Package/net-tools-ypdomainname
209 SECTION:=net
210 CATEGORY:=Network
211 DEPENDS += net-tools-hostname
212 TITLE:=net-tools - ypdomainname
213 URL:=http://www.tazenda.demon.co.uk/phil/net-tools
214 endef
215
216 define Package/net-tools-ypdomainname/description
217 Program route from net-tools.
218 Same as domainname.
219 endef
220
221 define Build/Compile
222 $(MAKE) -C $(PKG_BUILD_DIR) \
223 CC="$(TARGET_CC)" \
224 COPTS="$(TARGET_CFLAGS)"
225 endef
226
227 define Package/net-tools-arp/install
228 $(INSTALL_DIR) $(1)/usr/bin
229 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arp $(1)/usr/bin/
230 endef
231
232 define Package/net-tools-dnsdomainname/install
233 $(INSTALL_DIR) $(1)/usr/bin
234 ln -sf hostname $(1)/usr/bin/dnsdomainname
235 endef
236
237 define Package/net-tools-domainname/install
238 $(INSTALL_DIR) $(1)/usr/bin
239 ln -sf hostname $(1)/usr/bin/domainname
240 endef
241
242 define Package/net-tools-hostname/install
243 $(INSTALL_DIR) $(1)/usr/bin
244 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostname $(1)/usr/bin/
245 endef
246
247 define Package/net-tools-ifconfig/install
248 $(INSTALL_DIR) $(1)/usr/sbin
249 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifconfig $(1)/usr/sbin/
250 endef
251
252 define Package/net-tools-ipmaddr/install
253 $(INSTALL_DIR) $(1)/usr/bin
254 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipmaddr $(1)/usr/bin/
255 endef
256
257 define Package/net-tools-iptunnel/install
258 $(INSTALL_DIR) $(1)/usr/bin
259 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iptunnel $(1)/usr/bin/
260 endef
261
262 define Package/net-tools-mii-tool/install
263 $(INSTALL_DIR) $(1)/usr/bin
264 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/bin/
265 endef
266
267 define Package/net-tools-nameif/install
268 $(INSTALL_DIR) $(1)/usr/bin
269 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nameif $(1)/usr/bin/
270 endef
271
272 define Package/net-tools-netstat/install
273 $(INSTALL_DIR) $(1)/usr/bin
274 $(INSTALL_BIN) $(PKG_BUILD_DIR)/netstat $(1)/usr/bin/
275 endef
276
277 define Package/net-tools-nisdomainname/install
278 $(INSTALL_DIR) $(1)/usr/bin
279 ln -sf hostname $(1)/usr/bin/nisdomainname
280 endef
281
282 define Package/net-tools-plipconfig/install
283 $(INSTALL_DIR) $(1)/usr/bin
284 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plipconfig $(1)/usr/bin/
285 endef
286
287 define Package/net-tools-rarp/install
288 $(INSTALL_DIR) $(1)/usr/bin
289 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rarp $(1)/usr/bin/
290 endef
291
292 define Package/net-tools-route/install
293 $(INSTALL_DIR) $(1)/usr/bin
294 $(INSTALL_BIN) $(PKG_BUILD_DIR)/route $(1)/usr/bin/
295 endef
296
297 define Package/net-tools-slattach/install
298 $(INSTALL_DIR) $(1)/usr/bin
299 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slattach $(1)/usr/bin/
300 endef
301
302 define Package/net-tools-ypdomainname/install
303 $(INSTALL_DIR) $(1)/usr/bin
304 ln -sf hostname $(1)/usr/bin/ypdomainname
305 endef
306
307 $(eval $(call BuildPackage,net-tools-arp))
308 $(eval $(call BuildPackage,net-tools-hostname))
309 $(eval $(call BuildPackage,net-tools-dnsdomainname))
310 $(eval $(call BuildPackage,net-tools-domainname))
311 $(eval $(call BuildPackage,net-tools-ifconfig))
312 $(eval $(call BuildPackage,net-tools-ipmaddr))
313 $(eval $(call BuildPackage,net-tools-iptunnel))
314 $(eval $(call BuildPackage,net-tools-mii-tool))
315 $(eval $(call BuildPackage,net-tools-nameif))
316 $(eval $(call BuildPackage,net-tools-netstat))
317 $(eval $(call BuildPackage,net-tools-nisdomainname))
318 $(eval $(call BuildPackage,net-tools-plipconfig))
319 $(eval $(call BuildPackage,net-tools-rarp))
320 $(eval $(call BuildPackage,net-tools-route))
321 $(eval $(call BuildPackage,net-tools-slattach))
322 $(eval $(call BuildPackage,net-tools-ypdomainname))