source: trunk/package/pptp/Makefile @ 31636

Last change on this file since 31636 was 31636, checked in by nbd, 4 years ago

pptp: fix installation path for netifd proto handler

  • Property svn:copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pptp
11PKG_VERSION:=1.7.1
12PKG_RELEASE:=5
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/pptpclient
16PKG_MD5SUM:=b47735ba5d6d37dfdbccb85afc044ede
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/pptp
21  SECTION:=net
22  CATEGORY:=Network
23  TITLE:=PPTP client
24  MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
25  URL:=http://pptpclient.sourceforge.net/
26  DEPENDS:=+ppp +kmod-gre +resolveip +ip
27endef
28
29define Package/pptp/description
30 This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
31endef
32
33define Package/pptp/conffiles
34/etc/ppp/options.pptp
35endef
36
37MAKE_FLAGS += OPTIMIZE="$(TARGET_CFLAGS)"
38
39ifneq ($(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/
47  endef
48else
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/
56  endef
57endif
58
59$(eval $(call BuildPackage,pptp))
Note: See TracBrowser for help on using the repository browser.