Update darkstat to 3.0.708 (#2885)
[openwrt/svn-archive/archive.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.16
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:=4039b50566a33a4077883ea974e476d5
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ssltunnel
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+ppp +libopenssl
25 TITLE:=A PPP over SSL VPN tool
26 URL:=http://www.hsc.fr/ressources/outils/ssltunnel/index.html
27 SUBMENU:=VPN
28 endef
29
30 define Package/ssltunnel/description
31 SSLTunnel is a client/server program to create a PPP connection over a
32 SSL/TLS session.
33 Client and server are mutually authenticated using a X509 certificate,
34 PPP packets are then encrypted/decrypted realtime on each side.
35 It's possible to use ssltunnel to connect a machine to another, a
36 machine with a network or two networks sets.
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 , \
42 BUILD_CC="$(TARGET_CC)" \
43 HOSTCC="$(HOSTCC)" \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/ssltunnel/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pppclient $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/pppwho $(1)/usr/sbin/
58 $(INSTALL_DIR) $(1)/usr/lib
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/pppserver $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,ssltunnel))