From c1d5213b53c96d367bc2945d804182246a0b99a4 Mon Sep 17 00:00:00 2001 From: Artem Makhutov Date: Mon, 25 Aug 2014 14:48:59 +0200 Subject: [PATCH 1/2] opennhrp: Add opennhrp 0.14.1 Signed-off-by: Artem Makhutov --- net/opennhrp/Makefile | 58 ++++++++++++++++++++++++++++++++ net/opennhrp/files/opennhrp.init | 15 +++++++++ 2 files changed, 73 insertions(+) create mode 100644 net/opennhrp/Makefile create mode 100644 net/opennhrp/files/opennhrp.init diff --git a/net/opennhrp/Makefile b/net/opennhrp/Makefile new file mode 100644 index 000000000..fff3ba465 --- /dev/null +++ b/net/opennhrp/Makefile @@ -0,0 +1,58 @@ +# +# Copyright (C) 2009-2011 OpenWrt.org +# Copyright (C) 2009 Jakob Pfeiffer +# Copyright (C) 2014 Artem Makhutov +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=opennhrp +PKG_VERSION:=0.14.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@SF/opennhrp +PKG_MD5SUM:=eb42ddb13e07ceb415b9ebb8eaca28ee + +PKG_FIXUP:=autoreconf +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/opennhrp + SECTION:=net + CATEGORY:=Network + SUBMENU:=VPN + DEPENDS:=+libcares +ipsec-tools +ip +kmod-gre + KCONFIG:=CONFIG_ARPD=y + 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/conffiles +/etc/opennhrp/opennhrp.conf +endef + +define Package/opennhrp/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opennhrp{,ctl} $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/opennhrp + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp.conf $(1)/etc/opennhrp/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp-script $(1)/etc/opennhrp/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/racoon-ph1down.sh $(1)/etc/opennhrp/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/racoon-ph1dead.sh $(1)/etc/opennhrp/ + $(INSTALL_DIR) $(1)/etc/init.d + $(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 100644 index 000000000..8831287ea --- /dev/null +++ b/net/opennhrp/files/opennhrp.init @@ -0,0 +1,15 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2009-2011 OpenWrt.org +# Copyright (C) 2009 Jakob Pfeiffer + +START=50 + +SERVICE_USE_PID=1 + +start() { + service_start /usr/sbin/opennhrp -d +} + +stop() { + service_stop /usr/sbin/opennhrp +} From 8141ae27885fe5789f07dcd1d1e052419f2ae6aa Mon Sep 17 00:00:00 2001 From: Artem Makhutov Date: Mon, 25 Aug 2014 16:09:35 +0200 Subject: [PATCH 2/2] opennhrp: Add PKG_MAINTAINER and PKG_LICENSE Signed-off-by: Artem Makhutov --- net/opennhrp/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/opennhrp/Makefile b/net/opennhrp/Makefile index fff3ba465..449e0a6fb 100644 --- a/net/opennhrp/Makefile +++ b/net/opennhrp/Makefile @@ -12,6 +12,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=opennhrp PKG_VERSION:=0.14.1 PKG_RELEASE:=1 +PKG_MAINTAINER:=Artem Makhutov +PKG_LICENSE:=MIT License PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=@SF/opennhrp