bdcc1c9a1ff4cd7db2c79054b9b1e46cc3525bbf
[openwrt/svn-archive/archive.git] / net / transocks / Makefile
1 #
2 # Copyright (C) 2011 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=transocks
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=:pserver:anonymous@transocks.cvs.sourceforge.net:/cvsroot/transocks
16 PKG_SOURCE_SUBDIR:=transocks
17 PKG_SOURCE_VERSION:=-DNOW
18 PKG_SOURCE_PROTO:=cvs
19
20 PKG_BUILD_DIR:=transocks
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Build/Compile
25 $(TARGET_CC) \
26 -I$(STAGING_DIR)/usr/include \
27 $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
28 $(LIBRPC) -lsocks -o \
29 $(PKG_BUILD_DIR)/transocks \
30 $(PKG_BUILD_DIR)/transocks.c
31 endef
32
33 define Package/transocks
34 SECTION:=net
35 CATEGORY:=Network
36 SUBMENU:=Web Servers/Proxies
37 TITLE:=Transparent SOCKSifying proxy
38 DEPENDS:=+libsocks $(LIBRPC_DEPENDS)
39 endef
40
41 define Package/transocks/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(CP) $(PKG_BUILD_DIR)/transocks $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,transocks))