add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if...
[openwrt/svn-archive/archive.git] / package / pptp / 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:=pptp
12 PKG_VERSION:=1.6.0
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/pptpclient
17 PKG_MD5SUM:=9a706327fb9827541d7c86d48ceb9631
18 PKG_CAT:=zcat
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pptp
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=PPTP client
26 DESCRIPTION:=\
27 This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
28 URL:=http://pptpclient.sourceforge.net/
29 endef
30
31 define Package/pptp/install
32 $(INSTALL_DIR) $(1)/usr/sbin
33 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
34 $(INSTALL_DIR) $(1)/etc/ppp
35 $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
36 $(INSTALL_DIR) $(1)/lib/network
37 $(INSTALL_BIN) ./files/pptp.sh $(1)/lib/network/
38 endef
39
40 $(eval $(call BuildPackage,pptp))