mirror of
https://github.com/openwrt/packages.git
synced 2025-11-04 23:19:38 +00:00
uClibc-ng was removed in 2020 from OpenWrt main repo [1]. These things are leftovers. [1] https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=63fb175203bbf3b336804587c2f5b3a2d8132ec1 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2017-2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=torsocks
|
|
PKG_VERSION:=2.3.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=https://people.torproject.org/~dgoulet/torsocks/
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_HASH:=b9f1b981d6b3fd4e1820de1eee325f8a7038c84765d5a6cd9af12571d5cc3622
|
|
|
|
PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec1@gmail.com>
|
|
PKG_LICENSE:=GPLv2
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/torsocks
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=IP Addresses and Names
|
|
TITLE:=torsocks
|
|
URL:=https://trac.torproject.org/projects/tor/wiki/doc/torsocks
|
|
DEPENDS:=+tor
|
|
endef
|
|
|
|
define Package/torsocks/description
|
|
Torsocks allows you to use most applications in a safe way with Tor.
|
|
It ensures that DNS requests are handled safely and explicitly rejects any traffic other than TCP from the application you're using.
|
|
endef
|
|
|
|
define Package/conffiles
|
|
/etc/tor/torsocks.conf
|
|
endef
|
|
|
|
define Package/torsocks/install
|
|
$(INSTALL_DIR) $(1)/etc/tor/
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/tor/torsocks.conf $(1)/etc/tor/
|
|
$(INSTALL_DIR) $(1)/usr/lib/torsocks
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/torsocks/libtorsocks.so* $(1)/usr/lib/torsocks/
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/torsocks $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,torsocks))
|