No Description

Makefile 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/poptop
  13. PKG_MD5SUM:=36f9f45c6ffa92bc3b6e24ae2d053505
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
  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))