Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/tftp-hpa/
Date: Wed, 26 Aug 2020 17:50:16
Message-Id: 1598464195.3c6b2db93a64564c572eceed7ca627b062c2aa5d.floppym@gentoo
1 commit: 3c6b2db93a64564c572eceed7ca627b062c2aa5d
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 26 17:49:37 2020 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 26 17:49:55 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6b2db9
7
8 net-ftp/tftp-hpa: several fixes
9
10 Fix dependencies.
11 Add blocker on net-misc/iputils[tftpd].
12 Apply patches correctly.
13 Use an array in src_configure.
14 Prevent automagic dep on libbsd for bsd_signal().
15 Install man page.
16
17 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
18
19 net-ftp/tftp-hpa/tftp-hpa-5.2-r2.ebuild | 28 ++++++++++++++--------------
20 1 file changed, 14 insertions(+), 14 deletions(-)
21
22 diff --git a/net-ftp/tftp-hpa/tftp-hpa-5.2-r2.ebuild b/net-ftp/tftp-hpa/tftp-hpa-5.2-r2.ebuild
23 index 239a1184ef6..3381ec42a76 100644
24 --- a/net-ftp/tftp-hpa/tftp-hpa-5.2-r2.ebuild
25 +++ b/net-ftp/tftp-hpa/tftp-hpa-5.2-r2.ebuild
26 @@ -14,33 +14,35 @@ SLOT="0"
27 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-macos"
28 IUSE="ipv6 readline selinux tcpd +client +server"
29
30 -CDEPEND="
31 +DEPEND="
32 readline? ( sys-libs/readline:0= )
33 tcpd? ( sys-apps/tcp-wrappers )
34 - "
35 +"
36
37 -DEPEND="${CDEPEND}
38 - app-arch/xz-utils
39 +RDEPEND="${DEPEND}
40 + selinux? ( sec-policy/selinux-tftp )
41 !net-ftp/atftp
42 - !net-ftp/uftpd"
43 -
44 -RDEPEND="${CDEPEND}
45 - selinux? ( sec-policy/selinux-tftp )"
46 + !net-ftp/uftpd
47 + server? ( !net-misc/iputils[tftpd(+)] )
48 +"
49
50 PATCHES=(
51 "${FILESDIR}"/tftp-hpa-5.2-gcc-10.patch
52 )
53
54 src_prepare() {
55 - eapply_user
56 + default
57 sed -i "/^AR/s:ar:$(tc-getAR):" MCONFIG.in || die
58 }
59
60 src_configure() {
61 - econf \
62 - $(use_with ipv6) \
63 - $(use_with tcpd tcpwrappers) \
64 + local myconf=(
65 + ac_cv_search_bsd_signal=no
66 + $(use_with ipv6)
67 + $(use_with tcpd tcpwrappers)
68 $(use_with readline)
69 + )
70 + econf "${myconf[@]}"
71 }
72
73 src_compile() {
74 @@ -64,8 +66,6 @@ src_install() {
75 if use server; then
76 emake INSTALLROOT="${D}" -C tftpd install
77
78 - rm "${ED}"/usr/share/man/man8/tftpd.8 || die
79 -
80 newconfd "${FILESDIR}"/in.tftpd.confd-0.44 in.tftpd
81 newinitd "${FILESDIR}"/in.tftpd.rc6 in.tftpd