fc8d5473b2721c943e9efde664c252ded4e2b951
[openwrt/svn-archive/archive.git] / net / l2tpns / Makefile
1 # Copyright (C) 2006 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5 #
6 # $Id$
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=l2tpns
11 PKG_VERSION:=2.1.14
12 PKG_RELEASE:=1
13 PKG_MD5SUM:=2a0ee2a3678160c335f1d68c17c4f871
14
15 PKG_SOURCE_URL:=@SF/l2tpns
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_CAT:=zcat
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/l2tpns
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libcli
28 TITLE:=An L2TP enhanced server
29 DESCRIPTION:=l2tpns is a layer 2 tunneling protocol network server (LNS).\\\
30 it supports up to 65535 concurrent sessions per server/cluster\\\
31 plus ISP features such as rate limiting, walled garden, usage\\\
32 accounting, and more.\\\
33 URL:=http://sourceforge.net/projects/l2tpns
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CC=$(TARGET_CC) \
39 LD=$(TARGET_CC) \
40 OPTIM="$(TARGET_CFLAGS)" \
41 DESTDIR=$(PKG_INSTALL_DIR) \
42 STAGING_DIR=$(STAGING_DIR) \
43 all install
44 endef
45
46 define Package/l2tpns/install
47 install -d -m0755 $(1)/etc/l2tpns
48 $(CP) $(PKG_INSTALL_DIR)/etc/l2tpns/* $(1)/etc/l2tpns/
49 install -d -m0755 $(1)/usr/lib/l2tpns
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tpns/* $(1)/usr/lib/l2tpns/
51 install -d -m0755 $(1)/usr/sbin
52 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,l2tpns))