Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=pptp
  9. PKG_VERSION:=1.7.1
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/pptpclient
  13. PKG_MD5SUM:=b47735ba5d6d37dfdbccb85afc044ede
  14. PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_netifd
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/pptp
  17. SECTION:=net
  18. CATEGORY:=Network
  19. TITLE:=PPTP client
  20. MAINTAINER:=Jo-Philipp Wich <[email protected]>
  21. URL:=http://pptpclient.sourceforge.net/
  22. DEPENDS:=+ppp +kmod-gre +resolveip +!PACKAGE_netifd:ip
  23. endef
  24. define Package/pptp/description
  25. This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
  26. endef
  27. define Package/pptp/conffiles
  28. /etc/ppp/options.pptp
  29. endef
  30. MAKE_FLAGS += OPTIMIZE="$(TARGET_CFLAGS)"
  31. ifneq ($(CONFIG_PACKAGE_netifd),)
  32. define Package/pptp/install
  33. $(INSTALL_DIR) $(1)/usr/sbin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
  35. $(INSTALL_DIR) $(1)/etc/ppp
  36. $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
  37. $(INSTALL_DIR) $(1)/lib/netifd/proto/
  38. $(INSTALL_BIN) ./files/pptp.sh $(1)/lib/netifd/proto/
  39. endef
  40. else
  41. define Package/pptp/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
  44. $(INSTALL_DIR) $(1)/etc/ppp
  45. $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
  46. $(INSTALL_DIR) $(1)/lib/network
  47. $(INSTALL_DATA) ./files.old/pptp.sh $(1)/lib/network/
  48. endef
  49. endif
  50. $(eval $(call BuildPackage,pptp))