2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=matrixtunnel
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://znerol.ch/files
17 PKG_MD5SUM:=ffbbe0c50cc1863f6080aca302f7e2c8
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/matrixtunnel
28 DEPENDS:=+libmatrixssl
29 TITLE:=SSL tunnel based on matrixssl
31 matrixtunnel is a stripped down version of stunnel \\\
32 based on matrixssl library.
33 URL:=http://znerol.ch/svn/matrixtunnel/trunk/
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --without-libiconv-prefix \
39 --without-libintl-prefix \
40 --with-matrixssl-src="$(BUILD_DIR)/matrixssl" \
45 $(MAKE) -C $(PKG_BUILD_DIR)/src \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
50 define Package/matrixtunnel/install
51 install -d -m0755 $(1)/usr/bin
52 $(CP) $(PKG_INSTALL_DIR)/usr/bin/matrixtunnel $(1)/usr/bin/
55 $(eval $(call BuildPackage,matrixtunnel))