Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. include $(INCLUDE_DIR)/package.mk
  15. define Package/pptp
  16. SECTION:=net
  17. CATEGORY:=Network
  18. TITLE:=PPTP client
  19. MAINTAINER:=Jo-Philipp Wich <[email protected]>
  20. URL:=http://pptpclient.sourceforge.net/
  21. DEPENDS:=+ppp +kmod-gre +resolveip
  22. endef
  23. define Package/pptp/description
  24. This package contains a PPTP (Point-to-Point Tunneling Protocol) client.
  25. endef
  26. define Package/pptp/conffiles
  27. /etc/ppp/options.pptp
  28. endef
  29. MAKE_FLAGS += OPTIMIZE="$(TARGET_CFLAGS)"
  30. define Package/pptp/install
  31. $(INSTALL_DIR) $(1)/usr/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/pptp $(1)/usr/sbin/
  33. $(INSTALL_DIR) $(1)/etc/ppp
  34. $(INSTALL_DATA) ./files/options.pptp $(1)/etc/ppp/
  35. $(INSTALL_DIR) $(1)/lib/netifd/proto/
  36. $(INSTALL_BIN) ./files/pptp.sh $(1)/lib/netifd/proto/
  37. endef
  38. $(eval $(call BuildPackage,pptp))