From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4D6MBPLt12BjYAEAgWs5BA (envelope-from ) for ; Sun, 27 Jun 2021 05:18:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gE08APLt12CXRwAA1q6Kng (envelope-from ) for ; Sun, 27 Jun 2021 03:18:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3472314B9A for ; Sun, 27 Jun 2021 05:18:09 +0200 (CEST) Received: from localhost ([::1]:57502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxLJ9-00024X-8V for larch@yhetil.org; Sat, 26 Jun 2021 23:18:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43852) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxLJ4-00024O-VH for guix-patches@gnu.org; Sat, 26 Jun 2021 23:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxLJ4-0005i9-Nx for guix-patches@gnu.org; Sat, 26 Jun 2021 23:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lxLJ4-0005K4-Cp for guix-patches@gnu.org; Sat, 26 Jun 2021 23:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49236] [PATCH] gnu: add tractor Resent-From: Danial Behzadi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Jun 2021 03:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49236 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49236@debbugs.gnu.org Cc: Danial Behzadi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162476383320391 (code B ref -1); Sun, 27 Jun 2021 03:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2021 03:17:13 +0000 Received: from localhost ([127.0.0.1]:48812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxLIE-0005Im-Ao for submit@debbugs.gnu.org; Sat, 26 Jun 2021 23:17:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxLI9-0005Ib-HL for submit@debbugs.gnu.org; Sat, 26 Jun 2021 23:17:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxLI9-00022F-Ay for guix-patches@gnu.org; Sat, 26 Jun 2021 23:17:05 -0400 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:39934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxLI7-0004wS-8N for guix-patches@gnu.org; Sat, 26 Jun 2021 23:17:05 -0400 Received: by mail-qk1-x736.google.com with SMTP id j184so23798178qkd.6 for ; Sat, 26 Jun 2021 20:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=a2LZemcgZEWVUTG5uKHprDd64nZqVHFu189Hwbr+E4a/ZSr/EH+gZ+qaPyErqviBwA Jrc/K95HuQbm1toWFkDoPJv9KpYvAeL/8gzpVS0S+tjitoK9ftBy2XwAANp5UQbcJKHE wZ1r+QTWxhyTR2hPMU5GJXAdtTbfP4zGfyvdI7xF88Zp9efAXT7EbRHrPUiYkEP4biHr 70WKmKRHf4j/3LYzrMvjq3BR6C82SnPfUnEj4ke5tnNdLtLK2aQUU919t2Ql0mVVp9UV Y0wA1CDk24HmsnO7FOoa4rvHPB7AQZJ1Cxj7R9Ss83/xqyrn2eupxh4aq4vOWic6A5lM AMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=P89660OAmuUQHIeg/AFjT8LFj2ghayusOaEqOkasd7g8YNF7Q/ca+ew41RUknXFpjX VgOWbPtP9dIQw9evsVTB1R2gJZZxTsqeeyFP2wOK7ZnybhRlxTGpvfnt4RRHhMRAqzor fScKPrI7CHc3Vu5V4izUk9yodgu+LgVrnmLmdPkq9OsvOXozPDBXoEl7NJIR5j2tl45M fjOa+ElO55OGly4t0FkphvTgdx0vrig9FSy3wKADrrABtFyRGwNrR7cn1tMDLeziaWMM P7gyAgUN6dOW7vxzIy8gdh0BT72XSAyV0pHQ2WMcUoX/kLx2EcNelJtHyAlcZXC+zeGf bRrQ== X-Gm-Message-State: AOAM533AgT8DSCjngX9LdXLdwExEXVYOtwqy/bfEdzJrqopgro+Yp4l0 0c1KTb0XWTCK/mwrCQNkUBAJq2BIAi6xGg== X-Google-Smtp-Source: ABdhPJyg/RTnYdFWZ5FleoVrmxiXWeuQxDGC14el2tifz/KjcKjQI/KoE9Jz8dxxFprhV8iIENT0gw== X-Received: by 2002:a05:620a:1487:: with SMTP id w7mr9791521qkj.128.1624763821587; Sat, 26 Jun 2021 20:17:01 -0700 (PDT) Received: from ThinkPad-T430.lan ([87.247.180.125]) by smtp.googlemail.com with ESMTPSA id f4sm6030458qte.42.2021.06.26.20.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 20:17:01 -0700 (PDT) From: Danial Behzadi Date: Sun, 27 Jun 2021 07:45:58 +0430 Message-Id: <20210627031558.44555-1-dani.behzi@ubuntu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=dani.behzi@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624763889; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=kKVbM/lQ94zKxEj8snaWXjBEDKk5ayebVRDVnBS3/n+397vzVjXayFsa+KPhkPkNyDtNvJ iLlbokTBQuP/4W7zVzjwMS9lg5ftoNvnFL4ZiCI5GfezEl2MVylHDnURBvQeU6tESZZ+fc 2HAWc+QrJVkl9d/XPwa4YSo7SkqWj9O5WhvFGnH8Z/CQIrnZm/iXk/a8egIJ/h35yA5Jr5 sK6AJ5/mymInfnpm9rcu1QBMd4fXAa50yGfqxikQ5GHnSeuDr3JvMSbUnmkj+6UAn4ncIX Gjt613g5wT6vUrv0AWoNWQ2KAdijIHZCIvs/Xr0iU9ct0czSi3drCzwDdL89mQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624763889; a=rsa-sha256; cv=none; b=Gcpe1RLaDi5Qdy03zdb6czN5R3z+6TptgPtunvPWuWecnn5VNNzfyFyc3jFUIMplfuaFcv w9EPoBc4BWp9fyxUx3sL+ST1kHgsCAMjSfNCaON43vEOy7RTtv8cPbMj8O6UrZJaDIRK63 /OcbWHKIQScf2rnnux2UAnJNClD62t421Hd9U3UXjqy8+hcAv4zXvCNruk5YlnLmdCUgsN fMX3ka+NMq0mCBzZFb6u8V+ir1zPhWU+RyKuluigoVyYdr4Y4+nuLmxB85+1cvRpmsbrpj AOum7Du9g3menrpeO4NmZ3M/bmdmc6dDg8hAU9oxC1ioLF4n4+q3jgvBL62Aig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=a2LZemcg; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=a2LZemcg; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 3472314B9A X-Spam-Score: -0.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: TYscuXo0Ac41 --- gnu/packages/tor.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index b18e057977..2d9aac1924 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2020 Brice Waegeneire ;;; Copyright © 2020 André Batista +;;; Copyright © 2021 Danial Behzadi ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,6 +42,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages pcre) + #:use-module (gnu packages glib) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) @@ -424,3 +426,47 @@ statistics and status reports on: Potential client and exit connections are scrubbed of sensitive information.") (license license:gpl3+))) + +(define-public tractor + (package + (name "tractor") + (version "3.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "traxtor" version)) + (sha256 + (base32 + "0cysxfynsnf5p61m7n6kb58bn1cf81n68clxh5irp44kjshi0q6l")))) + (build-system python-build-system) + (native-inputs + `(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas. + (inputs + `(("python-fire" ,python-fire) + ("python-psutil" ,python-psutil) + ("python-pygobject" ,python-pygobject) + ("python-requests" ,python-requests) + ("python-stem" ,python-stem) + ("python-termcolor" ,python-termcolor))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-man-page + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man1 (string-append out "/share/man/man1"))) + (install-file "tractor/man/tractor.1" man1) + #t))) + (add-after 'install 'install-gschema + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (schemas (string-append out "/share/glib-2.0/schemas"))) + (install-file "tractor/tractor.gschema.xml" schemas) + #t)))))) + (home-page "https://framagit.org/tractor") + (synopsis "Setup an onion routing proxy") + (description + "This package uses Python stem library to provide a connection through +the onion proxy and sets up proxy in user session, so you don't have to mess +up with TOR on your system anymore.") + (license license:gpl3+))) -- 2.31.1