736144ae2a36a9b90cffd4b8a6c4b76c4baf4b2b
[openwrt/svn-archive/archive.git] / net / iputils / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iputils
11 PKG_VERSION:=20100418
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:=df6b0062118cdc5c62e3c810f831e976
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-s$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22
23
24 define Package/iputils-arping
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=iputils - arping
28 URL:=http://www.skbuff.net/iputils
29 DEPENDS:= +sysfsutils
30 endef
31
32 define Package/iputils-arping/description
33 Program arping from iputils.
34 Sends ARP REQUEST to a neighbour host.
35 endef
36
37 define Package/iputils-clockdiff
38 SECTION:=net
39 CATEGORY:=Network
40 TITLE:=iputils - clockdiff
41 URL:=http://www.skbuff.net/iputils
42 endef
43
44 define Package/iputils-clockdiff/description
45 Program clockdiff from iputils.
46 Measures clock difference between hosts.
47 endef
48
49 define Package/iputils-ping
50 SECTION:=net
51 CATEGORY:=Network
52 TITLE:=iputils - ping
53 URL:=http://www.skbuff.net/iputils
54 endef
55
56 define Package/iputils-ping/description
57 Program ping from iputils.
58 Sends ICMP ECHO_REQUEST to network hosts (IPv4).
59 endef
60
61 define Package/iputils-ping6
62 SECTION:=net
63 CATEGORY:=Network
64 TITLE:=iputils - ping6
65 URL:=http://www.skbuff.net/iputils
66 DEPENDS += @IPV6
67 endef
68
69 define Package/iputils-ping6/description
70 Program ping6 from iputils.
71 Sends ICMP ECHO_REQUEST to network hosts (IPv6).
72 endef
73
74 define Package/iputils-tftpd
75 SECTION:=net
76 CATEGORY:=Network
77 TITLE:=iputils - tftpd
78 URL:=http://www.skbuff.net/iputils
79 endef
80
81 define Package/iputils-tftpd/description
82 Program tftpd from iputils
83 Trivial File Transfer Protocol server.
84 endef
85
86 define Package/iputils-tracepath
87 SECTION:=net
88 CATEGORY:=Network
89 TITLE:=iputils - tracepath
90 URL:=http://www.skbuff.net/iputils
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 define Package/iputils-tracepath6
99 SECTION:=net
100 CATEGORY:=Network
101 TITLE:=iputils - tracepath6
102 URL:=http://www.skbuff.net/iputils
103 DEPENDS += @IPV6
104 endef
105
106 define Package/iputils-tracepath6/description
107 Program tracepath6 from iputils.
108 Traces path to a network host discovering MTU along this path (IPv6).
109 endef
110
111 define Package/iputils-traceroute6
112 SECTION:=net
113 CATEGORY:=Network
114 TITLE:=iputils - traceroute6
115 URL:=http://www.skbuff.net/iputils
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) -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib"
126
127 define Package/iputils-arping/install
128 $(INSTALL_DIR) $(1)/usr/bin
129 $(INSTALL_BIN) $(PKG_BUILD_DIR)/arping $(1)/usr/bin/
130 endef
131
132 define Package/iputils-clockdiff/install
133 $(INSTALL_DIR) $(1)/usr/bin
134 $(INSTALL_BIN) $(PKG_BUILD_DIR)/clockdiff $(1)/usr/bin/
135 endef
136
137 define Package/iputils-ping/install
138 $(INSTALL_DIR) $(1)/usr/bin
139 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping $(1)/usr/bin/
140 endef
141
142 define Package/iputils-ping6/install
143 $(INSTALL_DIR) $(1)/usr/bin
144 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ping6 $(1)/usr/bin/
145 endef
146
147 define Package/iputils-tftpd/install
148 $(INSTALL_DIR) $(1)/usr/sbin
149 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tftpd $(1)/usr/sbin/
150 endef
151
152 define Package/iputils-tracepath/install
153 $(INSTALL_DIR) $(1)/usr/bin
154 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath $(1)/usr/bin/
155 endef
156
157 define Package/iputils-tracepath6/install
158 $(INSTALL_DIR) $(1)/usr/bin
159 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tracepath6 $(1)/usr/bin/
160 endef
161
162 define Package/iputils-traceroute6/install
163 $(INSTALL_DIR) $(1)/usr/bin
164 $(INSTALL_BIN) $(PKG_BUILD_DIR)/traceroute6 $(1)/usr/bin/
165 endef
166
167 $(eval $(call BuildPackage,iputils-arping))
168 $(eval $(call BuildPackage,iputils-clockdiff))
169 $(eval $(call BuildPackage,iputils-ping))
170 $(eval $(call BuildPackage,iputils-tftpd))
171 $(eval $(call BuildPackage,iputils-tracepath))
172 ifeq ($(CONFIG_IPV6),y)
173 $(eval $(call BuildPackage,iputils-ping6))
174 $(eval $(call BuildPackage,iputils-tracepath6))
175 $(eval $(call BuildPackage,iputils-traceroute6))
176 endif