c39ccb3c804a0040f5c9ff181ffaa05044af2c91
[openwrt/svn-archive/archive.git] / package / pptp / Makefile
1 #
2 # Copyright (C) 2006-2012 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:=5
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/pptpclient
16 PKG_MD5SUM:=b47735ba5d6d37dfdbccb85afc044ede
17
18 PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_netifd
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pptp
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=PPTP client
26 MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
27 URL:=http://pptpclient.sourceforge.net/
28 DEPENDS:=+ppp +kmod-gre +resolveip +!PACKAGE_netifd:ip
29 endef
30
31 define Package/pptp/description
32 This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
33 endef
34
35 define Package/pptp/conffiles
36 /etc/ppp/options.pptp
37 endef
38
39 MAKE_FLAGS += OPTIMIZE="$(TARGET_CFLAGS)"
40
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/
49 endef
50 else
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/
58 endef
59 endif
60
61 $(eval $(call BuildPackage,pptp))