packages/net/olsrd: nuke now obsolete patches
[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 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tsocks
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Transparent SOCKS v4 proxying library
26 URL:=http://tsocks.sourceforge.net/
27 endef
28
29 define Package/tsocks/description
30 Transparent SOCKS v4 proxying library
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default,\
35 --with-conf=/etc/tsocks.conf \
36 )
37 endef
38
39 define Build/Compile
40 $(call Build/Compile/Default,\
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install \
43 )
44 endef
45
46 define Package/tsocks/install
47 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
48 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tsocks $(1)/usr/bin/
49 $(CP) $(PKG_INSTALL_DIR)/lib/libtsocks.so{,*} $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,tsocks))