2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
14 PKG_MD5SUM:=0e45d11cb4fa6c56cce6b1d119733ed9
16 PKG_SOURCE_URL:=@SF/rp-l2tp
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/rp-l2tpd
28 TITLE:=an L2TP (Layer 2 Tunneling Protocol) daemon
29 DESCRIPTION:=An L2TP (Layer 2 Tunneling Protocol) daemon.
30 URL:=http://sourceforge.net/projects/rp-l2tp/
34 define Package/rp-l2tpd-mod-cmd
38 TITLE:=a simple command handler for the L2TP daemon
41 define Package/rp-l2tpd-mod-ppp
45 TITLE:=a PPP handler for the L2TP daeomon
49 $(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" all install)
52 define Package/rp-l2tpd/install
53 install -d -m0755 $(1)/etc
54 $(CP) $(PKG_INSTALL_DIR)/etc/l2tp.conf.example $(1)/etc/l2tp.conf
55 install -d -m0755 $(1)/etc/init.d
56 install -m0755 ./files/rp-l2tpd.init $(1)/etc/init.d/rp-l2tpd
57 install -d -m0755 $(1)/usr/lib/l2tp
58 install -d -m0755 $(1)/usr/sbin
59 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/l2tpd $(1)/usr/sbin/
62 define Package/rp-l2tpd-mod-cmd/install
63 install -d -m0755 $(1)/usr/lib/l2tp
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
65 install -d -m0755 $(1)/usr/sbin
66 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
69 define Package/rp-l2tpd-mod-ppp/install
70 install -d -m0755 $(1)/usr/lib/l2tp
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
74 $(eval $(call BuildPackage,rp-l2tpd))
75 $(eval $(call BuildPackage,rp-l2tpd-mod-cmd))
76 $(eval $(call BuildPackage,rp-l2tpd-mod-ppp))