xl2tpd: update to 1.3.10
[feed/packages.git] / net / xl2tpd / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xl2tpd
11 PKG_VERSION:=1.3.10
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
14 PKG_LICENSE:=GPL-2.0
15 PKG_LICENSE_FILES:=LICENSE
16
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_URL:=https://github.com/xelerance/xl2tpd.git
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE_VERSION:=090d1bef577cabdb3495d76acd814733fa66ef57
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
22 PKG_MIRROR_HASH:=bcddc10e28a74dec607e67cbbea97220f6bfd696b0378a7c30ec8a3e0ac86be1
23
24 PKG_BUILD_DEPENDS:=libpcap
25
26 PKG_INSTALL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/xl2tpd
31 SECTION:=net
32 CATEGORY:=Network
33 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
34 URL:=http://www.xelerance.com/software/xl2tpd/
35 SUBMENU:=VPN
36 DEPENDS:=+ppp-mod-pppol2tp +resolveip
37 endef
38
39 define Package/xl2tpd/description
40 l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
41 It does implement both LAC and LNS role in a L2TP networking architecture. The
42 main goal of this protocol is to tunnel PPP frame trough an IP network.
43 endef
44
45 ifneq (0,0)
46 # debugging options from Makefile of xl2tpd package
47 EXTRA_CFLAGS += \
48 -DDEBUG_ZLB \
49 -DDEBUG_HELLO \
50 -DDEBUG_CLOSE \
51 -DDEBUG_FLOW \
52 -DDEBUG_FILE \
53 -DDEBUG_AAA \
54 -DDEBUG_PAYLOAD \
55 -DDEBUG_CONTROL \
56 -DDEBUG_PPPD \
57 -DDEBUG_HIDDEN \
58 -DDEBUG_ENTROPY \
59 -DDEBUG_CONTROL_XMIT \
60 -DDEBUG_MAGIC \
61 -DDEBUG_FLOW_MORE \
62 -DDEBUG_AUTH
63 endif
64
65 define Package/xl2tpd/conffiles
66 /etc/xl2tpd/xl2tpd.conf
67 /etc/xl2tpd/xl2tp-secrets
68 /etc/ppp/options.xl2tpd
69 endef
70
71 define Package/xl2tpd/install
72 $(INSTALL_DIR) $(1)/usr/sbin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd-control $(1)/usr/sbin/
75
76 $(INSTALL_DIR) $(1)/etc/init.d
77 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
78
79 $(INSTALL_DIR) $(1)/etc/xl2tpd
80 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
81 $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
82
83 $(INSTALL_DIR) $(1)/etc/ppp
84 $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
85
86 $(INSTALL_DIR) $(1)/lib/netifd/proto
87 $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/netifd/proto
88 endef
89
90 $(eval $(call BuildPackage,xl2tpd))