Сравнение binfind-0.0.3 с fetchmail-6.4.39

/usr/portage/net-mail/fetchmail/fetchmail-6.4.39.ebuild 2024-12-25 14:59:51.259270144 +0300
1
# Copyright 1999-2022 Gentoo Authors
1
# Copyright 1999-2024 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 systemd tmpfiles toolchain-funcs
7 7

  
8
DESCRIPTION="Search files for a byte sequence specified on the command line"
9
HOMEPAGE="https://www.lith.at/binfind/"
10
SRC_URI="https://www.lith.at/binfind/${P}.tar.gz"
8
DESCRIPTION="the legendary remote-mail retrieval and forwarding utility"
9
HOMEPAGE="https://www.fetchmail.info/"
10
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz"
11 11

  
12
LICENSE="GPL-2+"
12
LICENSE="GPL-2 public-domain"
13 13
SLOT="0"
14
KEYWORDS="~amd64 ~riscv ~x86"
14
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
15
IUSE="ssl nls kerberos tk selinux socks"
15 16

  
17
RDEPEND="acct-user/fetchmail
18
	ssl? ( >=dev-libs/openssl-3.0.9:= )
19
	kerberos? ( virtual/krb5 )
20
	nls? ( virtual/libintl )
21
	!elibc_glibc? ( sys-fs/e2fsprogs )
22
	socks? ( net-proxy/dante )"
23
DEPEND="${RDEPEND}
24
	app-arch/xz-utils
25
	app-alternatives/lex
26
	nls? ( sys-devel/gettext )"
27
RDEPEND+=" selinux? ( sec-policy/selinux-fetchmail )"
28

  
29
REQUIRED_USE="kerberos? ( ssl )"
30

  
31
DOCS="FAQ FEATURES NEWS NOTES README README.NTLM README.SSL* TODO"
32
HTML_DOCS="*.html"
16 33
PATCHES=(
17
	"${FILESDIR}"/${P}-clang16.patch
34
	"${FILESDIR}"/${PN}-6.3.26-python-optional.patch
18 35
)
36
S=${WORKDIR}/${P/_/.}
19 37

  
20 38
src_prepare() {
21 39
	default
40
	eautoreconf
41
}
42

  
43
src_configure() {
44
	export PYTHON=:
45

  
46
	econf \
47
		--enable-RPA \
48
		--enable-NTLM \
49
		--enable-SDPS \
50
		$(use_enable nls) \
51
		$(use_with ssl ssl "${EPREFIX}/usr") \
52
		$(use_with kerberos gssapi) \
53
		$(use_with kerberos kerberos5) \
54
		--without-hesiod \
55
		$(use_with socks)
56
}
57

  
58
src_compile() {
59
	emake AR="$(tc-getAR)"
60
}
61

  
62
src_install() {
63
	default
64

  
65
	newinitd "${FILESDIR}"/fetchmail.initd fetchmail
66
	newconfd "${FILESDIR}"/fetchmail.confd fetchmail
67

  
68
	systemd_dounit  "${FILESDIR}"/${PN}.service
69
	systemd_newunit "${FILESDIR}"/${PN}_at.service "${PN}@.service"
70
	dotmpfiles "${FILESDIR}"/${PN}.conf
71

  
72
	docinto contrib
73
	local f
74
	for f in contrib/* ; do
75
		[ -f "${f}" ] && dodoc "${f}"
76
	done
77
}
78

  
79
pkg_postinst() {
80
	tmpfiles_process ${PN}.conf
22 81

  
23
	eautoreconf #870832
82
	if [[ -z ${REPLACING_VERSIONS} ]]; then
83
		elog "Please see /etc/conf.d/fetchmail if you want to adjust"
84
		elog "the polling delay used by the fetchmail init script."
85
	fi
24 86
}
Спасибо!