From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B6E3C13835A for ; Sat, 8 May 2021 12:47:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DACE0E069C; Sat, 8 May 2021 12:47:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B734CE069C for ; Sat, 8 May 2021 12:47:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B782F33FD24 for ; Sat, 8 May 2021 12:47:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57D785D2 for ; Sat, 8 May 2021 12:47:35 +0000 (UTC) From: "Sergey Popov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergey Popov" Message-ID: <1620478037.bd24aaf2170682659f6998ca3eb8b04e3b18c3c2.pinkbyte@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/rtsp-conntrack/files/, net-firewall/rtsp-conntrack/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-firewall/rtsp-conntrack/Manifest net-firewall/rtsp-conntrack/files/rtsp-conntrack-4.18-linux-5.3.patch net-firewall/rtsp-conntrack/rtsp-conntrack-4.18-r1.ebuild X-VCS-Directories: net-firewall/rtsp-conntrack/ net-firewall/rtsp-conntrack/files/ X-VCS-Committer: pinkbyte X-VCS-Committer-Name: Sergey Popov X-VCS-Revision: bd24aaf2170682659f6998ca3eb8b04e3b18c3c2 X-VCS-Branch: master Date: Sat, 8 May 2021 12:47:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 16001899-5c58-4038-a883-a0c04de943d6 X-Archives-Hash: 5cf3ee997fcf7310c0277630e03d8459 commit: bd24aaf2170682659f6998ca3eb8b04e3b18c3c2 Author: Sergey Popov gentoo org> AuthorDate: Sat May 8 12:47:17 2021 +0000 Commit: Sergey Popov gentoo org> CommitDate: Sat May 8 12:47:17 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd24aaf2 net-firewall/rtsp-conntrack: drop old version Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Sergey Popov gentoo.org> net-firewall/rtsp-conntrack/Manifest | 1 - .../files/rtsp-conntrack-4.18-linux-5.3.patch | 122 --------------------- .../rtsp-conntrack/rtsp-conntrack-4.18-r1.ebuild | 28 ----- 3 files changed, 151 deletions(-) diff --git a/net-firewall/rtsp-conntrack/Manifest b/net-firewall/rtsp-conntrack/Manifest index c155bee3114..4d17074c63e 100644 --- a/net-firewall/rtsp-conntrack/Manifest +++ b/net-firewall/rtsp-conntrack/Manifest @@ -1,2 +1 @@ -DIST rtsp-conntrack-4.18.tar.gz 12369 BLAKE2B ef5b3947ba563f3bc507e6ab1764a68ae14bdee228c37608fe4e0f0a0be5356b4cdcbcdeb7f47f7a0a36d64b77de8124f3ec4b0a14fa67747c88c3e4be9042f5 SHA512 c8f176153f2a1bc32702d309247641b80ff98d0b1b5cc4d2e05bf4e7a04be00ea4c2e0afef0fa398768f61a84c984528ddabae730931d3156f174b097c8566db DIST rtsp-conntrack-5.3.tar.gz 12409 BLAKE2B 91bc82f404c3d5b32100684625f5fc9641d60df457c25b2bf93988bad7acd76fdc46e2e76d12dccf42eb61bd3f724752a974728a8b229bb59df6bec545e22151 SHA512 660cf212cb5802f0d9a02c45948d02729e686fe96e12d5e2294f5d9a588d872677d4f8ef39f4abac6ec3adb2ef5e1c884858e63275a84e1035d13c21537530ab diff --git a/net-firewall/rtsp-conntrack/files/rtsp-conntrack-4.18-linux-5.3.patch b/net-firewall/rtsp-conntrack/files/rtsp-conntrack-4.18-linux-5.3.patch deleted file mode 100644 index 66a35019817..00000000000 --- a/net-firewall/rtsp-conntrack/files/rtsp-conntrack-4.18-linux-5.3.patch +++ /dev/null @@ -1,122 +0,0 @@ -From 57394bcd68459d3c31cc605e538824a41ba490d9 Mon Sep 17 00:00:00 2001 -From: Seth Forshee -Date: Fri, 30 Aug 2019 09:10:23 -0500 -Subject: [PATCH] Fix build with Linux 5.3 - -In Linux 5.3 nf_ct_expect_related() gained a flags argument. -Calls to this function are sprinkled throughout a couple of -source files, so rather than adding a #if to each call site, add -a wrapper which will use the appropriate prototype. - -Signed-off-by: Seth Forshee ---- - netfilter_helpers.h | 11 +++++++++++ - nf_conntrack_rtsp.c | 5 ++--- - nf_nat_rtsp.c | 11 +++++------ - 3 files changed, 18 insertions(+), 9 deletions(-) - -diff --git a/netfilter_helpers.h b/netfilter_helpers.h -index 903f374..d8b8ce3 100644 ---- a/netfilter_helpers.h -+++ b/netfilter_helpers.h -@@ -14,6 +14,8 @@ - /* Only include these functions for kernel code. */ - #ifdef __KERNEL__ - -+#include -+ - #include - #define iseol(c) ( (c) == '\r' || (c) == '\n' ) - -@@ -128,6 +130,15 @@ nf_nextline(char* p, uint len, uint* poff, uint* plineoff, uint* plinelen) - } - #endif /* NF_NEED_NEXTLINE */ - -+static inline int rtsp_nf_ct_expect_related(struct nf_conntrack_expect *expect) -+{ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,3,0) -+ return nf_ct_expect_related(expect, 0); -+#else -+ return nf_ct_expect_related(expect); -+#endif -+} -+ - #endif /* __KERNEL__ */ - - #endif /* _NETFILTER_HELPERS_H */ -diff --git a/nf_conntrack_rtsp.c b/nf_conntrack_rtsp.c -index 8a2f182..300be0a 100644 ---- a/nf_conntrack_rtsp.c -+++ b/nf_conntrack_rtsp.c -@@ -41,7 +41,6 @@ - #include - - #include --#include - #include - #include "nf_conntrack_rtsp.h" - -@@ -396,8 +395,8 @@ help_out(struct sk_buff *skb, unsigned char *rb_ptr, unsigned int datalen, - &expinfo, rtp_exp, rtcp_exp); - #endif - else { -- if (nf_ct_expect_related(rtp_exp) == 0) { -- if (rtcp_exp && nf_ct_expect_related(rtcp_exp) != 0) { -+ if (rtsp_nf_ct_expect_related(rtp_exp) == 0) { -+ if (rtcp_exp && rtsp_nf_ct_expect_related(rtcp_exp) != 0) { - nf_ct_unexpect_related(rtp_exp); - pr_info("nf_conntrack_expect_related failed for rtcp\n"); - ret = NF_DROP; -diff --git a/nf_nat_rtsp.c b/nf_nat_rtsp.c -index 59ea4fd..02b46c5 100644 ---- a/nf_nat_rtsp.c -+++ b/nf_nat_rtsp.c -@@ -46,7 +46,6 @@ - #endif - #include - #include "nf_conntrack_rtsp.h" --#include - - #include - #include -@@ -202,7 +201,7 @@ rtsp_mangle_tran(enum ip_conntrack_info ctinfo, - case pb_single: - for (loport = prtspexp->loport; loport != 0; loport++) { /* XXX: improper wrap? */ - rtp_t->dst.u.udp.port = htons(loport); -- if (nf_ct_expect_related(rtp_exp) == 0) { -+ if (rtsp_nf_ct_expect_related(rtp_exp) == 0) { - pr_debug("using port %hu\n", loport); - break; - } -@@ -215,12 +214,12 @@ rtsp_mangle_tran(enum ip_conntrack_info ctinfo, - case pb_range: - for (loport = prtspexp->loport; loport != 0; loport += 2) { /* XXX: improper wrap? */ - rtp_t->dst.u.udp.port = htons(loport); -- if (nf_ct_expect_related(rtp_exp) != 0) { -+ if (rtsp_nf_ct_expect_related(rtp_exp) != 0) { - continue; - } - hiport = loport + 1; - rtcp_exp->tuple.dst.u.udp.port = htons(hiport); -- if (nf_ct_expect_related(rtcp_exp) != 0) { -+ if (rtsp_nf_ct_expect_related(rtcp_exp) != 0) { - nf_ct_unexpect_related(rtp_exp); - continue; - } -@@ -243,14 +242,14 @@ rtsp_mangle_tran(enum ip_conntrack_info ctinfo, - case pb_discon: - for (loport = prtspexp->loport; loport != 0; loport++) { /* XXX: improper wrap? */ - rtp_t->dst.u.udp.port = htons(loport); -- if (nf_ct_expect_related(rtp_exp) == 0) { -+ if (rtsp_nf_ct_expect_related(rtp_exp) == 0) { - pr_debug("using port %hu (1 of 2)\n", loport); - break; - } - } - for (hiport = prtspexp->hiport; hiport != 0; hiport++) { /* XXX: improper wrap? */ - rtp_t->dst.u.udp.port = htons(hiport); -- if (nf_ct_expect_related(rtp_exp) == 0) { -+ if (rtsp_nf_ct_expect_related(rtp_exp) == 0) { - pr_debug("using port %hu (2 of 2)\n", hiport); - break; - } diff --git a/net-firewall/rtsp-conntrack/rtsp-conntrack-4.18-r1.ebuild b/net-firewall/rtsp-conntrack/rtsp-conntrack-4.18-r1.ebuild deleted file mode 100644 index c2701dcf221..00000000000 --- a/net-firewall/rtsp-conntrack/rtsp-conntrack-4.18-r1.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit linux-mod - -DESCRIPTION="RTSP conntrack module for Netfilter" -HOMEPAGE="http://mike.it-loops.com/rtsp" -SRC_URI="https://github.com/maru-sama/rtsp-linux/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" - -S="${WORKDIR}/rtsp-linux-${PV}" - -PATCHES=( "${FILESDIR}/${P}-linux-5.3.patch" ) - -BUILD_TARGETS="all" -MODULE_NAMES=" - nf_conntrack_rtsp(net/netfilter::) - nf_nat_rtsp(net/ipv4/netfilter::)" -MODULESD_NF_CONNTRACK_RTSP_DOCS="README.rst" - -CONFIG_CHECK="NF_CONNTRACK" -WARNING_NF_CONNTRACK="You must enable NF_CONNTRACK in your kernel, otherwise ${PN} would not work" - -BUILD_PARAMS="KERNELDIR=${KERNEL_DIR} V=1"