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