From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kIWrL3vmO2TbYgAASxT56A (envelope-from ) for ; Sun, 16 Apr 2023 14:13:47 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QNFpL3vmO2Sl7gAAauVa8A (envelope-from ) for ; Sun, 16 Apr 2023 14:13:47 +0200 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 aspmx2.migadu.com (Postfix) with ESMTPS id 5E1453997B for ; Sun, 16 Apr 2023 14:13:47 +0200 (CEST) Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=capybaramail.xyz header.s=default header.b=GhQkYWpi; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681647227; 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=mms1JGv9sKy5TX+HT/X/7AJ6PGCQMDPEhEniWjMp7cY=; b=RTGSxC9ZPk7sGjDuprNHfG+HEwIwIANVJlX5+jb3I0iEIo7gO7IQrTleFfVznnaEd8ptx0 IZ7Wxo4mr0cPi0Ahr9GdLdJQQ2meZ3l0QPvvPD65l8P+GbwaPPF4UsUxOHSbHYFcUBpuDD 8wQ53ZXgAw7zynakeWmgTlInbAPg/6aqhwAT/VFqxEpCFnVf3mdnfcfsuBlhsg0tiL/7Th BuiY0UxXoe0p62MEj12iKNjdu+Ih1/Dn9XLxlRieuEi771qF1hcdLN6U6UXLHkIFb4UYMB Z5/70DxbfnMK79hClivSn3TC4U4CfmVqHZI+I0rEqeGQ31fNYDDzJiBkMnImiA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=capybaramail.xyz header.s=default header.b=GhQkYWpi; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681647227; a=rsa-sha256; cv=none; b=kQ8a4CR+IYFjND96ExfXcv4CpbmJa9ma54oAvASYCW3t4HJY6RKJWrCoKhsTVigJft1VpC g3ii0JG2vGzNW1XwzAv4fqAB0KXSCn5Eyi1S47R8Va7XFRg2Wltg9zibSFxIpn8odJ98ff kir4IE/mb8QPNqCRcLMuEu5YOU5x8ccuwi59+arjixd4G9AlMSwRd+fO5jd0Jz1QBYpK2O 8dMxiv/t5c+f7Pqet46O2IuQmbQAHYO8R/XWJSF4QOmZFNuJUZekLZeitdSrw6y0g8tej3 4C19vw5orQIMCjx+oNGK0xtbin9c3N0KRIVM1+54zRXqIZz0OBfY5sL97ru6rg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1po1GB-0000L4-Di; Sun, 16 Apr 2023 08:13:35 -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 1pnz0I-00080E-HS for guix-patches@gnu.org; Sun, 16 Apr 2023 05:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnz0I-00088N-8u for guix-patches@gnu.org; Sun, 16 Apr 2023 05:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnz0H-0007LR-QH for guix-patches@gnu.org; Sun, 16 Apr 2023 05:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62880] [PATCH] gnu: Add sipp. Resent-From: Ivan Gankevich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Apr 2023 09:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62880 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62880@debbugs.gnu.org Cc: Ivan Gankevich X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168163849528104 (code B ref -1); Sun, 16 Apr 2023 09:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2023 09:48:15 +0000 Received: from localhost ([127.0.0.1]:50618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnyzW-0007J8-8i for submit@debbugs.gnu.org; Sun, 16 Apr 2023 05:48:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:43546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnyzS-0007Ib-Em for submit@debbugs.gnu.org; Sun, 16 Apr 2023 05:48:13 -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 1pnyzR-0007wv-Uk for guix-patches@gnu.org; Sun, 16 Apr 2023 05:48:09 -0400 Received: from mailout-pe-a.jellyfish.systems ([198.54.127.74]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnyzO-00084s-PT for guix-patches@gnu.org; Sun, 16 Apr 2023 05:48:09 -0400 Received: from output-router-84cf8f76b8-h77cx (unknown [10.35.5.64]) by mailout-pe-a.jellyfish.systems (Postfix) with ESMTPA id 4Pzljc1LVjz3xWD for ; Sun, 16 Apr 2023 09:48:04 +0000 (UTC) Received: from MTA-12.privateemail.com (unknown [10.50.14.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by NEW-01-3.privateemail.com (Postfix) with ESMTPS id 27560100629C for ; Sun, 16 Apr 2023 05:48:04 -0400 (EDT) Received: from mta-12.privateemail.com (localhost [127.0.0.1]) by mta-12.privateemail.com (Postfix) with ESMTP id 0E9B718000A3; Sun, 16 Apr 2023 05:48:04 -0400 (EDT) Received: from localhost.localdomain (dynamic-089-204-138-066.89.204.138.pool.telefonica.de [89.204.138.66]) by mta-12.privateemail.com (Postfix) with ESMTPA id 038D418000A1; Sun, 16 Apr 2023 05:48:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=capybaramail.xyz; s=default; t=1681638483; bh=Z1IU7yaBiRQk1dj19NxbOkbu+TqokKS+wLCSCIz2PCU=; h=From:To:Cc:Subject:Date:From; b=GhQkYWpiHdQ+MlBBoJVN8mpI89GSoJUTnidAYKeq94UKx0gPi32NDbfUdj96VUd+q 873OWte7nOzHgd5PvH1NY4Fq8dgLPJ1Rj80f+00qloS4p8OrpK7j7txBzxLWkyZOzK oCLKP6mxXHJs39e6nVoUTjS0w7jPwd3Cyutgae2U7EXQkrI6dmUv930LPk8Lh6KKDr F5+tntfQLtRc/94nA5fKfCYMr68U9G1Fpy++SDXv/v2vXHsZAzDK6tSCfNvqpDTASS zYO1wzfhuNkRoj3ab6z5cmrq8NLnWthE928i97wYF2FhGBVJxwWjBt6LoQ2qDr36l8 hLfHFUKlA9VTg== From: Ivan Gankevich Date: Sun, 16 Apr 2023 11:47:27 +0200 Message-Id: <20230416094725.30530-1-igankevich@capybaramail.xyz> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=198.54.127.74; envelope-from=igankevich@capybaramail.xyz; helo=mailout-pe-a.jellyfish.systems X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 16 Apr 2023 08:13:32 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.11 X-Spam-Score: -0.11 X-Migadu-Queue-Id: 5E1453997B X-TUID: mtq3P84D14dF * gnu/packages/telephony.scm (sipp): New variable. --- Hello. I've packaged SIPp — a popular SIP benchmarking and load testing tool. Best regards, Ivan gnu/packages/telephony.scm | 62 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/telephony.scm b/gnu/packages/telephony.scm index c921507fd3..f717b100d7 100644 --- a/gnu/packages/telephony.scm +++ b/gnu/packages/telephony.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Demis Balbach ;;; Copyright © 2022 Thomas Albers Raviola +;;; Copyright © 2023 Ivan Gankevich ;;; ;;; This file is part of GNU Guix. ;;; @@ -70,6 +71,7 @@ (define-module (gnu packages telephony) #:use-module (gnu packages libusb) #:use-module (gnu packages linphone) #:use-module (gnu packages linux) + #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) #:use-module (gnu packages netpbm) @@ -1033,3 +1035,63 @@ (define-public xgoldmon @end itemize") (home-page "https://github.com/2b-as/xgoldmon") (license license:gpl2+)))) + +(define-public sipp + (package + (name "sipp") + (version "3.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SIPp/sipp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 (base32 "0vplccia9zdva1wwny2xgs0b6rzmq4abxvw8lyz61wfw7jjmvin0")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags + (list "-DUSE_GSL=1" "-DUSE_PCAP=1" "-DUSE_SSL=1" "-DUSE_SCTP=1") + #:phases + (modify-phases %standard-phases + ; Here we modify build instructions to use external gtest and gmock. + (add-before 'configure 'unbundle-gtest + (lambda _ + (rmdir "gtest") + (symlink (assoc-ref %build-inputs "googletest") "gtest") + (substitute* "CMakeLists.txt" + ((".*gtest-all.*") "") + ((".*gmock-all.*") "") + (("target_compile_features\\(sipp_unittest" all) + (string-append "target_link_libraries(sipp_unittest gtest gmock)\n" + all))))) + ; Here we generate version.h without git. + (add-before 'configure 'fix-version + (lambda _ + (copy-file "include/version.h.in" "include/version.h") + (substitute* "include/version.h" (("@VERSION@") ,version)) + (substitute* "CMakeLists.txt" (("find_package\\(Git\\)") "")))) + (add-after 'build 'build-tests + (lambda* (#:key parallel-build? #:allow-other-keys) + (invoke "make" + (string-append + "-j" (if parallel-build? + (number->string (parallel-job-count)) + "1")) + "sipp_unittest"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "./sipp_unittest"))))))) + (inputs + (list ncurses/tinfo libpcap lksctp-tools openssl gsl)) + (native-inputs + (list googletest pkg-config)) + (synopsis "Performance testing tool for the SIP protocol") + (description "SIPp can be used to test many real SIP equipements like SIP proxies, +B2BUAs, SIP media servers, SIP/x gateways, and SIP PBXes. +It is also very useful to emulate thousands of user agents calling your SIP system.") + (home-page "https://sipp.readthedocs.io/") + (license (list license:gpl2+ ; sipp's main license + license:bsd-3 ; send_packets.c, send_packets.h + license:zlib)))) ; md5.c, md5.h -- 2.38.0