Massive propset of svn:keywords for packages newly addded, next time, we should not...
[openwrt/svn-archive/archive.git] / net / xl2tpd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xl2tpd
12 PKG_VERSION:=1.1.09
13 PKG_RELEASE:=1.0
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.xelerance.com/software/xl2tpd
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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 DESCRIPTION:=\
29 l2tpd is the open source implementation of the L2TP tunneling \\\
30 protocol (RFC2661). It does implement both LAC and LNS role \\\
31 in a L2TP networking architecture. The main goal of this protocol is \\\
32 to tunnel PPP frame trough an ip network.
33 URL:=http://www.xelerance.com/software/xl2tpd
34 endef
35
36 define Package/xl2tpd/conffiles
37 /etc/xl2tpd/xl2tpd.conf
38 endef
39
40 define Build/Compile
41 $(call Build/Compile/Default, \
42 CFLAGS="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION" \
43 )
44 endef
45
46 define Package/xl2tpd/install
47 $(INSTALL_DIR) $(1)/usr/sbin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
49 $(INSTALL_DIR) $(1)/etc/xl2tpd
50 $(INSTALL_DATA) ./files/xl2tpd.conf $(1)/etc/xl2tpd/
51 $(INSTALL_DATA) ./files/l2tp-secrets $(1)/etc/xl2tpd/
52 $(INSTALL_DATA) ./files/options.l2tp $(1)/etc/xl2tpd/
53 # $(INSTALL_DIR) $(1)/etc/ppp
54 # $(INSTALL_DATA) ./files/options.l2tpd $(1)/etc/ppp/
55 $(INSTALL_DIR) $(1)/etc/init.d
56 $(INSTALL_BIN) ./files/xl2tpd.init $(1)/etc/init.d/xl2tpd
57 endef
58
59 $(eval $(call BuildPackage,xl2tpd))
60