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
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/DanielAdolfsson
/ndppd
/tar.gz
/$(PKG_VERSION
)?
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_HASH
:=ee934167f8357f0bd0015e201a77fbe4d028c59e89dc98113805c6855e1c3992
18 PKG_LICENSE
:=GPL-3.0
-or-later
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)
25 include $(INCLUDE_DIR
)/package.mk
30 TITLE
:=NDP Proxy Daemon
31 URL
:=http
://www.priv.nu
/projects
/ndppd
/
32 MAINTAINER
:=Gabriel Kerneis
<gabriel@kerneis.
info>
33 DEPENDS
:=@IPV6
+libstdcpp
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.
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.
47 define Package/ndppd/conffiles
52 $(MAKE) -C $(PKG_BUILD_DIR) \
54 CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++0x -fno-rtti" \
55 LDFLAGS="$(TARGET_LDFLAGS)" \
60 define Package/ndppd/install
61 $(INSTALL_DIR) $(1)/usr/sbin
62 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndppd $(1)/usr/sbin/
63 $(INSTALL_DIR) $(1)/etc/init.d
64 $(INSTALL_BIN) ./files/ndppd.init $(1)/etc/init.d/ndppd
65 $(INSTALL_CONF) $(PKG_BUILD_DIR)/ndppd.conf-dist $(1)/etc/ndppd.conf
68 $(eval $(call BuildPackage,ndppd))