add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache (yet again)
[openwrt/svn-archive/archive.git] / net / l2tpd / 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:=l2tpd
11 PKG_VERSION:=0.70pre
12 PKG_UPSTREAM_VERSION:=0.70-pre20031121
13 PKG_RELEASE:=4.1
14 PKG_MD5SUM:=3f2707b6e16a8cb72e7bf64f574202fa
15
16 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/l/l2tpd
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_UPSTREAM_VERSION).orig.tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_UPSTREAM_VERSION).orig
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/l2tpd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=An L2TP (Layer 2 Tunneling Protocol) daemon
29 DESCRIPTION:=A layer 2 tunneling protocol implementation.\\\
30 l2tpd is the open source implementation of the L2TP tunneling\\\
31 protocol (RFC2661). It does implement both LAC and LNS role\\\
32 in a L2TP networking architecture. The main goal of this protocol is\\\
33 to tunnel PPP frame trough an ip network.\\\
34 URL:=http://l2tpd.sourceforge.net/
35 endef
36
37 define Package/l2tpd/conffiles
38 /etc/l2tpd/l2tpd.conf
39 /etc/ppp/options.l2tpd
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 $(TARGET_CONFIGURE_OPTS) \
45 CC="$(TARGET_CC)" \
46 CFLAGS="$(TARGET_CFLAGS) -I. -DLINUX -DSANITY -DIP_ALLOCATION"
47 endef
48
49 define Package/l2tpd/install
50 install -d -m0755 $(1)/etc/l2tpd
51 install -m0644 ./files/l2tpd.conf $(1)/etc/l2tpd/
52 install -d -m0755 $(1)/etc/ppp
53 install -m0644 ./files/options.l2tpd $(1)/etc/ppp/
54 install -d -m0755 $(1)/etc/init.d
55 install -m0755 ./files/l2tpd.init $(1)/etc/init.d/l2tpd
56 install -d -m0755 $(1)/usr/sbin
57 install -m0755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/
58 endef
59
60 $(eval $(call BuildPackage,l2tpd))
61