bdaea94196d4945f4dc4df4f9fd40affdad10b77
[openwrt/svn-archive/archive.git] / net / opennhrp / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 # Copyright (C) 2009 Jakob Pfeiffer
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=opennhrp
12 PKG_VERSION:=0.11.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/opennhrp
17 PKG_MD5SUM:=6f6f8571ccc0a9f97e52c6240fe9002a
18
19 PKG_FIXUP:=libtool
20 PKG_BUILD_PARALLEL:=1
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/opennhrp
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libcares +ipsec-tools +ip +kmod-gre
29 TITLE:=NBMA Next Hop Resolution Protocol
30 URL:=http://opennhrp.sourceforge.net/
31 endef
32
33 define Package/opennhrp/description
34 OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332).
35 It makes it possible to create dynamic multipoint VPN Linux router using NHRP,
36 GRE and IPsec. It aims to be Cisco DMVPN compatible.
37 endef
38
39 define Package/opennhrp/conffiles
40 /etc/opennhrp/opennhrp.conf
41 endef
42
43 define Package/opennhrp/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opennhrp{,ctl} $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/etc/opennhrp
47 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp.conf $(1)/etc/opennhrp/
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp-script $(1)/etc/opennhrp/
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/racoon-ph1down.sh $(1)/etc/opennhrp/
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) ./files/opennhrp.init $(1)/etc/init.d/opennhrp
52 endef
53
54 $(eval $(call BuildPackage,opennhrp))