From patchwork Sun Jun 27 03:15:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Danial Behzadi X-Patchwork-Id: 30737 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4C64227BC83; Sun, 27 Jun 2021 04:18:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 63CFD27BC81 for ; Sun, 27 Jun 2021 04:18:10 +0100 (BST) Received: from localhost ([::1]:57502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lxLJB-00024X-6Q for patchwork@mira.cbaines.net; Sat, 26 Jun 2021 23:18:09 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- 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+)))