Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/atftp/
Date: Tue, 02 Feb 2021 13:08:44
Message-Id: 1612271191.62ed671b337aa94c1ec37d5a0a86e9bb38e81672.juippis@gentoo
1 commit: 62ed671b337aa94c1ec37d5a0a86e9bb38e81672
2 Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net>
3 AuthorDate: Tue Feb 2 09:24:40 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 2 13:06:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62ed671b
7
8 net-ftp/atftp: version bump to 0.7.4
9
10 new version fixes security issues upstream
11 fix self-testing script test.sh
12 fix compile against sys-libs/musl
13
14 Closes: https://bugs.gentoo.org/713672
15 Closes: https://bugs.gentoo.org/687536
16 Package-Manager: Portage-3.0.12, Repoman-3.0.2
17 Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
18 Closes: https://github.com/gentoo/gentoo/pull/19302
19 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
20
21 net-ftp/atftp/Manifest | 1 +
22 net-ftp/atftp/atftp-0.7.4.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++
23 2 files changed, 67 insertions(+)
24
25 diff --git a/net-ftp/atftp/Manifest b/net-ftp/atftp/Manifest
26 index eccbf7737c8..0784eea0d36 100644
27 --- a/net-ftp/atftp/Manifest
28 +++ b/net-ftp/atftp/Manifest
29 @@ -1 +1,2 @@
30 DIST atftp-0.7.2.tar.gz 248038 BLAKE2B 3ca44624bf989009c2ebd0ae97927b0784e3c617a79a1bd00212a72a185302cf84f51c8bcda2012981d67cfed4d241b70f8719e78155207608f07a2227e6c437 SHA512 d602bb69451175a36e619abcff412ab1f6d0e7baf8c3f9a2b32081530fbc5816157404b80d42a8b6caa89cc83675b5cbeefcd57a5d98b8f5b43c6254b20ef28b
31 +DIST atftp-0.7.4.tar.gz 249699 BLAKE2B 8aa30df1cc92982b0e718cd9bcc68cf397e29f6abb795cf9fdfd0b9942d9a7dd16beafb24d69d7339f9ab4cbda16404eadf40096a8dfdb684fbc7ec1c7f81c9f SHA512 f9ff9b72b7d1d659d4ca00d990c28b9da8dea0228e66610ee2d17a3959fcd142998a7539f8ea68effdfe830d2f5e68c154a2911afb9cad52acd24a6a642d76a4
32
33 diff --git a/net-ftp/atftp/atftp-0.7.4.ebuild b/net-ftp/atftp/atftp-0.7.4.ebuild
34 new file mode 100644
35 index 00000000000..1a1fe73e17e
36 --- /dev/null
37 +++ b/net-ftp/atftp/atftp-0.7.4.ebuild
38 @@ -0,0 +1,66 @@
39 +# Copyright 2021 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +inherit autotools flag-o-matic systemd
44 +
45 +DESCRIPTION="Advanced TFTP implementation client/server"
46 +HOMEPAGE="https://sourceforge.net/projects/atftp/"
47 +SRC_URI="mirror://sourceforge/atftp/${P}.tar.gz"
48 +
49 +LICENSE="GPL-2+"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~s390 ~sparc ~x86"
52 +IUSE="selinux tcpd readline pcre"
53 +
54 +DEPEND="tcpd? ( sys-apps/tcp-wrappers )
55 + readline? ( sys-libs/readline:0= )
56 + pcre? ( dev-libs/libpcre )"
57 +RDEPEND="${DEPEND}
58 + !net-ftp/tftp-hpa
59 + !net-ftp/uftpd
60 + selinux? ( sec-policy/selinux-tftp )"
61 +BDEPEND=""
62 +
63 +PATCHES=(
64 + "${FILESDIR}/atftp-0.7.2-CFLAGS.patch"
65 +)
66 +
67 +src_prepare() {
68 + append-cppflags -D_REENTRANT -DRATE_CONTROL
69 + # fix #561720 by restoring pre-GCC5 inline semantics
70 + append-cflags -std=gnu89
71 +
72 + default
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + econf \
78 + $(use_enable tcpd libwrap) \
79 + $(use_enable readline libreadline) \
80 + $(use_enable pcre libpcre) \
81 + --enable-mtftp
82 +}
83 +
84 +src_test() {
85 + cd "${S}"/test || die
86 + TEMPDIR=. ./test.sh || die
87 +}
88 +
89 +src_install() {
90 + default
91 +
92 + newinitd "${FILESDIR}"/atftp.init atftp
93 + newconfd "${FILESDIR}"/atftp.confd atftp
94 +
95 + systemd_dounit "${FILESDIR}"/atftp.service
96 + systemd_install_serviced "${FILESDIR}"/atftp.service.conf
97 +
98 + dodoc README* BUGS FAQ Changelog INSTALL TODO
99 + dodoc "${S}"/docs/*
100 +
101 + docinto test
102 + cd "${S}"/test || die
103 + dodoc load.sh mtftp.conf pcre_pattern.txt test.sh test_suite.txt
104 +}