Diff ocserv-1.3.0-r11 with a ocserv-9999

/usr/portage/net-vpn/ocserv/ocserv-9999.ebuild 2026-04-10 12:17:39.967398863 +0300
1
# Copyright 2019-2025 Gentoo Authors
1
# Copyright 2019-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit linux-info systemd
6
inherit linux-info meson systemd
7 7

  
8 8
if [[ ${PV} == 9999 ]]; then
9
	inherit autotools git-r3
9
	inherit git-r3
10 10
	EGIT_REPO_URI="https://gitlab.com/openconnect/ocserv.git"
11 11
else
12 12
	inherit verify-sig
......
14 14
	BDEPEND="verify-sig? ( sec-keys/openpgp-keys-ocserv )"
15 15
	SRC_URI="https://www.infradead.org/ocserv/download/${P}.tar.xz
16 16
		verify-sig? ( https://www.infradead.org/ocserv/download/${P}.tar.xz.sig )"
17
	KEYWORDS="amd64 arm arm64 ppc64 ~riscv x86"
17
	KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
18 18
fi
19 19

  
20 20
DESCRIPTION="Openconnect SSL VPN server"
......
22 22

  
23 23
LICENSE="GPL-2"
24 24
SLOT="0"
25
IUSE="geoip kerberos +lz4 otp pam radius +seccomp systemd tcpd test"
25
IUSE="geoip kerberos +lz4 +nftables otp pam radius +seccomp systemd tcpd test"
26 26
RESTRICT="!test? ( test )"
27 27

  
28 28
BDEPEND+="
......
57 57
	systemd? ( sys-apps/systemd:0= )
58 58
	tcpd? ( sys-apps/tcp-wrappers:0= )
59 59
"
60
RDEPEND="${DEPEND}"
61

  
62
PATCHES=(
63
	"${FILESDIR}"/ocserv-1.3.0-seccomp-readlinkat.patch
64
)
60
RDEPEND="${DEPEND}
61
	nftables? ( net-firewall/nftables )
62
	!nftables? ( net-firewall/iptables )
63
"
65 64

  
66 65
CONFIG_CHECK="~TUN ~UNIX_DIAG"
67 66

  
68
src_prepare() {
69
	default
70
	if [[ ${PV} == 9999 ]]; then
71
		eautoreconf
72
	fi
73
}
74

  
75 67
src_configure() {
76
	local myconf=(
77
		--without-root-tests
78

  
79
		$(use_enable seccomp)
80
		$(use_enable systemd)
81

  
82
		$(use_with geoip)
83
		$(use_with kerberos gssapi)
84
		--without-llhttp
85
		$(use_with lz4)
86
		$(use_with otp liboath)
87
		$(use_with radius)
88
		$(use_with tcpd libwrap)
68
	local emesonargs=(
69
		--auto-features=disabled
70
		$(meson_feature pam)
71
		$(meson_feature radius)
72
		$(meson_feature kerberos gssapi)
73
		$(meson_feature otp liboath)
74
		-Dlibnl=enabled
75
		$(meson_feature geoip)
76
		$(meson_feature lz4)
77
		$(meson_feature seccomp)
78
		$(meson_feature systemd)
79
		$(meson_feature tcpd libwrap)
80
		-Dlocal-pcl=false
81
		-Droot-tests=false
82
		-Dfirewall-script=$(usex nftables nftables iptables)
89 83
	)
90
	econf "${myconf[@]}"
84
	meson_src_configure
91 85
}
92 86

  
93 87
src_test() {
94
	addwrite /proc
95 88
	if [[ ${LD_PRELOAD} == *libsandbox* ]]; then
96 89
		# https://bugs.gentoo.org/961961
97 90
		ewarn "Skipping tests: libsandbox in LD_PRELOAD"
98 91
		return
99 92
	fi
100
	default
93
	meson_src_test
101 94
}
102 95

  
103 96
src_install() {
104
	default
97
	meson_src_install
105 98

  
106 99
	dodoc doc/sample.{config,passwd}
107 100
	use otp && dodoc doc/sample.otp
Thank you!