2006-07-21 12:00:20 +00:00
|
|
|
#
|
2010-04-15 08:09:46 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-21 12:00:20 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pptpd
|
2010-01-23 22:18:19 +00:00
|
|
|
PKG_VERSION:=1.3.4
|
2010-04-15 08:09:46 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-07-21 12:00:20 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/poptop
|
2010-04-15 08:09:46 +00:00
|
|
|
PKG_MD5SUM:=b38df9c431041922c997c1148bedf591
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2006-07-21 12:00:20 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/pptpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-01-23 22:18:19 +00:00
|
|
|
DEPENDS:=+kmod-ppp +kmod-gre +ppp
|
2006-07-21 12:00:20 +00:00
|
|
|
TITLE:=PopTop pptp server
|
2006-10-28 20:56:12 +00:00
|
|
|
URL:=http://www.poptop.org/
|
2007-12-28 13:31:04 +00:00
|
|
|
SUBMENU:=VPN
|
2006-07-21 12:00:20 +00:00
|
|
|
endef
|
|
|
|
|
2010-04-15 08:09:46 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-bcrelay \
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
COPTS="$(TARGET_CFLAGS)" \
|
|
|
|
INSTALL="install" \
|
2006-07-21 12:00:20 +00:00
|
|
|
|
2010-04-15 08:09:46 +00:00
|
|
|
define Package/pptpd/conffiles
|
|
|
|
/etc/pptpd.conf
|
|
|
|
/etc/ppp/options.pptpd
|
2006-07-21 12:00:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/pptpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2010-04-15 08:09:46 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/bcrelay \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/pptpctrl \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/pptpd \
|
|
|
|
$(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pptpd
|
2010-04-15 08:09:46 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pptpd/* $(1)/usr/lib/pptpd/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/pptpd.conf $(1)/etc/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/pptpd.init $(1)/etc/init.d/pptpd
|
|
|
|
$(INSTALL_DIR) $(1)/etc/ppp
|
|
|
|
$(INSTALL_DATA) ./files/options.pptpd $(1)/etc/ppp/
|
2006-07-21 12:00:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,pptpd))
|