2006-07-21 12:00:20 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-10-27 16:51:10 +00:00
|
|
|
# $Id$
|
2006-07-21 12:00:20 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=pptpd
|
|
|
|
PKG_VERSION:=1.3.0
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/poptop
|
|
|
|
PKG_MD5SUM:=75d494e881f7027f4e60b114163f6b67
|
2006-07-21 12:00:20 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/pptpd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-08-22 12:40:56 +00:00
|
|
|
DEPENDS:=+kmod-ppp +kmod-gre
|
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/
|
2006-07-21 12:00:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--with-bcrelay \
|
|
|
|
)
|
2006-07-21 12:00:20 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2006-10-27 16:51:10 +00:00
|
|
|
$(call Build/Compile/Default, \
|
2007-02-01 23:48:59 +00:00
|
|
|
COPTS="$(TARGET_CFLAGS)" \
|
2006-07-21 12:00:20 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
INSTALL="install" \
|
2006-08-18 21:21:06 +00:00
|
|
|
all install \
|
2006-10-27 16:51:10 +00:00
|
|
|
)
|
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
|
2006-10-27 16:51:10 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpd $(1)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/pptpctrl $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pptpd
|
2006-10-27 16:51:10 +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))
|