nuke $Id$ in /packages as well
[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
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=tsocks
12 PKG_VERSION:=1.8
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=51caefd77e5d440d0bbd6443db4fc0f8
15
16 PKG_SOURCE_URL:=http://ftp1.sourceforge.net/tsocks/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)beta5.tar.gz
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/tsocks
22 SECTION:=net
23 CATEGORY:=Network
24 TITLE:=Transparent SOCKS v4 proxying library
25 URL:=http://tsocks.sourceforge.net/
26 endef
27
28 define Package/tsocks/description
29 Transparent SOCKS v4 proxying library
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default,\
34 --with-conf=/etc/tsocks.conf \
35 )
36 endef
37
38 define Build/Compile
39 $(call Build/Compile/Default,\
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install \
42 )
43 endef
44
45 define Package/tsocks/install
46 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tsocks $(1)/usr/bin/
48 $(CP) $(PKG_INSTALL_DIR)/lib/libtsocks.so{,*} $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,tsocks))