You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2015 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:=pptpd
  9. PKG_VERSION:=1.4.0
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/poptop
  13. PKG_HASH:=8fcd8b8a42de2af59e9fe8cbaa9f894045c977f4d038bbd6346a8522bb7f06c0
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/pptpd
  18. SECTION:=net
  19. CATEGORY:=Network
  20. DEPENDS:=+kmod-ppp +kmod-gre +kmod-mppe +ppp
  21. TITLE:=PopTop pptp server
  22. URL:=http://poptop.sourceforge.net/
  23. SUBMENU:=VPN
  24. endef
  25. CONFIGURE_ARGS += \
  26. --enable-bcrelay \
  27. CONFIGURE_VARS += \
  28. ac_cv_header_libintl_h=no \
  29. MAKE_FLAGS += \
  30. COPTS="$(TARGET_CFLAGS)" \
  31. INSTALL="install" \
  32. define Package/pptpd/conffiles
  33. /etc/pptpd.conf
  34. /etc/ppp/options.pptpd
  35. /etc/config/pptpd
  36. endef
  37. define Package/pptpd/install
  38. $(INSTALL_DIR) $(1)/usr/sbin
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/sbin/bcrelay \
  41. $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \
  42. $(PKG_INSTALL_DIR)/usr/sbin/pptpd \
  43. $(1)/usr/sbin/
  44. $(INSTALL_DIR) $(1)/usr/lib/pptpd
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/
  46. $(INSTALL_DIR) $(1)/etc
  47. $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
  48. $(INSTALL_DIR) $(1)/etc/init.d
  49. $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
  50. $(INSTALL_DIR) $(1)/etc/ppp
  51. $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
  52. $(INSTALL_DIR) $(1)/etc/config
  53. $(INSTALL_DATA) ./files/pptpd.config $(1)/etc/config/pptpd
  54. endef
  55. $(eval $(call BuildPackage,pptpd))