[backfire] merge r27669
[openwrt-10.03/.git] / package / pptp / Makefile
1 #
2 # Copyright (C) 2006-2011 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:=pptp
11 PKG_VERSION:=1.7.1
12 PKG_RELEASE:=4
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/pptpclient
16 PKG_MD5SUM:=b47735ba5d6d37dfdbccb85afc044ede
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/pptp
21   SECTION:=net
22   CATEGORY:=Network
23   TITLE:=PPTP client
24   URL:=http://pptpclient.sourceforge.net/
25   DEPENDS:=+ppp +kmod-gre +resolveip
26 endef
27
28 define Package/pptp/description
29  This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
30 endef
31
32 define Package/pptp/conffiles
33 /etc/ppp/options.pptp
34 endef
35
36 define Package/pptp/install
37         $(INSTALL_DIR) $(1)/usr/sbin
38         $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
39         $(INSTALL_DIR) $(1)/etc/ppp
40         $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
41         $(INSTALL_DIR) $(1)/lib/network
42         $(INSTALL_BIN) ./files/pptp.sh $(1)/lib/network/
43 endef
44
45 $(eval $(call BuildPackage,pptp))