use <linuxinput> only as keyboard driver, as more than one driver cause confusing...
[openwrt/svn-archive/archive.git] / net / rp-l2tp / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=rp-l2tp
11 PKG_VERSION:=0.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/rp-l2tp
16 PKG_MD5SUM:=0e45d11cb4fa6c56cce6b1d119733ed9
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/rp-l2tpd
21 SECTION:=net
22 CATEGORY:=Network
23 TITLE:=Roaring Penguin L2TP
24 URL:=http://sourceforge.net/projects/rp-l2tp/
25 TITLE+= daemon
26 SUBMENU:=dial-in/up
27 endef
28
29 define Package/rp-l2tpd/description
30 Roaring Penguin L2TP (Layer 2 Tunneling Protocol) implementation.
31 endef
32
33 # uses GNU configure
34 MAKE_FLAGS += \
35 DESTDIR="$(PKG_INSTALL_DIR)" \
36 all install
37
38 TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/libevent $(TARGET_CFLAGS)
39
40 define Package/rp-l2tpd/install
41 $(INSTALL_DIR) $(1)/etc
42 $(CP) $(PKG_INSTALL_DIR)/etc/l2tp.conf.example $(1)/etc/l2tp.conf
43 $(INSTALL_DIR) $(1)/usr/lib/l2tp
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tpd $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/rp-l2tpd.init $(1)/etc/init.d/rp-l2tpd
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
51 endef
52
53 #define Package/rp-l2tpd-mod-cmd/install
54 # $(INSTALL_DIR) $(1)/usr/lib/l2tp
55 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/cmd.so $(1)/usr/lib/l2tp/
56 # $(INSTALL_DIR) $(1)/usr/sbin
57 # $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/l2tp-control $(1)/usr/sbin/
58 #endef
59
60 #define Package/rp-l2tpd-mod-ppp/install
61 # $(INSTALL_DIR) $(1)/usr/lib/l2tp
62 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/l2tp/sync-pppd.so $(1)/usr/lib/l2tp/
63 #endef
64
65 $(eval $(call BuildPackage,rp-l2tpd))
66 #$(eval $(call BuildPackage,rp-l2tpd-mod-cmd))
67 #$(eval $(call BuildPackage,rp-l2tpd-mod-ppp))