commit: 978dae8ff3cd0fe0adb2aad4a53363e4c1ff940e Author: Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr> AuthorDate: Thu Sep 4 13:08:26 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Sep 6 14:32:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=978dae8f
net-misc/sipsak: add 0.9.8.1_p20230215 add a snapshot with few bugfixes define _GNU_SOURCE for musl force openssl with md5 instead of gnutls and outdated-vendor-md5 add virtual/pkgconfig for c-ares and check tested with gcc-16/clang-21/musl Closes: https://bugs.gentoo.org/836720 Closes: https://bugs.gentoo.org/880535 Closes: https://bugs.gentoo.org/898094 Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/43661 Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/sipsak/Manifest | 1 + .../files/sipsak-0.9.8.1-force_openssl.patch | 26 +++++++++++++++ net-misc/sipsak/sipsak-0.9.8.1_p20230215.ebuild | 37 ++++++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/net-misc/sipsak/Manifest b/net-misc/sipsak/Manifest index 0bc830623d62..70def8f10c12 100644 --- a/net-misc/sipsak/Manifest +++ b/net-misc/sipsak/Manifest @@ -1,2 +1,3 @@ DIST sipsak-0.9.8.1.tar.gz 202545 BLAKE2B a3f8d8361f4bf52fbcd01d95512cd3850f831b3d2e08eea78fd24805e3d15f7e8a424d73518fdf2c86f4756087a2e13f5bab33b0aae0f79d45a4daa0f9b5c69e SHA512 8313d1176e6f3cab78dada33fbf8d3c7c6e6434671dd6a7402d1433bbec50f53e2bf98496d8ac1b8021586f19940c32dbdd15e93ff7ed88ee1b690a037b46ab8 +DIST sipsak-0.9.8.1_p20230215.tar.gz 75195 BLAKE2B b85307fdf58baa65cb84017b489cc16e34af9bf1bc89a501aa0f48265ab72c272bad6705207d0b830bacd106ef5ede2fc03ff985dfce3cd67ce96d1dd04c8cac SHA512 e1fc55091530ba3ef1b70405a9bb9e08b66f240c467732b880b29492cf7e7f5efb99ab039d695c40e300b7e88fcacada5ddde36f6b2f17eae8d33d951c62afa5 DIST sipsak-0.9.8.tar.gz 202482 BLAKE2B 26ea0fc196d598f6ef111b0c511484db0ca23b4ea8e2febe957b578a5eb0e2351dcc1d5848bdcda4a01f6962d1cd97c80dcf58203fcb82e19eb7f475f8a7ee56 SHA512 1cd4c8e69f5c8cae83c524f73ef53eb139127ff3652eb1407542883c4c3593df9d61207e10198705e064b42da72c210fb6a88c087a83c3b13bbb6d9d8bfab20c diff --git a/net-misc/sipsak/files/sipsak-0.9.8.1-force_openssl.patch b/net-misc/sipsak/files/sipsak-0.9.8.1-force_openssl.patch new file mode 100644 index 000000000000..3f3b0c4f8b78 --- /dev/null +++ b/net-misc/sipsak/files/sipsak-0.9.8.1-force_openssl.patch @@ -0,0 +1,26 @@ +use openssl with md5 instead of gnutls and outdated-vendor-md5 +https://bugs.gentoo.org/880535 +https://bugs.gentoo.org/898094 +--- a/configure.ac ++++ b/configure.ac +@@ -52,12 +52,6 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9.3], [ + AC_DEFINE([HAVE_CHECK_H], [1], [Has check.h]) + ],:) + +-PKG_CHECK_MODULES([GNUTLS], [gnutls >= 1.0.0], [ +- AC_DEFINE([HAVE_GNUTLS], [1], [Has gnutls >= 1.0.0]) +- HAVE_GNUTLS=1 +- LIBS="${LIBS} ${GNUTLS_LIBS}" +- CFLAGS="${CFLAGS} ${GNUTLS_CFLAGS}" +- ], [ + AC_CHECK_HEADERS([openssl/md5.h], [ + AC_SEARCH_LIBS([MD5_Init], [crypto], [ + AC_DEFINE([HAVE_CRYPTO_WITH_MD5], [1], [The crypto lib has MD5 functions]) +@@ -69,7 +63,6 @@ PKG_CHECK_MODULES([GNUTLS], [gnutls >= 1.0.0], [ + AC_DEFINE([HAVE_CRYPTO_WITH_SHA1], [1], [The crpyto lib has SHA1 functions]) + ]) + ]) +-]) + PKG_CHECK_MODULES([GNUTLS319], [gnutls >= 3.1.9], [ + AC_DEFINE([HAVE_GNUTLS_319], [1], [Has gntuls >= 3.1.9]) + ],:) diff --git a/net-misc/sipsak/sipsak-0.9.8.1_p20230215.ebuild b/net-misc/sipsak/sipsak-0.9.8.1_p20230215.ebuild new file mode 100644 index 000000000000..2e82760f17a9 --- /dev/null +++ b/net-misc/sipsak/sipsak-0.9.8.1_p20230215.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +COMMIT_HASH="429325a976788e389ca465e1449153d991754a17" +DESCRIPTION="Small command line tool for testing SIP applications and devices" +HOMEPAGE="https://github.com/nils-ohlmeier/sipsak" +SRC_URI="https://github.com/nils-ohlmeier/sipsak/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT_HASH}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/openssl:= + net-dns/c-ares:= +" +DEPEND="${RDEPEND} + test? ( dev-libs/check ) +" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.9.8.1-force_openssl.patch +) + +src_prepare() { + default + append-cppflags -D_GNU_SOURCE + eautoreconf +}
