ndppd: new upstream release 0.2.2
[openwrt/svn-archive/archive.git] / ipv6 / ndppd / Makefile
1 #
2 # Copyright (C) 2007-2011 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:=ndppd
11 PKG_VERSION:=0.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
16 # Latest release
17 PKG_SOURCE_URL:=http://www.priv.nu/projects/ndppd/files/
18 PKG_MD5SUM:=d90c4b65777a62274c1837dba341e5a8
19
20 # Development snapshot
21 #PKG_SOURCE_URL=git://github.com/Tuhox/ndppd.git
22 #PKG_SOURCE_VERSION=master
23 #PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/ndppd
28 SECTION:=ipv6
29 CATEGORY:=IPv6
30 TITLE:=NDP Proxy Daemon
31 URL:=http://www.priv.nu/projects/ndppd/
32 MAINTAINER:=Gabriel Kerneis <kerneis@pps.jussieu.fr>
33 DEPENDS:=+kmod-ipv6 +uclibcxx
34 endef
35
36 define Package/ndppd/description
37 ndppd, or NDP Proxy Daemon, is a daemon that proxies NDP (Neighbor Discovery
38 Protocol) messages between interfaces. ndppd currently only supports Neighbor
39 Solicitation Messages and Neighbor Advertisement Messages.
40
41 The ndp_proxy provided by Linux doesn't support listing proxies, and only hosts
42 are supported. No subnets. ndppd solves this by listening for Neighbor
43 Solicitation messages on an interface, then query the internal interfaces for
44 that target IP before finally sending a Neighbor Advertisement message.
45 endef
46
47 define Package/ndppd/conffiles
48 /etc/ndppd.conf
49 endef
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 CXX="$(TARGET_CXX)" \
54 CXXFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS) $(TARGET_CFLAGS) \
55 -std=c++0x -fno-builtin -fno-rtti -nostdinc++ \
56 -I$(STAGING_DIR)/usr/include/uClibc++" \
57 LDFLAGS="$(TARGET_LDFLAGS)" \
58 LIBS="-nodefaultlibs -lc -luClibc++ $(LIBGCC_S)" \
59 ndppd
60 endef
61
62 define Package/ndppd/install
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndppd $(1)/usr/sbin/
65 $(INSTALL_DIR) $(1)/etc/init.d
66 $(INSTALL_BIN) ./files/ndppd.init $(1)/etc/init.d/ndppd
67 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ndppd.conf-dist $(1)/etc/ndppd.conf
68 endef
69
70 $(eval $(call BuildPackage,ndppd))