DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / net / net-tools / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=net-tools
12 PKG_VERSION:=1.60
13 PKG_RELEASE:=1
14
15 PKG_MD5SUM:=888774accab40217dde927e21979c165
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://www.tazenda.demon.co.uk/phil/net-tools/
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/net-tools
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=Original net-tools
28 URL:=http://www.tazenda.demon.co.uk/phil/net-tools/
29 endef
30
31 define Package/net-tools/description
32 The net-tools package contains usual linux commands:
33 arp, hostname, ipmaddr, iptunnel, mii-tool, nameif, netstat, plipconfig, rarp,
34 route and slattach.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 CC="$(TARGET_CC)" \
40 COPTS="$(TARGET_CFLAGS)"
41 endef
42
43 define Package/net-tools/install
44 $(INSTALL_DIR) $(1)/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/netstat $(1)/bin/
46 $(INSTALL_DIR) $(1)/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/route $(1)/sbin/
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arp $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostname $(1)/usr/sbin/
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipmaddr $(1)/usr/sbin/
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/iptunnel $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mii-tool $(1)/usr/sbin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nameif $(1)/usr/sbin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/plipconfig $(1)/usr/sbin/
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rarp $(1)/usr/sbin/
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/slattach $(1)/usr/sbin/
58 endef
59
60 # FIXME: check if commands are really provided by busybox (busybox | grep <name>)
61 define Package/net-tools/postrm
62 #!/bin/sh
63 ln -sf busybox $${IPKG_INSTROOT}/bin/netstat
64 ln -sf ../bin/busybox $${IPKG_INSTROOT}/sbin/route
65 endef
66
67 $(eval $(call BuildPackage,net-tools))