2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/poptop
16 PKG_MD5SUM:=b38df9c431041922c997c1148bedf591
20 include $(INCLUDE_DIR)/package.mk
25 DEPENDS:=+kmod-ppp +kmod-gre +ppp
26 TITLE:=PopTop pptp server
27 URL:=http://www.poptop.org/
35 ac_cv_header_libintl_h=no \
38 COPTS="$(TARGET_CFLAGS)" \
41 define Package/pptpd/conffiles
43 /etc/ppp/options.pptpd
46 define Package/pptpd/install
47 $(INSTALL_DIR) $(1)/usr/sbin
49 $(PKG_INSTALL_DIR)/usr/sbin/bcrelay \
50 $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \
51 $(PKG_INSTALL_DIR)/usr/sbin/pptpd \
53 $(INSTALL_DIR) $(1)/usr/lib/pptpd
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/
55 $(INSTALL_DIR) $(1)/etc
56 $(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
57 $(INSTALL_DIR) $(1)/etc/init.d
58 $(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
59 $(INSTALL_DIR) $(1)/etc/ppp
60 $(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
63 $(eval $(call BuildPackage,pptpd))