2 # Copyright (C) 2017-2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=https
://people.torproject.org
/~dgoulet
/torsocks
/
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_HASH
:=b9f1b981d6b3fd4e1820de1eee325f8a7038c84765d5a6cd9af12571d5cc3622
18 PKG_MAINTAINER
:=Jan Pavlinec
<jan.pavlinec1@gmail.com
>
20 PKG_LICENSE_FILES
:=LICENSE
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/torsocks
31 SUBMENU
:=IP Addresses and Names
33 URL
:=https
://trac.torproject.org
/projects
/tor
/wiki
/doc
/torsocks
37 define Package
/torsocks
/description
38 Torsocks allows you to use most applications in a safe way with Tor.
39 It ensures that DNS requests are handled safely and explicitly rejects any traffic other than TCP from the application you
're using.
42 define Build/Configure
43 $(call Build/Configure/Default)
44 ifeq ($(CONFIG_USE_UCLIBC),y)
45 find $(PKG_BUILD_DIR) -name 'Makefile
' -exec sed -i 's|
--param ssp-buffer-size
=1 -fstack-protector-all||
' \{\} \+
49 define Package/conffiles
50 /etc/tor/torsocks.conf
53 define Package/torsocks/install
54 $(INSTALL_DIR) $(1)/etc/tor/
55 $(CP) $(PKG_INSTALL_DIR)/etc/tor/torsocks.conf $(1)/etc/tor/
56 $(INSTALL_DIR) $(1)/usr/lib/torsocks
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/torsocks/libtorsocks.so* $(1)/usr/lib/torsocks/
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/torsocks $(1)/usr/bin/
62 $(eval $(call BuildPackage,torsocks))