Ticket #9779: Makefile

File Makefile, 1.7 KB (added by Artem Makhutov <artem@…>, 5 years ago)

New makefile with /etc/opennhrp/racoon-ph1dead.sh added

Line 
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
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=opennhrp
12PKG_VERSION:=0.12.2
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=@SF/opennhrp
17PKG_MD5SUM:=cf9c083a17a553c98475474b37c526a3
18
19PKG_FIXUP:=libtool
20PKG_BUILD_PARALLEL:=1
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define 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/
33endef
34
35define 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.
39endef
40
41define Package/opennhrp/conffiles
42/etc/opennhrp/opennhrp.conf
43endef
44
45define 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
55endef
56
57$(eval $(call BuildPackage,opennhrp))