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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://znerol.ch
/files
18 PKG_MD5SUM
:=ffbbe0c50cc1863f6080aca302f7e2c8
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
30 DESCRIPTION
:=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 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
38 $(TARGET_CONFIGURE_OPTS
) \
39 CFLAGS
="$(TARGET_CFLAGS)" \
40 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
41 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
43 --target
=$(GNU_TARGET_NAME
) \
44 --host
=$(GNU_TARGET_NAME
) \
45 --build
=$(GNU_HOST_NAME
) \
51 --datadir=/usr
/share \
52 --includedir=/usr
/include \
53 --infodir=/usr
/share
/info \
55 --libexecdir
=/usr
/lib \
56 --localstatedir
=/var \
57 --mandir=/usr
/share
/man \
60 $(DISABLE_LARGEFILE
) \
62 --without-libiconv-prefix \
63 --without-libintl-prefix \
64 --with-matrixssl-src
=$(BUILD_DIR
)/matrixssl \
69 rm -rf
$(PKG_INSTALL_DIR
)
70 mkdir
-p
$(PKG_INSTALL_DIR
)
71 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src \
72 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Package
/matrixtunnel
/install
77 install -d
-m0755
$(1)/usr
/sbin
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/matrixtunnel
$(1)/usr
/sbin
/
81 $(eval
$(call BuildPackage
,matrixtunnel
))