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