Сравнение arping-2.22 с arping-2.23

/usr/portage/net-analyzer/arping/arping-2.23.ebuild 2023-10-09 14:52:33.304368446 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit autotools fcaps
7 7

  
8 8
DESCRIPTION="A utility to see if a specific IP is taken and what MAC owns it"
9 9
HOMEPAGE="http://www.habets.pp.se/synscan/programs.php?prog=arping"
10
SRC_URI="https://github.com/ThomasHabets/${PN}/archive/${P}.tar.gz"
11
S="${WORKDIR}/${PN}-${P}"
10
if [[ ${PV} == 9999 ]] ; then
11
	EGIT_REPO_URI="https://github.com/ThomasHabets/arping"
12
	inherit git-r3
13
else
14
	SRC_URI="https://github.com/ThomasHabets/${PN}/archive/${P}.tar.gz"
15
	KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 sparc ~x86 ~amd64-linux ~x86-linux"
16

  
17
	S="${WORKDIR}/${PN}-${P}"
18
fi
12 19

  
13 20
LICENSE="GPL-2"
14 21
SLOT="2"
15
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux"
16
IUSE="test"
22
IUSE="+seccomp test"
17 23
RESTRICT="!test? ( test )"
18 24

  
19
RDEPEND="
20
	net-libs/libpcap
25
RDEPEND="net-libs/libpcap
21 26
	net-libs/libnet:1.1
22
	!net-misc/iputils[arping(+)]
23
"
24
DEPEND="
25
	${RDEPEND}
27
	sys-libs/libcap
28
	seccomp? ( sys-libs/libseccomp )
29
	!net-misc/iputils[arping(+)]"
30
DEPEND="${RDEPEND}
26 31
	test? (
27 32
		dev-libs/check
28 33
		dev-python/subunit
29
	)
30
"
34
	)"
31 35

  
32 36
FILECAPS=( cap_net_raw usr/sbin/arping )
33 37

  
38
PATCHES=(
39
	"${FILESDIR}"/${PN}-2.23-configure.ac-seccomp-disable.patch
40
)
41

  
34 42
src_prepare() {
35 43
	default
44

  
36 45
	eautoreconf
37 46
}
47

  
48
src_configure() {
49
	local myeconfargs=(
50
		# Controls whether seccomp is used by default
51
		$(use_enable seccomp)
52
	)
53

  
54
	# Needed to actually make it optional and not automagic
55
	# (and we want it optional for the non-seccomp arches, like sparc)
56
	export ac_cv_lib_seccomp_seccomp_init=$(usex seccomp)
57
	export ac_cv_header_seccomp_h=$(usex seccomp)
58

  
59
	econf "${myeconfargs[@]}"
60
}
Спасибо!