2 # Copyright (C) 2009-2011 OpenWrt.org
3 # Copyright (C) 2009 Jakob Pfeiffer
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/opennhrp
17 PKG_MD5SUM:=4d0ec7c0282e181ecca4d78e52067da3
23 include $(INCLUDE_DIR)/package.mk
25 define Package/opennhrp
29 DEPENDS:=+libcares +ipsec-tools +ip +kmod-gre
30 KCONFIG:=CONFIG_ARPD=y
31 TITLE:=NBMA Next Hop Resolution Protocol
32 URL:=http://opennhrp.sourceforge.net/
35 define Package/opennhrp/description
36 OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332).
37 It makes it possible to create dynamic multipoint VPN Linux router using NHRP,
38 GRE and IPsec. It aims to be Cisco DMVPN compatible.
41 define Package/opennhrp/conffiles
42 /etc/opennhrp/opennhrp.conf
45 define Package/opennhrp/install
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opennhrp{,ctl} $(1)/usr/sbin/
48 $(INSTALL_DIR) $(1)/etc/opennhrp
49 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp.conf $(1)/etc/opennhrp/
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp-script $(1)/etc/opennhrp/
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/racoon-ph1down.sh $(1)/etc/opennhrp/
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/racoon-ph1dead.sh $(1)/etc/opennhrp/
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/opennhrp.init $(1)/etc/init.d/opennhrp
57 $(eval $(call BuildPackage,opennhrp))