2 # Copyright (C) 2007-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.priv.nu
/projects
/ndppd
/files
/
16 PKG_MD5SUM
:=9b65a8cccfce8689f0c1c410c20b4790
18 include $(INCLUDE_DIR
)/package.mk
23 TITLE
:=NDP Proxy Daemon
24 URL
:=http
://www.priv.nu
/projects
/ndppd
/
25 MAINTAINER
:=Gabriel Kerneis
<kerneis@pps.jussieu.fr
>
26 DEPENDS
:=+kmod-ipv6
+confuse
+uclibcxx
29 define Package
/ndppd
/description
30 ndppd
, or NDP Proxy Daemon
, is a daemon that proxies NDP
(Neighbor Discovery
31 Protocol
) messages between interfaces. ndppd currently only supports Neighbor
32 Solicitation Messages and Neighbor Advertisement Messages.
34 The ndp_proxy provided by Linux doesn
't support listing proxies, and only hosts
35 are supported. No subnets. ndppd solves this by listening for Neighbor
36 Solicitation messages on an interface, then query the internal interfaces for
37 that target IP before finally sending a Neighbor Advertisement message.
40 define Package/ndppd/conffiles
45 $(MAKE) -C $(PKG_BUILD_DIR) \
47 CXXFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CXXFLAGS) -fno-builtin -fno-rtti -nostdinc++ \
48 -I$(STAGING_DIR)/usr/include/uClibc++ -I$(LINUX_DIR)/include" \
49 LDFLAGS="$(TARGET_LDFLAGS)" \
50 LIBS="-nodefaultlibs -luClibc++ -lconfuse" \
54 define Package/ndppd/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndppd $(1)/usr/sbin/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/ndppd.init $(1)/etc/init.d/ndppd
59 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ndppd.conf-dist $(1)/etc/ndppd.conf
62 $(eval $(call BuildPackage,ndppd))