[packages] opennhrp: update to 0.11.3, add missing dependencies
[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_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/opennhrp
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libcares +ipsec-tools +ip +kmod-gre
28 TITLE:=NBMA Next Hop Resolution Protocol
29 URL:=http://opennhrp.sourceforge.net/
30 endef
31
32 define Package/opennhrp/description
33 OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332).
34 It makes it possible to create dynamic multipoint VPN Linux router using NHRP,
35 GRE and IPsec. It aims to be Cisco DMVPN compatible.
36 endef
37
38 define Package/opennhrp/conffiles
39 /etc/opennhrp/opennhrp.conf
40 endef
41
42 define Package/opennhrp/install
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/opennhrp{,ctl} $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/etc/opennhrp
46 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp.conf $(1)/etc/opennhrp/
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/opennhrp-script $(1)/etc/opennhrp/
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/etc/opennhrp/racoon-ph1down.sh $(1)/etc/opennhrp/
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/opennhrp.init $(1)/etc/init.d/opennhrp
51 endef
52
53 $(eval $(call BuildPackage,opennhrp))