bird2: bump to version 2.15.1
[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.5
12 PKG_RELEASE:=2
13
14 # Latest release
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
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:=net
29 CATEGORY:=Network
30 TITLE:=NDP Proxy Daemon
31 URL:=http://www.priv.nu/projects/ndppd/
32 MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
33 DEPENDS:=@IPV6 +libstdcpp
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_CXXFLAGS) -std=c++0x -fno-rtti" \
55 LDFLAGS="$(TARGET_LDFLAGS)" \
56 LIBS="-lc" \
57 ndppd
58 endef
59
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
66 endef
67
68 $(eval $(call BuildPackage,ndppd))