1 |
commit: 3434fdb7c1eba3721771dece9523b70d9775bbe1 |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Mon Sep 13 23:27:44 2021 +0000 |
4 |
Commit: Tobias Klausmann <klausman <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 14 20:15:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3434fdb7 |
7 |
|
8 |
net-ftp/atftp: version bump to 0.7.5 |
9 |
|
10 |
Version 0.7.5 (Bugfix, Security Fix Release) |
11 |
|
12 |
fix many bugs, fix denial-of-service buffer overflow CVE-2021-41054 |
13 |
new feature: add an option to prevent the Sorcerer's Apprentice Syndrome |
14 |
|
15 |
Closes: https://bugs.gentoo.org/813079 |
16 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
17 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
18 |
Signed-off-by: Tobias Klausmann <klausman <AT> gentoo.org> |
19 |
|
20 |
net-ftp/atftp/Manifest | 1 + |
21 |
net-ftp/atftp/atftp-0.7.5.ebuild | 66 ++++++++++++++++++++++++++++ |
22 |
net-ftp/atftp/files/atftp-0.7.5-CFLAGS.patch | 32 ++++++++++++++ |
23 |
3 files changed, 99 insertions(+) |
24 |
|
25 |
diff --git a/net-ftp/atftp/Manifest b/net-ftp/atftp/Manifest |
26 |
index 787aa4f6ca3..1002d6b53aa 100644 |
27 |
--- a/net-ftp/atftp/Manifest |
28 |
+++ b/net-ftp/atftp/Manifest |
29 |
@@ -1 +1,2 @@ |
30 |
DIST atftp-0.7.4.tar.gz 249699 BLAKE2B 8aa30df1cc92982b0e718cd9bcc68cf397e29f6abb795cf9fdfd0b9942d9a7dd16beafb24d69d7339f9ab4cbda16404eadf40096a8dfdb684fbc7ec1c7f81c9f SHA512 f9ff9b72b7d1d659d4ca00d990c28b9da8dea0228e66610ee2d17a3959fcd142998a7539f8ea68effdfe830d2f5e68c154a2911afb9cad52acd24a6a642d76a4 |
31 |
+DIST atftp-0.7.5.tar.gz 253626 BLAKE2B aa0a0311d29fd52b77f8ae021407221f815a39fe85cabac36ee18dce8918a5b0accda455e2df5fecf34f09e93e583bfbc86162b60a7237bd6d34b0c658ec2970 SHA512 457101136e59f7a1657ce591e9ea678ab9091a59219d41b6c522fad4a3555c5cbcb8c9e0c3267fd871940d99b5f8673ab4ce5ec9737dee52f017e5c80a4e59d7 |
32 |
|
33 |
diff --git a/net-ftp/atftp/atftp-0.7.5.ebuild b/net-ftp/atftp/atftp-0.7.5.ebuild |
34 |
new file mode 100644 |
35 |
index 00000000000..001bba2e825 |
36 |
--- /dev/null |
37 |
+++ b/net-ftp/atftp/atftp-0.7.5.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}/${P}-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 |
+} |
105 |
|
106 |
diff --git a/net-ftp/atftp/files/atftp-0.7.5-CFLAGS.patch b/net-ftp/atftp/files/atftp-0.7.5-CFLAGS.patch |
107 |
new file mode 100644 |
108 |
index 00000000000..4f68d97f800 |
109 |
--- /dev/null |
110 |
+++ b/net-ftp/atftp/files/atftp-0.7.5-CFLAGS.patch |
111 |
@@ -0,0 +1,32 @@ |
112 |
+--- a/configure.ac |
113 |
++++ b/configure.ac |
114 |
+@@ -69,29 +69,6 @@ |
115 |
+ dnl Check for AIX |
116 |
+ AC_AIX |
117 |
+ |
118 |
+-CFLAGS="$CFLAGS -g -Wall -D_REENTRANT" |
119 |
+- |
120 |
+-if test x$debug = xtrue; then |
121 |
+- CFLAGS="$CFLAGS -O0 -DDEBUG" |
122 |
+-else |
123 |
+- if test -n "$auto_cflags"; then |
124 |
+- if test -n "$GCC"; then |
125 |
+- CFLAGS="$CFLAGS -g -O2 -Wall -Wno-implicit" |
126 |
+- else |
127 |
+- case "$host_os" in |
128 |
+- *hpux*) CFLAGS="$CFLAGS +O3" |
129 |
+- ;; |
130 |
+- *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" |
131 |
+- ;; |
132 |
+- *) CFLAGS="$CFLAGS -O2" |
133 |
+- ;; |
134 |
+- esac |
135 |
+- fi |
136 |
+- else |
137 |
+- CFLAGS="$CFLAGS -O2" |
138 |
+- fi |
139 |
+-fi |
140 |
+- |
141 |
+ case "$CC" in |
142 |
+ gcc*|clang*) CFLAGS="$CFLAGS -std=gnu89" |
143 |
+ ;; |