commit:     ad64eef9d2891fef20baa9173fad6c6a2110986b
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 19 18:38:35 2020 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Thu Nov 19 18:38:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad64eef9

net-misc/portspoof: bug #717134

fix for bug #717134 and some minor ebuild fixes

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 net-misc/portspoof/portspoof-1.3.ebuild  | 8 +++++---
 net-misc/portspoof/portspoof-9999.ebuild | 8 +++++---
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/net-misc/portspoof/portspoof-1.3.ebuild 
b/net-misc/portspoof/portspoof-1.3.ebuild
index 7dc45df9264..48332848d89 100644
--- a/net-misc/portspoof/portspoof-1.3.ebuild
+++ b/net-misc/portspoof/portspoof-1.3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 DESCRIPTION="return SYN+ACK for every port connection attempt"
 HOMEPAGE="http://portspoof.org/";
@@ -15,7 +15,6 @@ RDEPEND="${DEPEND}"
 if [[ ${PV} == "9999" ]] ; then
        inherit git-r3 autotools
        EGIT_REPO_URI="https://github.com/drk1wi/${PN}.git";
-       KEYWORDS=""
 else
        SRC_URI="https://github.com/drk1wi/portspoof/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
@@ -23,11 +22,14 @@ fi
 
 src_prepare() {
        if [[ ${PV} == "9999" ]] ; then
+           mv configure.in configure.ac || die
                eautoreconf
        fi
        sed -i \
        's#/usr/local/bin/portspoof -D -c /usr/local/etc/portspoof.conf -s 
/usr/local/etc/portspoof_signatures#/usr/bin/portspoof -D -c 
/etc/portspoof.conf -s /etc/portspoof_signatures#'\
         system_files/init.d/portspoof.sh
+       sed -i '/#include <sys\/sysctl.h>/d' src/connection.h || die
+       eapply_user
 }
 
 src_install() {

diff --git a/net-misc/portspoof/portspoof-9999.ebuild 
b/net-misc/portspoof/portspoof-9999.ebuild
index 7dc45df9264..48332848d89 100644
--- a/net-misc/portspoof/portspoof-9999.ebuild
+++ b/net-misc/portspoof/portspoof-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
 DESCRIPTION="return SYN+ACK for every port connection attempt"
 HOMEPAGE="http://portspoof.org/";
@@ -15,7 +15,6 @@ RDEPEND="${DEPEND}"
 if [[ ${PV} == "9999" ]] ; then
        inherit git-r3 autotools
        EGIT_REPO_URI="https://github.com/drk1wi/${PN}.git";
-       KEYWORDS=""
 else
        SRC_URI="https://github.com/drk1wi/portspoof/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
@@ -23,11 +22,14 @@ fi
 
 src_prepare() {
        if [[ ${PV} == "9999" ]] ; then
+           mv configure.in configure.ac || die
                eautoreconf
        fi
        sed -i \
        's#/usr/local/bin/portspoof -D -c /usr/local/etc/portspoof.conf -s 
/usr/local/etc/portspoof_signatures#/usr/bin/portspoof -D -c 
/etc/portspoof.conf -s /etc/portspoof_signatures#'\
         system_files/init.d/portspoof.sh
+       sed -i '/#include <sys\/sysctl.h>/d' src/connection.h || die
+       eapply_user
 }
 
 src_install() {

Reply via email to