ff2379f56b5d891e476233e8d10c0a93c343e4d1
[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.5.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=33487fe5505b195eb31468d88ba9ab56
15
16 PKG_SOURCE_URL:=http://people.via.ecp.fr/~rem/ndisc6/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ndisc
25 SECTION:=ipv6
26 CATEGORY:=IPv6
27 SUBMENU:=IPv6 discovery tools
28 TITLE:=IPv6 discovery tools
29 DESCRIPTION:=IPv6 discovery tools
30 URL:=http://people.via.ecp.fr/~rem/ndisc6/
31 endef
32
33 define Package/ndisc6
34 $(call Package/ndisc)
35 TITLE:=An ICMPv6 neighbour discovery tool
36 DESCRIPTION:=An ICMPv6 neighbour discovery tools
37 endef
38
39 define Package/rdisc6
40 $(call Package/ndisc)
41 TITLE:=An ICMPv6 router discovery tool
42 DESCRIPTION:=An ICMPv6 router discovery tool
43 endef
44
45 define Package/tcptraceroute6
46 $(call Package/ndisc)
47 TITLE:=A TCP/IPv6-based traceroute implementation
48 DESCRIPTION:=A TCP/IPv6-based traceroute implementation
49 endef
50
51
52 define Build/Compile
53 $(MAKE) -C $(PKG_BUILD_DIR) \
54 $(TARGET_CONFIGURE_OPTS) \
55 CFLAGS="$(TARGET_CFLAGS)" \
56 all
57 endef
58
59 define Package/ndisc6/install
60 install -d -m0755 $(1)/usr/bin
61 install -m0755 $(PKG_BUILD_DIR)/ndisc6 $(1)/usr/bin/
62 endef
63
64 define Package/rdisc6/install
65 install -d -m0755 $(1)/usr/bin
66 install -m0755 $(PKG_BUILD_DIR)/rdisc6 $(1)/usr/bin/
67 endef
68
69 define Package/tcptraceroute6/install
70 install -d -m0755 $(1)/usr/bin
71 install -m0755 $(PKG_BUILD_DIR)/tcptraceroute6 $(1)/usr/bin/
72 endef
73
74 $(eval $(call BuildPackage,ndisc6))
75 $(eval $(call BuildPackage,rdisc6))
76 $(eval $(call BuildPackage,tcptraceroute6))