2 # Copyright (C) 2006-2011 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/rp-l2tp
16 PKG_MD5SUM:=0e45d11cb4fa6c56cce6b1d119733ed9
20 include $(INCLUDE_DIR)/package.mk
22 define Package/rp-l2tpd
25 TITLE:=Roaring Penguin L2TP
26 URL:=http://sourceforge.net/projects/rp-l2tp/
31 define Package/rp-l2tpd/description
32 Roaring Penguin L2TP (Layer 2 Tunneling Protocol) implementation.
35 TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/libevent $(TARGET_CFLAGS)
37 define Package/rp-l2tpd/install
38 $(INSTALL_DIR) $(1)/etc
39 $(CP) $(PKG_INSTALL_DIR)/etc/l2tp.conf.example $(1)/etc/l2tp.conf
40 $(INSTALL_DIR) $(1)/usr/lib/l2tp
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tpd $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) ./files/rp-l2tpd.init $(1)/etc/init.d/rp-l2tpd
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
50 define Package/rp-l2tpd/conffiles
54 #define Package/rp-l2tpd-mod-cmd/install
55 # $(INSTALL_DIR) $(1)/usr/lib/l2tp
56 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
57 # $(INSTALL_DIR) $(1)/usr/sbin
58 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
61 #define Package/rp-l2tpd-mod-ppp/install
62 # $(INSTALL_DIR) $(1)/usr/lib/l2tp
63 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
66 $(eval $(call BuildPackage,rp-l2tpd))
67 #$(eval $(call BuildPackage,rp-l2tpd-mod-cmd))
68 #$(eval $(call BuildPackage,rp-l2tpd-mod-ppp))