fix ssmtp compile
[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://www.remlab.net/files/ndisc6/ \
17 http://www.remlab.net/files/ndisc6/archive/
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
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 URL:=http://people.via.ecp.fr/~rem/ndisc6/
30 endef
31
32 define Package/ndisc/description
33 IPv6 discovery tools
34 endef
35
36 define Package/ndisc6
37 $(call Package/ndisc)
38 TITLE:=An ICMPv6 neighbour discovery tool
39 endef
40
41 define Package/ndisc6/description
42 An ICMPv6 neighbour discovery tools
43 endef
44
45 define Package/rdisc6
46 $(call Package/ndisc)
47 TITLE:=An ICMPv6 router discovery tool
48 endef
49
50 define Package/rdisc6/description
51 An ICMPv6 router discovery tool
52 endef
53
54 define Package/tcptraceroute6
55 $(call Package/ndisc)
56 TITLE:=A TCP/IPv6-based traceroute implementation
57 endef
58
59 define Package/tcptraceroute6/description
60 A TCP/IPv6-based traceroute implementation
61 endef
62
63
64 define Build/Compile
65 $(MAKE) -C $(PKG_BUILD_DIR) \
66 $(TARGET_CONFIGURE_OPTS) \
67 CFLAGS="$(TARGET_CFLAGS)" \
68 all
69 endef
70
71 define Package/ndisc6/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndisc6 $(1)/usr/bin/
74 endef
75
76 define Package/rdisc6/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(INSTALL_BIN) $(PKG_BUILD_DIR)/rdisc6 $(1)/usr/bin/
79 endef
80
81 define Package/tcptraceroute6/install
82 $(INSTALL_DIR) $(1)/usr/bin
83 $(INSTALL_BIN) $(PKG_BUILD_DIR)/tcptraceroute6 $(1)/usr/bin/
84 endef
85
86 $(eval $(call BuildPackage,ndisc6))
87 $(eval $(call BuildPackage,rdisc6))
88 $(eval $(call BuildPackage,tcptraceroute6))