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.

69 lines
1.6 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. PKG_CPE_ID:=cpe:/a:poptop:pptp_server
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/pptpd
  19. SECTION:=net
  20. CATEGORY:=Network
  21. DEPENDS:=+kmod-ppp +kmod-gre +kmod-mppe +ppp
  22. TITLE:=PopTop pptp server
  23. URL:=http://poptop.sourceforge.net/
  24. SUBMENU:=VPN
  25. endef
  26. CONFIGURE_ARGS += \
  27. --enable-bcrelay \
  28. CONFIGURE_VARS += \
  29. ac_cv_header_libintl_h=no \
  30. MAKE_FLAGS += \
  31. COPTS="$(TARGET_CFLAGS)" \
  32. INSTALL="install" \
  33. define Package/pptpd/conffiles
  34. /etc/pptpd.conf
  35. /etc/ppp/options.pptpd
  36. /etc/config/pptpd
  37. endef
  38. define Package/pptpd/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/sbin/bcrelay \
  42. $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \
  43. $(PKG_INSTALL_DIR)/usr/sbin/pptpd \
  44. $(1)/usr/sbin/
  45. $(INSTALL_DIR) $(1)/usr/lib/pptpd
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/
  47. $(INSTALL_DIR) $(1)/etc
  48. $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
  49. $(INSTALL_DIR) $(1)/etc/init.d
  50. $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
  51. $(INSTALL_DIR) $(1)/etc/ppp
  52. $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
  53. $(INSTALL_DIR) $(1)/etc/config
  54. $(INSTALL_DATA) ./files/pptpd.config $(1)/etc/config/pptpd
  55. endef
  56. $(eval $(call BuildPackage,pptpd))