f0bbbbd39f0355fd8fd768a7285598df73f1401a
[openwrt/svn-archive/archive.git] / net / l2tpd / 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:=l2tpd
12 PKG_VERSION:=0.70pre
13 PKG_UPSTREAM_VERSION:=0.70-pre20031121
14 PKG_RELEASE:=4.1
15
16 PKG_SOURCE:=$(PKG_NAME)_$(PKG_UPSTREAM_VERSION).orig.tar.gz
17 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/l2tpd
18 PKG_MD5SUM:=3f2707b6e16a8cb72e7bf64f574202fa
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).orig
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/l2tpd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
29 URL:=http://l2tpd.sourceforge.net/
30 SUBMENU:=VPN
31 endef
32
33 define Package/l2tpd/description
34 l2tpd is the open source implementation of the L2TP tunneling
35 protocol (RFC2661). It does implement both LAC and LNS role
36 in a L2TP networking architecture. The main goal of this protocol is
37 to tunnel PPP frame trough an ip network.
38 endef
39
40 define Package/l2tpd/conffiles
41 /etc/l2tpd/l2tpd.conf
42 /etc/ppp/options.l2tpd
43 endef
44
45 define Build/Compile
46 $(call Build/Compile/Default, \
47 CFLAGS="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION" \
48 )
49 endef
50
51 define Package/l2tpd/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
54 $(INSTALL_DIR) $(1)/etc/l2tpd
55 $(INSTALL_DATA) ./files/l2tpd.conf $(1)/etc/l2tpd/
56 $(INSTALL_DIR) $(1)/etc/ppp
57 $(INSTALL_DATA) ./files/options.l2tpd $(1)/etc/ppp/
58 $(INSTALL_DIR) $(1)/etc/init.d
59 $(INSTALL_BIN) ./files/l2tpd.init $(1)/etc/init.d/l2tpd
60 endef
61
62 $(eval $(call BuildPackage,l2tpd))
63