From 8446f8599e6d721b4a6c88b2a769404f952be12f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 28 Dec 2009 17:07:00 +0000 Subject: [PATCH] add opennhrp (based on a patch by Jakob Pfeiffer) SVN-Revision: 18959 --- net/opennhrp/Makefile | 40 ++++++++++++++++++++++++++++++++ net/opennhrp/files/opennhrp.init | 13 +++++++++++ 2 files changed, 53 insertions(+) create mode 100644 net/opennhrp/Makefile create mode 100755 net/opennhrp/files/opennhrp.init diff --git a/net/opennhrp/Makefile b/net/opennhrp/Makefile new file mode 100644 index 0000000000..3d7f46bede --- /dev/null +++ b/net/opennhrp/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=opennhrp +PKG_VERSION:=0.11.2 +PKG_RELEASE:=1 + +PKG_SOURCE_URL:=@SF/opennhrp +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_MD5SUM:=3aace509ac79acbde3bb3e44e88798d5 +PKG_CAT:=bzcat + +PKG_FIXUP:=libtool + +include $(INCLUDE_DIR)/package.mk + +define Package/opennhrp + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libcares +ipsec-tools + TITLE:=NBMA Next Hop Resolution Protocol + URL:=http://opennhrp.sourceforge.net/ +endef + +define Package/opennhrp/description + OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332). + It makes it possible to create dynamic multipoint VPN Linux router using NHRP, + GRE and IPsec. It aims to be Cisco DMVPN compatible. +endef + +define Package/opennhrp/install + $(INSTALL_DIR) $(1)/usr/sbin $(1)/etc/opennhrp $(1)/etc/init.d + $(INSTALL_BIN) $(PKG_BUILD_DIR)/nhrp/opennhrp $(1)/usr/sbin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/nhrp/opennhrpctl $(1)/usr/sbin/ + $(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/opennhrp.conf $(1)/etc/opennhrp/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/etc/opennhrp-script* $(1)/etc/opennhrp/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/etc/racoon-ph1down.sh $(1)/etc/opennhrp/ + $(INSTALL_BIN) ./files/opennhrp.init $(1)/etc/init.d/opennhrp +endef + +$(eval $(call BuildPackage,opennhrp)) diff --git a/net/opennhrp/files/opennhrp.init b/net/opennhrp/files/opennhrp.init new file mode 100755 index 0000000000..706e0181cb --- /dev/null +++ b/net/opennhrp/files/opennhrp.init @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2009 OpenWrt.org +START=50 +# Copyright (C) 2009 Jakob Pfeiffer + +start() { + /usr/sbin/opennhrp -d +} + +stop() { + killall opennhrp +} + -- 2.30.2