2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
10 include $(TOPDIR
)/rules.mk
15 PKG_MD5SUM
:=51caefd77e5d440d0bbd6443db4fc0f8
17 PKG_SOURCE_URL
:=http
://ftp1.sourceforge.net
/tsocks
/
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)beta5.
tar.gz
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=Transparent SOCKS v4 proxying library
30 URL
:=http
://tsocks.sourceforge.net
/
33 define Package
/tsocks
/description
34 Transparent SOCKS v4 proxying library
37 define Build
/Configure
38 $(call Build
/Configure
/Default
,\
39 --with-conf
=/etc
/tsocks.conf \
44 $(call Build
/Compile
/Default
,\
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
50 define Package
/tsocks
/install
51 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/tsocks
$(1)/usr
/bin
/
53 $(CP
) $(PKG_INSTALL_DIR
)/lib
/libtsocks.so
{,*} $(1)/usr
/lib
/
56 $(eval
$(call BuildPackage
,tsocks
))