Сравнение libnfs-5.0.2 с libnfs-8.0.0

/usr/portage/net-fs/libnfs/libnfs-8.0.0.ebuild 2026-09-28 20:03:05.800439295 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-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 autotools
6
inherit autotools dot-a linux-info
7 7

  
8 8
if [[ ${PV} == 9999 ]] ; then
9 9
	EGIT_REPO_URI="https://github.com/sahlberg/${PN}.git"
10 10
	inherit git-r3
11 11
else
12 12
	SRC_URI="https://github.com/sahlberg/${PN}/archive/${P}.tar.gz"
13
	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 x86"
13
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86"
14 14
	S="${WORKDIR}"/${PN}-${P}
15 15
fi
16 16

  
......
18 18
HOMEPAGE="https://github.com/sahlberg/libnfs"
19 19

  
20 20
LICENSE="LGPL-2.1 GPL-3"
21
SLOT="0/14" # sub-slot matches SONAME major
22
IUSE="examples static-libs utils"
21
SLOT="0/18" # sub-slot matches SONAME major
22
IUSE="gnutls kerberos static-libs utils"
23
# no test: The tests will ask for your password as it needs sudo access to
24
# run exportfs to create/remove the share we use for testing.
25

  
26
RDEPEND="
27
	gnutls? ( >=net-libs/gnutls-3.4.5:= )
28
	kerberos? ( virtual/krb5 )
29
"
30
DEPEND="
31
	${RDEPEND}
32
	sys-kernel/linux-headers
33
"
23 34

  
24 35
# net-libs/rpcsvc-proto for rpcgen called in build system
25
BDEPEND="net-libs/rpcsvc-proto
26
	virtual/pkgconfig"
36
BDEPEND="
37
	net-libs/rpcsvc-proto
38
	virtual/pkgconfig
39
"
40

  
41
pkg_setup() {
42
	if use gnutls; then
43
		CONFIG_CHECK="~TLS"
44
		ERROR_TLS="RPC-with-TLS requires TLS in-kernel support."
45
		linux-info_pkg_setup
46
	fi
47
}
27 48

  
28 49
src_prepare() {
50
	use static-libs && lto-guarantee-fat
29 51
	default
30

  
31 52
	eautoreconf
32 53
}
33 54

  
34 55
src_configure() {
35 56
	local myeconfargs=(
36 57
		--disable-werror
37
		$(use_enable static-libs static)
58
		$(use_enable gnutls tls)
59
		$(use_with kerberos libkrb5)
38 60
		$(use_enable utils)
61
		$(use_enable static-libs static)
39 62
	)
40 63

  
41 64
	econf "${myeconfargs[@]}"
......
44 67
src_install() {
45 68
	default
46 69

  
47
	if use examples; then
48
		# --enable-examples configure switch just compiles them
49
		# better install sources instead
50
		exeinto /usr/share/doc/${PF}/examples/
51
		for program in $(grep PROGRAMS examples/Makefile.am | cut -d= -f2); do
52
			doexe examples/${program}.c
53
		done
54
	fi
70
	use static-libs && strip-lto-bytecode
71

  
72
	rm examples/{CMakeLists.txt,Makefile*} || die
73
	dodoc -r examples
74
	docompress -x /usr/share/doc/${PF}/examples/
55 75

  
56 76
	find "${ED}" -name "*.la" -delete || die
57 77
}
Спасибо!