652d053e39df85a846da33d7594d007943b36aab
[openwrt/svn-archive/archive.git] / net / matrixtunnel / 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:=matrixtunnel
12 PKG_VERSION:=0.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://znerol.ch/files
17 PKG_MD5SUM:=af169751efc7d87d500716a48d74ddc5
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/matrixtunnel
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libmatrixssl
29 TITLE:=SSL tunnel based on matrixssl
30 URL:=http://znerol.ch/svn/matrixtunnel/trunk/
31 endef
32
33 define Package/matrixtunnel/description
34 matrixtunnel is a stripped down version of stunnel
35 based on matrixssl library.
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --without-libiconv-prefix \
41 --without-libintl-prefix \
42 --with-matrixssl-src="$(BUILD_DIR)/matrixssl" \
43 )
44 endef
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR)/src \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Package/matrixtunnel/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/matrixtunnel $(1)/usr/bin/
55 endef
56
57 $(eval $(call BuildPackage,matrixtunnel))