Update l2tpns to 2.1.1 (#3629)
[packages.git] / net / l2tpns / 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:=l2tpns
12 PKG_VERSION:=2.1.21
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/l2tpns
17 PKG_MD5SUM:=385c58055723ebc6c38062acd2db9c2c
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/l2tpns
22   SECTION:=net
23   CATEGORY:=Network
24   DEPENDS:=+libcli
25   TITLE:=An L2TP enhanced server
26   URL:=http://sourceforge.net/projects/l2tpns
27   SUBMENU:=VPN
28 endef
29
30 define Package/l2tpns/description
31         l2tpns is a layer 2 tunneling protocol network server (LNS).
32         it supports up to 65535 concurrent sessions per server/cluster
33         plus ISP features such as rate limiting, walled garden, usage
34         accounting, and more.
35 endef
36
37 define Package/l2tpns/conffiles
38 /etc/l2tpns/ip_pool
39 /etc/l2tpns/startup-config
40 /etc/l2tpns/users
41 endef
42         
43 define Build/Compile
44         $(call Build/Compile/Default, \
45                 LD="$(TARGET_CC)" \
46                 OPTIM="$(TARGET_CFLAGS)" \
47                 STAGING_DIR="$(STAGING_DIR)" \
48                 DESTDIR="$(PKG_INSTALL_DIR)" \
49                 all install \
50         )
51 endef
52
53 define Package/l2tpns/install   
54         $(INSTALL_DIR) $(1)/etc/l2tpns
55         $(CP) $(PKG_INSTALL_DIR)/etc/l2tpns/* $(1)/etc/l2tpns/
56         $(INSTALL_DIR) $(1)/usr/lib/l2tpns
57         $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tpns/* $(1)/usr/lib/l2tpns/
58         $(INSTALL_DIR) $(1)/usr/sbin
59         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
60 endef
61
62 $(eval $(call BuildPackage,l2tpns))