Add SPDX license tags
[feed/routing.git] / 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.3
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:=d6f3243bb7fc04c8085371c9acddc50e
19 PKG_LICENSE:=GPL-3.0+
20
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)
25
26 include $(INCLUDE_DIR)/uclibc++.mk
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/ndppd
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=NDP Proxy Daemon
33 URL:=http://www.priv.nu/projects/ndppd/
34 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
35 DEPENDS:=+kmod-ipv6 $(CXX_DEPENDS)
36 endef
37
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.
42
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.
47 endef
48
49 define Package/ndppd/conffiles
50 /etc/ndppd.conf
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 CXX="$(TARGET_CXX)" \
56 CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++0x -fno-rtti" \
57 LDFLAGS="$(TARGET_LDFLAGS)" \
58 LIBS="-lc" \
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))