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 PKG_CONFIG_DEPENDS
:=CONFIG_PACKAGE_netifd
20 include $(INCLUDE_DIR
)/package.mk
26 MAINTAINER
:=Jo-Philipp Wich
<xm@subsignal.org
>
27 URL
:=http
://pptpclient.sourceforge.net
/
28 DEPENDS
:=+ppp
+kmod-gre
+resolveip
+!PACKAGE_netifd
:ip
31 define Package
/pptp
/description
32 This package contains a PPTP
(Point-to-Point Tunneling Protocol
) client.
35 define Package
/pptp
/conffiles
39 MAKE_FLAGS
+= OPTIMIZE
="$(TARGET_CFLAGS)"
41 ifneq ($(CONFIG_PACKAGE_netifd
),)
42 define Package
/pptp
/install
43 $(INSTALL_DIR
) $(1)/usr
/sbin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/pptp
$(1)/usr
/sbin
/
45 $(INSTALL_DIR
) $(1)/etc
/ppp
46 $(INSTALL_DATA
) .
/files
/options.pptp
$(1)/etc
/ppp
/
47 $(INSTALL_DIR
) $(1)/lib
/netifd
/proto
/
48 $(INSTALL_BIN
) .
/files
/pptp.sh
$(1)/lib
/netifd
/proto
/
51 define Package
/pptp
/install
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/pptp
$(1)/usr
/sbin
/
54 $(INSTALL_DIR
) $(1)/etc
/ppp
55 $(INSTALL_DATA
) .
/files
/options.pptp
$(1)/etc
/ppp
/
56 $(INSTALL_DIR
) $(1)/lib
/network
57 $(INSTALL_DATA
) .
/files.old
/pptp.sh
$(1)/lib
/network
/
61 $(eval
$(call BuildPackage
,pptp
))