public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/ipt_netflow/
Date: Wed, 19 Aug 2020 08:38:50 +0000 (UTC)	[thread overview]
Message-ID: <1597826326.4d679ab1fa2373d13ef13d6ad644af512ceaef02.jer@gentoo> (raw)

commit:     4d679ab1fa2373d13ef13d6ad644af512ceaef02
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 19 08:36:47 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed Aug 19 08:38:46 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d679ab1

net-firewall/ipt_netflow: Install libip6t_NETFLOW.so

Package-Manager: Portage-3.0.3, Repoman-3.0.0
Closes: https://bugs.gentoo.org/737950
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 ...low-9999.ebuild => ipt_netflow-2.5.1-r1.ebuild} | 30 ++++++++++++----------
 net-firewall/ipt_netflow/ipt_netflow-9999.ebuild   |  7 +++--
 2 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-2.5.1-r1.ebuild
similarity index 83%
copy from net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
copy to net-firewall/ipt_netflow/ipt_netflow-2.5.1-r1.ebuild
index d24c48cebca..637824868f6 100644
--- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
+++ b/net-firewall/ipt_netflow/ipt_netflow-2.5.1-r1.ebuild
@@ -2,18 +2,18 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit git-r3 linux-info linux-mod toolchain-funcs
+inherit linux-info linux-mod toolchain-funcs
 
 DESCRIPTION="Netflow iptables module"
 HOMEPAGE="
 	https://sourceforge.net/projects/ipt-netflow
 	https://github.com/aabc/ipt-netflow
 "
-EGIT_REPO_URI="https://github.com/aabc/ipt-netflow"
+SRC_URI="https://github.com/aabc/ipt-netflow/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
 
 IUSE="debug natevents snmp"
 
@@ -27,7 +27,7 @@ DEPEND="${RDEPEND}
 "
 PATCHES=(
 	"${FILESDIR}/${PN}-2.0-configure.patch" # bug #455984
-	"${FILESDIR}/${PN}-9999-gentoo.patch"
+	"${FILESDIR}/${PN}-2.5-gentoo.patch"
 )
 
 pkg_setup() {
@@ -51,18 +51,17 @@ pkg_setup() {
 	linux-mod_pkg_setup
 }
 
-src_prepare() {
+src_unpack() {
 	default
 
-	# Fix incorrect module version in sources
-	sed -i \
-		-e '/IPT_NETFLOW_VERSION/s#"[0-9.]*"#"'${PV}'"#' \
-		ipt_NETFLOW.c || die
+	mv "${WORKDIR}"/${PN/_/-}-* "${WORKDIR}"/${P} || die
+}
+
+src_prepare() {
+	default
 
 	# Checking for directory is enough
-	sed -i \
-		-e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' \
-		configure || die
+	sed -i -e 's:-s /etc/snmp/snmpd.conf:-d /etc/snmp:' configure || die
 }
 
 do_conf() {
@@ -97,9 +96,12 @@ src_compile() {
 
 src_install() {
 	linux-mod_src_install
-	exeinto "${IPT_LIB}"
-	doexe libipt_NETFLOW.so
+
 	use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall
+
+	exeinto "${IPT_LIB}"
+	doexe libip{,6}t_NETFLOW.so
+
 	doheader ipt_NETFLOW.h
 	dodoc README*
 }

diff --git a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
index d24c48cebca..74ad5f1c71d 100644
--- a/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
+++ b/net-firewall/ipt_netflow/ipt_netflow-9999.ebuild
@@ -97,9 +97,12 @@ src_compile() {
 
 src_install() {
 	linux-mod_src_install
-	exeinto "${IPT_LIB}"
-	doexe libipt_NETFLOW.so
+
 	use snmp && emake DESTDIR="${D}" SNMPTGSO="/usr/$(get_libdir)/snmp/dlmod/snmp_NETFLOW.so" sinstall
+
+	exeinto "${IPT_LIB}"
+	doexe libip{,6}t_NETFLOW.so
+
 	doheader ipt_NETFLOW.h
 	dodoc README*
 }


             reply	other threads:[~2020-08-19  8:38 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19  8:38 Jeroen Roovers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-08  7:35 [gentoo-commits] repo/gentoo:master commit in: net-firewall/ipt_netflow/ Sergey Popov
2023-09-08  7:35 Sergey Popov
2023-06-27  9:12 Sergey Popov
2022-03-28  7:30 Sergey Popov
2021-03-10  1:24 Sam James
2020-12-02  7:19 Sergey Popov
2020-11-15 15:05 Sergey Popov
2020-11-15 15:05 Sergey Popov
2020-08-12  6:47 Jeroen Roovers
2020-04-25  8:32 Jeroen Roovers
2019-12-29 13:21 Jeroen Roovers
2019-12-27 18:51 Jeroen Roovers
2019-12-27 18:51 Jeroen Roovers
2019-06-23 13:38 Jeroen Roovers
2019-06-23 13:38 Jeroen Roovers
2019-06-20  7:10 Jeroen Roovers
2019-06-19  5:35 Jeroen Roovers
2019-06-03  9:10 Jeroen Roovers
2019-02-25 19:19 Jeroen Roovers
2018-06-15 16:01 Sergey Popov
2018-03-20 13:52 Sergey Popov
2018-02-13 10:59 Jeroen Roovers
2017-10-16  8:56 Sergey Popov
2017-10-16  8:56 Sergey Popov
2017-10-03  8:15 Sergey Popov
2017-09-29 14:51 Sergey Popov
2016-09-22  5:16 Sergey Popov
2016-09-22  5:16 Sergey Popov
2016-05-12  9:51 Sergey Popov
2016-05-12  9:51 Sergey Popov
2016-03-02  8:12 Sergey Popov
2016-03-02  7:56 Sergey Popov
2016-01-28 19:41 Sergey Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1597826326.4d679ab1fa2373d13ef13d6ad644af512ceaef02.jer@gentoo \
    --to=jer@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox