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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/rp-l2tp
17 PKG_MD5SUM
:=0e45d11cb4fa6c56cce6b1d119733ed9
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
/Default
28 TITLE
:=Roaring Penguin L2TP
30 Roaring Penguin L2TP
(Layer
2 Tunneling Protocol
) implementation.
31 URL
:=http
://sourceforge.net
/projects
/rp-l2tp
/
34 define Package
/rp-l2tpd
35 $(call Package
/rp-l2tpd
/Default
)
40 define Package
/rp-l2tpd-mod-cmd
41 $(call Package
/rp-l2tpd
/Default
)
43 TITLE
:=Simple command handler for the RR L2TP daemon
46 define Package
/rp-l2tpd-mod-ppp
47 $(call Package
/rp-l2tpd
/Default
)
49 TITLE
:=PPP handler for the RR L2TP daeomon
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 $(TARGET_CONFIGURE_OPTS
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
61 define Package
/rp-l2tpd
/install
62 $(INSTALL_DIR
) $(1)/etc
63 $(CP
) $(PKG_INSTALL_DIR
)/etc
/l2tp.conf.example
$(1)/etc
/l2tp.conf
64 $(INSTALL_DIR
) $(1)/usr
/lib
/l2tp
65 $(INSTALL_DIR
) $(1)/usr
/sbin
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/l2tpd
$(1)/usr
/sbin
/
67 $(INSTALL_DIR
) $(1)/etc
/init.d
68 $(INSTALL_BIN
) .
/files
/rp-l2tpd.init
$(1)/etc
/init.d
/rp-l2tpd
71 define Package
/rp-l2tpd-mod-cmd
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
/l2tp
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/l2tp
/cmd.so
$(1)/usr
/lib
/l2tp
/
74 $(INSTALL_DIR
) $(1)/usr
/sbin
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/l2tp-control
$(1)/usr
/sbin
/
78 define Package
/rp-l2tpd-mod-ppp
/install
79 $(INSTALL_DIR
) $(1)/usr
/lib
/l2tp
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/l2tp
/sync-pppd.so
$(1)/usr
/lib
/l2tp
/
83 $(eval
$(call BuildPackage
,rp-l2tpd
))
84 $(eval
$(call BuildPackage
,rp-l2tpd-mod-cmd
))
85 $(eval
$(call BuildPackage
,rp-l2tpd-mod-ppp
))