Move these VPN servers in with the rest of the VPN servers in the
[packages.git] / net / ssltunnel / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ssltunnel
12 PKG_VERSION:=1.15
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=${PKG_NAME}-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.hsc.fr/ressources/outils/ssltunnel/download
17 PKG_MD5SUM:=bfe529edb9b6c97bc03d213676b1f35d
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ssltunnel
25   SECTION:=net
26   CATEGORY:=Network
27   DEPENDS:=+ppp +libopenssl
28   TITLE:=A PPP over SSL vpn tool
29   URL:=http://www.hsc.fr/ressources/outils/ssltunnel/index.html
30   SUBMENU:=vpn
31 endef
32
33 define Build/Configure
34         $(call Build/Configure/Default, \
35                 , \
36                 BUILD_CC="$(TARGET_CC)" \
37                 HOSTCC="$(HOSTCC)" \
38         )
39 endef
40
41 define Build/Compile
42         $(MAKE) -C $(PKG_BUILD_DIR) \
43                 DESTDIR="$(PKG_INSTALL_DIR)" \
44                 all install
45 endef
46
47 define Package/ssltunnel/install        
48         $(INSTALL_DIR) $(1)/usr/bin
49         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pppclient $(1)/usr/bin/
50         $(INSTALL_DIR) $(1)/usr/sbin
51         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppwho $(1)/usr/sbin/
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppserver $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,ssltunnel))