2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/pptpclient
16 PKG_MD5SUM:=b47735ba5d6d37dfdbccb85afc044ede
18 include $(INCLUDE_DIR)/package.mk
24 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
25 URL:=http://pptpclient.sourceforge.net/
26 DEPENDS:=+ppp +kmod-gre +resolveip +!PACKAGE_netifd:ip
29 define Package/pptp/description
30 This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
33 define Package/pptp/conffiles
37 MAKE_FLAGS += OPTIMIZE="$(TARGET_CFLAGS)"
39 ifneq ($(CONFIG_PACKAGE_netifd),)
40 define Package/pptp/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/etc/ppp
44 $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
45 $(INSTALL_DIR) $(1)/lib/netifd/proto/
46 $(INSTALL_BIN) ./files/pptp.sh $(1)/lib/netifd/proto/
49 define Package/pptp/install
50 $(INSTALL_DIR) $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
52 $(INSTALL_DIR) $(1)/etc/ppp
53 $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
54 $(INSTALL_DIR) $(1)/lib/network
55 $(INSTALL_DATA) ./files.old/pptp.sh $(1)/lib/network/
59 $(eval $(call BuildPackage,pptp))