[packages] ndisc: make rdnssd depend on librt, fix typo
[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 daemon
62 DEPENDS:=+librt
63 endef
64
65 define Package/rdnssd/description
66 A recursive DNS server discovery daemon gathering
67 information through stateless IPv6 autoconfiguration (RFC5006)
68 endef
69
70
71 define Build/Compile
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 $(TARGET_CONFIGURE_OPTS) \
74 CFLAGS="$(TARGET_CFLAGS) -std=c99" \
75 all
76 endef
77
78 define Package/ndisc6/install
79 $(INSTALL_DIR) $(1)/usr/bin
80 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ndisc6 $(1)/usr/bin/
81 endef
82
83 define Package/rdisc6/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rdisc6 $(1)/usr/bin/
86 endef
87
88 define Package/tcptraceroute6/install
89 $(INSTALL_DIR) $(1)/usr/bin
90 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tcptraceroute6 $(1)/usr/bin/
91 endef
92
93 define Package/rdnssd/install
94 $(INSTALL_DIR) $(1)/usr/bin
95 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rdnssd/rdnssd $(1)/usr/bin/
96 endef
97
98 $(eval $(call BuildPackage,ndisc6))
99 $(eval $(call BuildPackage,rdisc6))
100 $(eval $(call BuildPackage,tcptraceroute6))
101 $(eval $(call BuildPackage,rdnssd))