xl2tpd: fix building failure caused by pfc
[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.15
12 PKG_RELEASE:=2
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:=v$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
22 PKG_MIRROR_HASH:=e12232fef216a1cb5b74f990616aff1dd851c62812ef54658a330629823c0996
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/xl2tpd
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
32 URL:=http://www.xelerance.com/software/xl2tpd/
33 SUBMENU:=VPN
34 DEPENDS:=+ppp-mod-pppol2tp +resolveip
35 endef
36
37 define Package/xl2tpd/description
38 l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
39 It does implement both LAC and LNS role in a L2TP networking architecture. The
40 main goal of this protocol is to tunnel PPP frame trough an IP network.
41 endef
42
43 ifneq (0,0)
44 # debugging options from Makefile of xl2tpd package
45 EXTRA_CFLAGS += \
46 -DDEBUG_ZLB \
47 -DDEBUG_HELLO \
48 -DDEBUG_CLOSE \
49 -DDEBUG_FLOW \
50 -DDEBUG_FILE \
51 -DDEBUG_AAA \
52 -DDEBUG_PAYLOAD \
53 -DDEBUG_CONTROL \
54 -DDEBUG_PPPD \
55 -DDEBUG_HIDDEN \
56 -DDEBUG_ENTROPY \
57 -DDEBUG_CONTROL_XMIT \
58 -DDEBUG_MAGIC \
59 -DDEBUG_FLOW_MORE \
60 -DDEBUG_AUTH
61 endif
62
63 define Package/xl2tpd/conffiles
64 /etc/xl2tpd/xl2tpd.conf
65 /etc/xl2tpd/xl2tp-secrets
66 /etc/ppp/options.xl2tpd
67 endef
68
69 define Package/xl2tpd/install
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
72 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd-control $(1)/usr/sbin/
73
74 $(INSTALL_DIR) $(1)/etc/init.d
75 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
76
77 $(INSTALL_DIR) $(1)/etc/xl2tpd
78 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
79 $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
80
81 $(INSTALL_DIR) $(1)/etc/ppp
82 $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
83
84 $(INSTALL_DIR) $(1)/lib/netifd/proto
85 $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/netifd/proto
86 endef
87
88 $(eval $(call BuildPackage,xl2tpd))