packages/net/xl2tpd/Makefile
Yousong Zhou 4b685c4f50 xl2tpd: bump to version 1.3.13
Changelog prepared by upstream maintainer.  It's mostly about code cleanup and
doc amendment

  v1.3.13 (December 3, 2018)
  * Specify email address for reporting security vulnerabilities [Samir Hussain]
  * Fix compile warning with USE_KERNEL in xl2tpd.c [Samir Hussain]
  * Applying patch that reduces compile warnings and fixes warnings from gcc and clang. [Gareth Ansell]
  * Fix compiler warnings in network.c [Gareth Ansell]
  * Add a make command for packaging's prep work [Samir Hussain]
  * Add Makefile directive for getting version [Samir Hussain]
  * Add a preproc for Watchguard firewall (Github issue #136) [daniel1111]
  * Convert from ISO-8859 to UTF-8 [Simon Deziel]
  * Update README to provide latest info on xl2tpd + Linux kernel 4.15+ [Samir Hussain]
  * Use dh_auto_build in order to allow cross compiles [Helmut Grohne]

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2018-12-11 17:17:34 +08:00

90 lines
2.3 KiB
Makefile

#
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=xl2tpd
PKG_VERSION:=1.3.13
PKG_RELEASE:=1
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/xelerance/xl2tpd.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_MIRROR_HASH:=dbff24b8720063b510e711091459d6928d0bef332ead838aa63ed179ca02219e
PKG_BUILD_DEPENDS:=libpcap
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/xl2tpd
SECTION:=net
CATEGORY:=Network
TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
URL:=http://www.xelerance.com/software/xl2tpd/
SUBMENU:=VPN
DEPENDS:=+ppp-mod-pppol2tp +resolveip
endef
define Package/xl2tpd/description
l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
It does implement both LAC and LNS role in a L2TP networking architecture. The
main goal of this protocol is to tunnel PPP frame trough an IP network.
endef
ifneq (0,0)
# debugging options from Makefile of xl2tpd package
EXTRA_CFLAGS += \
-DDEBUG_ZLB \
-DDEBUG_HELLO \
-DDEBUG_CLOSE \
-DDEBUG_FLOW \
-DDEBUG_FILE \
-DDEBUG_AAA \
-DDEBUG_PAYLOAD \
-DDEBUG_CONTROL \
-DDEBUG_PPPD \
-DDEBUG_HIDDEN \
-DDEBUG_ENTROPY \
-DDEBUG_CONTROL_XMIT \
-DDEBUG_MAGIC \
-DDEBUG_FLOW_MORE \
-DDEBUG_AUTH
endif
define Package/xl2tpd/conffiles
/etc/xl2tpd/xl2tpd.conf
/etc/xl2tpd/xl2tp-secrets
/etc/ppp/options.xl2tpd
endef
define Package/xl2tpd/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd-control $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
$(INSTALL_DIR) $(1)/etc/xl2tpd
$(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
$(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
$(INSTALL_DIR) $(1)/etc/ppp
$(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
$(INSTALL_DIR) $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/netifd/proto
endef
$(eval $(call BuildPackage,xl2tpd))