2006-08-07 12:47:31 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rp-l2tp
|
|
|
|
PKG_VERSION:=0.4
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/rp-l2tp
|
|
|
|
PKG_MD5SUM:=0e45d11cb4fa6c56cce6b1d119733ed9
|
2006-08-07 12:47:31 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/rp-l2tpd
|
2006-08-07 12:47:31 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE:=Roaring Penguin L2TP
|
2006-08-07 12:47:31 +00:00
|
|
|
URL:=http://sourceforge.net/projects/rp-l2tp/
|
2006-10-30 13:51:50 +00:00
|
|
|
TITLE+= daemon
|
2007-10-18 18:37:22 +00:00
|
|
|
SUBMENU:=dial-in/up
|
2006-08-07 12:47:31 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/rp-l2tpd/description
|
|
|
|
Roaring Penguin L2TP (Layer 2 Tunneling Protocol) implementation.
|
|
|
|
endef
|
2006-08-07 12:47:31 +00:00
|
|
|
|
2006-10-30 13:51:50 +00:00
|
|
|
# uses GNU configure
|
2007-03-24 20:54:50 +00:00
|
|
|
MAKE_FLAGS += \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
2006-10-30 13:51:50 +00:00
|
|
|
|
2007-03-24 20:54:50 +00:00
|
|
|
TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/libevent $(TARGET_CFLAGS)
|
2006-08-07 12:47:31 +00:00
|
|
|
|
|
|
|
define Package/rp-l2tpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
2006-08-07 12:47:31 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/l2tp.conf.example $(1)/etc/l2tp.conf
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/l2tp
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tpd $(1)/usr/sbin/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/rp-l2tpd.init $(1)/etc/init.d/rp-l2tpd
|
2006-08-07 12:47:31 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
|
2007-04-13 20:07:48 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
|
2006-08-07 12:47:31 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-13 20:07:48 +00:00
|
|
|
#define Package/rp-l2tpd-mod-cmd/install
|
|
|
|
# $(INSTALL_DIR) $(1)/usr/lib/l2tp
|
|
|
|
# $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
|
|
|
|
# $(INSTALL_DIR) $(1)/usr/sbin
|
2007-12-09 18:59:01 +00:00
|
|
|
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
|
2007-04-13 20:07:48 +00:00
|
|
|
#endef
|
|
|
|
|
|
|
|
#define Package/rp-l2tpd-mod-ppp/install
|
|
|
|
# $(INSTALL_DIR) $(1)/usr/lib/l2tp
|
|
|
|
# $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
|
|
|
|
#endef
|
2006-08-07 12:47:31 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rp-l2tpd))
|
2007-04-13 20:07:48 +00:00
|
|
|
#$(eval $(call BuildPackage,rp-l2tpd-mod-cmd))
|
|
|
|
#$(eval $(call BuildPackage,rp-l2tpd-mod-ppp))
|