Makefile (1771B)
1 # 2 # Copyright (C) 2014-2015 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:=redsocks 11 PKG_VERSION:=0.4-20150907 12 PKG_RELEASE:=1 13 14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz 15 PKG_SOURCE_PROTO:=git 16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 17 PKG_SOURCE_URL:=https://github.com/darkk/redsocks.git 18 PKG_SOURCE_VERSION:=2118c616b4970a0436eceaa57a6e3451ec98ad2b 19 20 PKG_MAINTAINER:=Johannes Morgenroth <jm@m-network.de> 21 PKG_LICENSE:=Apache-2.0 22 23 include $(INCLUDE_DIR)/package.mk 24 25 define Package/redsocks 26 SECTION:=net 27 CATEGORY:=Network 28 DEPENDS:=+libevent2 29 TITLE:=Redirect any TCP connection to a SOCKS or HTTPS proxy server 30 endef 31 32 define Package/redsocks/conffiles 33 /etc/redsocks.conf 34 endef 35 36 define Package/redsocks/description 37 Redsocks is a daemon running on the local system, that will transparently 38 tunnel any TCP connection via a remote SOCKS4, SOCKS5 or HTTP proxy server. It 39 uses the system firewall's redirection facility to intercept TCP connections, 40 thus the redirection is system-wide, with fine-grained control, and does 41 not depend on LD_PRELOAD libraries. 42 43 Redsocks supports tunneling TCP connections and UDP packets. It has 44 authentication support for both, SOCKS and HTTP proxies. 45 46 Also included is a small DNS server returning answers with the "truncated" flag 47 set for any UDP query, forcing the resolver to use TCP. 48 endef 49 50 define Package/redsocks/install 51 $(INSTALL_DIR) $(1)/usr/sbin/ 52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/redsocks $(1)/usr/sbin/ 53 $(INSTALL_DIR) $(1)/etc/init.d/ 54 $(INSTALL_BIN) files/redsocks.init $(1)/etc/init.d/redsocks 55 $(INSTALL_CONF) files/redsocks.conf $(1)/etc/ 56 endef 57 58 $(eval $(call BuildPackage,redsocks))