Merge pull request #478 from sourceindex/added-new-kismet-package
[feed/packages.git] / net / xl2tpd / Makefile
1 #
2 # Copyright (C) 2006-2014 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.6
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
14 PKG_LICENSE:=GPL-2.0
15 PKG_LICENSE_FILES:=LICENSE
16
17 PKG_RELEASE=$(PKG_SOURCE_VERSION)
18
19 PKG_SOURCE_PROTO:=git
20 PKG_SOURCE_URL:=https://github.com/xelerance/xl2tpd.git
21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22 PKG_SOURCE_VERSION:=5619e1771048e74b729804e8602f409af0f3faea
23 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
24
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/xl2tpd
30 SECTION:=net
31 CATEGORY:=Network
32 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
33 URL:=http://www.xelerance.com/software/xl2tpd/
34 SUBMENU:=VPN
35 DEPENDS:=+ppp-mod-pppol2tp +ip +resolveip
36 endef
37
38 define Package/xl2tpd/description
39 l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
40 It does implement both LAC and LNS role in a L2TP networking architecture. The
41 main goal of this protocol is to tunnel PPP frame trough an IP network.
42 endef
43
44 # XXX: CFLAGS are already set by Build/Compile/Default
45 MAKE_FLAGS+= \
46 OFLAGS=""
47
48 define Package/xl2tpd/conffiles
49 /etc/xl2tpd/xl2tpd.conf
50 /etc/xl2tpd/xl2tp-secrets
51 /etc/ppp/options.xl2tpd
52 endef
53
54 define Package/xl2tpd/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd-control $(1)/usr/sbin/
58
59 $(INSTALL_DIR) $(1)/etc/init.d
60 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
61
62 $(INSTALL_DIR) $(1)/etc/xl2tpd
63 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
64 $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
65
66 $(INSTALL_DIR) $(1)/etc/ppp
67 $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
68
69 $(INSTALL_DIR) $(1)/lib/netifd/proto
70 $(INSTALL_BIN) ./files/l2tp.sh $(1)/lib/netifd/proto
71 endef
72
73 $(eval $(call BuildPackage,xl2tpd))