pptpd: bump to version 1.4.0 (fix bugs #12909, #15490, #15635)
[packages.git] / net / pptpd / Makefile
1 #
2 # Copyright (C) 2006-2014 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:=1
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
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pptpd
23   SECTION:=net
24   CATEGORY:=Network
25   DEPENDS:=+kmod-ppp +kmod-gre +kmod-mppe +ppp
26   TITLE:=PopTop pptp server
27   URL:=http://www.poptop.org/
28   SUBMENU:=VPN
29 endef
30
31 CONFIGURE_ARGS += \
32         --enable-bcrelay \
33
34 CONFIGURE_VARS += \
35         ac_cv_header_libintl_h=no \
36
37 MAKE_FLAGS += \
38         COPTS="$(TARGET_CFLAGS)" \
39         INSTALL="install" \
40
41 define Package/pptpd/conffiles
42 /etc/pptpd.conf
43 /etc/ppp/options.pptpd
44 /etc/config/pptpd
45 endef
46
47 define Package/pptpd/install
48         $(INSTALL_DIR) $(1)/usr/sbin
49         $(CP) \
50                 $(PKG_INSTALL_DIR)/usr/sbin/bcrelay \
51                 $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \
52                 $(PKG_INSTALL_DIR)/usr/sbin/pptpd \
53                 $(1)/usr/sbin/
54         $(INSTALL_DIR) $(1)/usr/lib/pptpd
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/
56         $(INSTALL_DIR) $(1)/etc
57         $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
58         $(INSTALL_DIR) $(1)/etc/init.d
59         $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
60         $(INSTALL_DIR) $(1)/etc/ppp
61         $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
62         $(INSTALL_DIR) $(1)/etc/config
63         $(INSTALL_DATA) ./files/pptpd.config $(1)/etc/config/pptpd
64 endef
65
66 $(eval $(call BuildPackage,pptpd))