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