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_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=https
://github.com
/DanielAdolfsson
/ndppd
/archive
18 PKG_MD5SUM
:=1391c063db64b47541e58da12e5ae60d
21 # Development snapshot
22 #PKG_SOURCE_URL=git://github.com/Tuhox/ndppd.git
23 #PKG_SOURCE_VERSION=master
24 #PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
26 include $(INCLUDE_DIR
)/uclibc
++.mk
27 include $(INCLUDE_DIR
)/package.mk
32 TITLE
:=NDP Proxy Daemon
33 URL
:=http
://www.priv.nu
/projects
/ndppd
/
34 MAINTAINER
:=Gabriel Kerneis
<gabriel@kerneis.
info>
35 DEPENDS
:=@IPV6
$(CXX_DEPENDS
)
38 define Package
/ndppd
/description
39 ndppd
, or NDP Proxy Daemon
, is a daemon that proxies NDP
(Neighbor Discovery
40 Protocol
) messages between interfaces. ndppd currently only supports Neighbor
41 Solicitation Messages and Neighbor Advertisement Messages.
43 The ndp_proxy provided by Linux doesn
't support listing proxies, and only hosts
44 are supported. No subnets. ndppd solves this by listening for Neighbor
45 Solicitation messages on an interface, then query the internal interfaces for
46 that target IP before finally sending a Neighbor Advertisement message.
49 define Package/ndppd/conffiles
54 $(MAKE) -C $(PKG_BUILD_DIR) \
56 CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++0x -fno-rtti" \
57 LDFLAGS="$(TARGET_LDFLAGS)" \
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
70 $(eval $(call BuildPackage,ndppd))