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