Makefile (1596B)
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 8 include $(TOPDIR)/rules.mk 9 10 PKG_NAME:=pptpd 11 PKG_VERSION:=1.4.0 12 PKG_RELEASE:=3 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15 PKG_SOURCE_URL:=@SF/poptop 16 PKG_MD5SUM:=36f9f45c6ffa92bc3b6e24ae2d053505 17 18 PKG_INSTALL:=1 19 PKG_BUILD_PARALLEL:=1 20 21 PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org> 22 23 include $(INCLUDE_DIR)/package.mk 24 25 define Package/pptpd 26 SECTION:=net 27 CATEGORY:=Network 28 DEPENDS:=+kmod-ppp +kmod-gre +kmod-mppe +ppp 29 TITLE:=PopTop pptp server 30 URL:=http://poptop.sourceforge.net/ 31 SUBMENU:=VPN 32 endef 33 34 CONFIGURE_ARGS += \ 35 --enable-bcrelay \ 36 37 CONFIGURE_VARS += \ 38 ac_cv_header_libintl_h=no \ 39 40 MAKE_FLAGS += \ 41 COPTS="$(TARGET_CFLAGS)" \ 42 INSTALL="install" \ 43 44 define Package/pptpd/conffiles 45 /etc/pptpd.conf 46 /etc/ppp/options.pptpd 47 /etc/config/pptpd 48 endef 49 50 define Package/pptpd/install 51 $(INSTALL_DIR) $(1)/usr/sbin 52 $(CP) \ 53 $(PKG_INSTALL_DIR)/usr/sbin/bcrelay \ 54 $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \ 55 $(PKG_INSTALL_DIR)/usr/sbin/pptpd \ 56 $(1)/usr/sbin/ 57 $(INSTALL_DIR) $(1)/usr/lib/pptpd 58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/ 59 $(INSTALL_DIR) $(1)/etc 60 $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/ 61 $(INSTALL_DIR) $(1)/etc/init.d 62 $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd 63 $(INSTALL_DIR) $(1)/etc/ppp 64 $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/ 65 $(INSTALL_DIR) $(1)/etc/config 66 $(INSTALL_DATA) ./files/pptpd.config $(1)/etc/config/pptpd 67 endef 68 69 $(eval $(call BuildPackage,pptpd))