[patch-team] ZNC: upate to 0.094 - Signed-off-by: Jonas Gorski <jonas.gorski+openwrt...
[openwrt/svn-archive/archive.git] / net / xl2tpd / Makefile
1 #
2 # Copyright (C) 2006-2010 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.2.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.xelerance.com/xl2tpd/
16 PKG_MD5SUM:=40404ea230edd9ebdd0d53f07c832520
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/xl2tpd
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=
26 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
27 URL:=http://www.xelerance.com/software/xl2tpd/
28 SUBMENU:=VPN
29 endef
30
31 define Package/xl2tpd/description
32 l2tpd is the open source implementation of the L2TP tunneling protocol (RFC2661).
33 It does implement both LAC and LNS role in a L2TP networking architecture. The
34 main goal of this protocol is to tunnel PPP frame trough an IP network.
35 endef
36
37 # XXX: CFLAGS are already set by Build/Compile/Default
38 MAKE_FLAGS+= \
39 OFLAGS=""
40
41 define Package/xl2tpd/conffiles
42 /etc/xl2tpd/xl2tpd.conf
43 /etc/xl2tpd/xl2tp-secrets
44 /etc/ppp/options.xl2tpd
45 endef
46
47 define Package/xl2tpd/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/sbin/xl2tpd $(1)/usr/sbin/
50
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
53
54 $(INSTALL_DIR) $(1)/etc/xl2tpd
55 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
56 $(INSTALL_CONF) ./files/xl2tp-secrets $(1)/etc/xl2tpd/
57
58 $(INSTALL_DIR) $(1)/etc/ppp
59 $(INSTALL_DATA) ./files/options.xl2tpd $(1)/etc/ppp/
60 endef
61
62 $(eval $(call BuildPackage,xl2tpd))