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