summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-13 21:58:00 -0400
committerSam James <sam@gentoo.org>2024-03-14 01:59:53 +0000
commite5cafe8cd5bf44bdaa250ae959b2774a90366329 (patch)
treed498ac0b2bcca2d2c8230b199ae18df74e1a7290 /net-misc
parentnet-misc/portspoof: mark as LTO-unsafe, strict-aliasing unsafe (diff)
downloadgentoo-e5cafe8cd5bf44bdaa250ae959b2774a90366329.tar.gz
gentoo-e5cafe8cd5bf44bdaa250ae959b2774a90366329.tar.bz2
gentoo-e5cafe8cd5bf44bdaa250ae959b2774a90366329.zip
net-misc/portspoof: sync live
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/portspoof/portspoof-9999.ebuild20
1 files changed, 17 insertions, 3 deletions
diff --git a/net-misc/portspoof/portspoof-9999.ebuild b/net-misc/portspoof/portspoof-9999.ebuild
index aa2143647342..d0fed28eeb2b 100644
--- a/net-misc/portspoof/portspoof-9999.ebuild
+++ b/net-misc/portspoof/portspoof-9999.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
+
+inherit flag-o-matic
DESCRIPTION="return SYN+ACK for every port connection attempt"
HOMEPAGE="http://portspoof.org/"
@@ -18,6 +20,7 @@ else
fi
src_prepare() {
+ default
if [[ ${PV} == "9999" ]] ; then
mv configure.in configure.ac || die
eautoreconf
@@ -26,7 +29,18 @@ src_prepare() {
'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_configure() {
+ # -Werror=strict-aliasing
+ # https://bugs.gentoo.org/861698
+ # https://github.com/drk1wi/portspoof/issues/48
+ #
+ # Do not trust it with LTO either
+ append-flags -fno-strict-aliasing
+ filter-lto
+
+ default
}
src_install() {