[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreco...
[packages.git] / net / opennhrp / Makefile
1 #
2 # Copyright (C) 2009-2011 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.12.3
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/opennhrp
17 PKG_MD5SUM:=4d0ec7c0282e181ecca4d78e52067da3
18
19 PKG_FIXUP:=autoreconf
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   SUBMENU:=VPN
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/
33 endef
34
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.
39 endef
40
41 define Package/opennhrp/conffiles
42 /etc/opennhrp/opennhrp.conf
43 endef
44
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
55 endef
56
57 $(eval $(call BuildPackage,opennhrp))