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