From patchwork Fri Oct 6 16:16:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Denis 'GNUtoo' Carikli X-Patchwork-Id: 54530 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 2437B27BBE2; Fri, 6 Oct 2023 17:18:17 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 6EF5C27BBE9 for ; Fri, 6 Oct 2023 17:18:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qonWO-0007Fp-ON; Fri, 06 Oct 2023 12:17:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qonWL-0007Fa-OJ for guix-patches@gnu.org; Fri, 06 Oct 2023 12:17:45 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qonWJ-0004Ob-E5 for guix-patches@gnu.org; Fri, 06 Oct 2023 12:17:45 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qonWb-0006W9-V8 for guix-patches@gnu.org; Fri, 06 Oct 2023 12:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64510] [PATCH v2] gnu: Add simtrace-1 References: In-Reply-To: Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: , guix-patches@gnu.org Resent-Date: Fri, 06 Oct 2023 16:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64510 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64510@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli , ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart X-Debbugs-Original-Xcc: ( , Christopher Baines , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Received: via spool by 64510-submit@debbugs.gnu.org id=B64510.169660904824998 (code B ref 64510); Fri, 06 Oct 2023 16:18:01 +0000 Received: (at 64510) by debbugs.gnu.org; 6 Oct 2023 16:17:28 +0000 Received: from localhost ([127.0.0.1]:52498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qonW3-0006V8-SP for submit@debbugs.gnu.org; Fri, 06 Oct 2023 12:17:28 -0400 Received: from cyberdimension.org ([80.67.179.20]:43758 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qonW0-0006Uv-DU for 64510@debbugs.gnu.org; Fri, 06 Oct 2023 12:17:26 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id a4661dae; Fri, 6 Oct 2023 16:17:03 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id d5a2bc1b; Fri, 6 Oct 2023 16:17:03 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Fri, 6 Oct 2023 18:16:59 +0200 Message-ID: <525e005b4c563deadc37f65f7293531b3e98702b.1696608951.git.GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/telephony.scm (simtrace-1): New variable. Signed-off-by: Denis 'GNUtoo' Carikli --- ChangeLog: - change #:use-module (gnu packages tex) in #:use-module (gnu packages texlive) as texlive moved file. --- gnu/packages/telephony.scm | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) base-commit: 8d27ef1ed34a0a7fe14fd76f31541b62d0125498 diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index 42158784ca..0865ab5fe1 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -78,6 +78,7 @@ (define-module (gnu packages telephony) #:use-module (gnu packages samba) #:use-module (gnu packages security-token) #:use-module (gnu packages speech) + #:use-module (gnu packages texlive) #:use-module (gnu packages tls) #:use-module (gnu packages xiph) #:use-module (gnu packages xorg) @@ -977,6 +978,77 @@ (define-public libosmocore (home-page "https://osmocom.org/projects/libosmocore/wiki/Libosmocore") (license license:gpl2+))) +(define-public simtrace-1 + (package + (name "simtrace-1") + (version "1.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitea.osmocom.org/sim-card/simtrace") + (commit (string-append "v" version)))) + (sha256 + (base32 + "03wjdavp7fbr7jzzhqx6di9v87yvfi19i3kpn798vlpbw7iwkjry")))) + (arguments + (list #:tests? #f ;no tests + #:make-flags #~(list (string-append "CC=" + #$(cc-for-target)) + (string-append "DESTDIR=" + #$output)) + #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "host"))) + (add-after 'chdir 'fix-makefile + (lambda _ + (substitute* "Makefile" + (("/usr") + "")))) + (delete 'configure) + (add-after 'build 'build-usermanual + (lambda* (#:key inputs native-inputs + #:allow-other-keys) + (substitute* "../docs/usermanual.xml" + (("http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd") + (string-append (assoc-ref inputs "docbook-xml") + "/xml/dtd/docbook/docbookx.dtd"))) + ;; At the beginning of the document, a table is + ;; constructed with the build time in it. This + ;; comes from '\newcommand{\DBKdate}{\today}' in + ;; share/dblatex/latex/contrib/db2latex/db2latex.sty + ;; in /gnu/store/[...]-dblatex-[...]. We used the + ;; commit time for the date instead. + (invoke (which "faketime") "2019-10-01" + (which "dblatex") "../docs/usermanual.xml"))) + (add-after 'build-usermanual 'install-usermanual + (lambda _ + (install-file "../docs/usermanual.pdf" + (string-append #$output + "/share/doc/simtrace-1/")))) + (add-after 'install 'install-man + (lambda _ + (install-file "simtrace.1" + (string-append #$output "/man/man1/"))))))) + (build-system gnu-build-system) + (native-inputs (list dblatex docbook-xml-4.2 libfaketime pkg-config + texlive)) + (inputs (list libosmocore libusb lksctp-tools talloc)) + (synopsis + "Sniff the communication between phones and SIM cards with SIMtrace 1") + (description + "This contains the simtrace utility. +It is compatible with the SIMtrace 1 hardware that contains an Atmel AT91SAM7S +micro-controller. It is not compatible with the SIMtrace 2 hardware that uses +an Atmel ATSAM3S micro-controller instead. The simtrace utility can display +the SIM PDUs directly and/or send them to a given IP address to enable users +to view SIM PDUs in Wireshark. It also contains a complete user manual for +the SIMtrace 1 hardware.") + (home-page "https://osmocom.org/projects/simtrace/wiki/SIMtrace") + ;; The utility is GPLv2-only according to the source files headers, and the + ;; manual is under the cc-by-sa 3.0 + (license (list license:gpl2 license:cc-by-sa3.0)))) + (define-public xgoldmon ;; There are no releases nor tags. (let ((revision "1")