This patch contains a package with two PPS-tools and a header file,
[openwrt/svn-archive/archive.git] / net / tsocks / Makefile
1 #
2 # Copyright (C) 2007 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
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=tsocks
13 PKG_VERSION:=1.8
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=51caefd77e5d440d0bbd6443db4fc0f8
16
17 PKG_SOURCE_URL:=http://ftp1.sourceforge.net/tsocks/
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)beta5.tar.gz
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/tsocks
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Transparent SOCKS v4 proxying library
29 URL:=http://tsocks.sourceforge.net/
30 endef
31
32 define Package/tsocks/description
33 Transparent SOCKS v4 proxying library
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,\
38 --with-conf=/etc/tsocks.conf \
39 )
40 endef
41
42 define Build/Compile
43 $(call Build/Compile/Default,\
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install \
46 )
47 endef
48
49 define Package/tsocks/install
50 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tsocks $(1)/usr/bin/
52 $(CP) $(PKG_INSTALL_DIR)/lib/libtsocks.so{,*} $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,tsocks))