0ed5a898d70ba69bca3e75ceb25d392392bde682
[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 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).orig
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/l2tpd
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
30 DESCRIPTION:=\
31 l2tpd is the open source implementation of the L2TP tunneling \\\
32 protocol (RFC2661). It does implement both LAC and LNS role \\\
33 in a L2TP networking architecture. The main goal of this protocol is \\\
34 to tunnel PPP frame trough an ip network.
35 URL:=http://l2tpd.sourceforge.net/
36 endef
37
38 define Package/l2tpd/conffiles
39 /etc/l2tpd/l2tpd.conf
40 /etc/ppp/options.l2tpd
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default, \
45 CFLAGS="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION" \
46 )
47 endef
48
49 define Package/l2tpd/install
50 install -d -m0755 $(1)/usr/sbin
51 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
52 install -d -m0755 $(1)/etc/l2tpd
53 install -m0644 ./files/l2tpd.conf $(1)/etc/l2tpd/
54 install -d -m0755 $(1)/etc/ppp
55 install -m0644 ./files/options.l2tpd $(1)/etc/ppp/
56 install -d -m0755 $(1)/etc/init.d
57 install -m0755 ./files/l2tpd.init $(1)/etc/init.d/l2tpd
58 endef
59
60 $(eval $(call BuildPackage,l2tpd))
61