[package] update ndisc6 (#3779)
[openwrt/svn-archive/archive.git] / ipv6 / ndisc / 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:=ndisc6
12 PKG_VERSION:=0.9.8
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=cb8d70564b8d40aae95e19592c6be183
15
16 PKG_SOURCE_URL:=http://www.remlab.net/files/ndisc6/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ndisc
24 SECTION:=ipv6
25 CATEGORY:=IPv6
26 SUBMENU:=IPv6 discovery tools
27 TITLE:=IPv6 discovery tools
28 URL:=http://people.via.ecp.fr/~rem/ndisc6/
29 endef
30
31 define Package/ndisc/description
32 IPv6 discovery tools
33 endef
34
35 define Package/ndisc6
36 $(call Package/ndisc)
37 TITLE:=An ICMPv6 neighbour discovery tool
38 endef
39
40 define Package/ndisc6/description
41 An ICMPv6 neighbour discovery tools
42 endef
43
44 define Package/rdisc6
45 $(call Package/ndisc)
46 TITLE:=An ICMPv6 router discovery tool
47 endef
48
49 define Package/rdisc6/description
50 An ICMPv6 router discovery tool
51 endef
52
53 define Package/tcptraceroute6
54 $(call Package/ndisc)
55 TITLE:=A TCP/IPv6-based traceroute implementation
56 endef
57
58 define Package/tcptraceroute6/description
59 A TCP/IPv6-based traceroute implementation
60 endef
61
62
63 define Build/Compile
64 $(MAKE) -C $(PKG_BUILD_DIR) \
65 $(TARGET_CONFIGURE_OPTS) \
66 CFLAGS="$(TARGET_CFLAGS) -std=c99" \
67 all
68 endef
69
70 define Package/ndisc6/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ndisc6 $(1)/usr/bin/
73 endef
74
75 define Package/rdisc6/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rdisc6 $(1)/usr/bin/
78 endef
79
80 define Package/tcptraceroute6/install
81 $(INSTALL_DIR) $(1)/usr/bin
82 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tcptraceroute6 $(1)/usr/bin/
83 endef
84
85 $(eval $(call BuildPackage,ndisc6))
86 $(eval $(call BuildPackage,rdisc6))
87 $(eval $(call BuildPackage,tcptraceroute6))