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