summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/portspoof/portspoof-9999.ebuild')
-rw-r--r--net-misc/portspoof/portspoof-9999.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/net-misc/portspoof/portspoof-9999.ebuild b/net-misc/portspoof/portspoof-9999.ebuild
index 7dc45df92641..48332848d894 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() {