--- /dev/null
+--- atftp-0.8.0/configure.ac.orig 2023-12-25 17:03:51.624746674 +0100
++++ atftp-0.8.0/configure.ac 2023-12-25 17:31:38.212384661 +0100
+@@ -149,7 +149,7 @@ if test x$libwrap = xtrue; then
+ dnl test here. We automatically link against nsl since libwrap is not
+ dnl already linked with it on all systems.
+ orig_LIBS="$LIBS"
+- LIBS="-lnsl -lwrap"
++ LIBS="-lwrap"
+ AC_MSG_CHECKING([for hosts_ctl in -lwrap])
+ AC_TRY_LINK([
+ #include <tcpd.h>
+@@ -158,7 +158,7 @@ if test x$libwrap = xtrue; then
+ ],
+ hosts_ctl("", STRING_UNKNOWN, STRING_UNKNOWN, STRING_UNKNOWN);
+ ,
+- LIBWRAP="-lnsl -lwrap"
++ LIBWRAP="-lwrap"
+ LIBS="$orig_LIBS"
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_WRAP], 1, "Support for libwrap")
Summary(pl.UTF-8): Klient TFTP (Trivial File Transfer Protocol)
Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
Name: atftp
-Version: 0.7.2
-Release: 2
-License: GPL
+Version: 0.8.0
+Release: 1
+License: GPL v2+
Group: Applications/Networking
-Source0: http://downloads.sourceforge.net/project/atftp/%{name}-%{version}.tar.gz
-# Source0-md5: eb358eb1af10ae5dc51095cd10b6738b
+Source0: https://downloads.sourceforge.net/project/atftp/%{name}-%{version}.tar.gz
+# Source0-md5: 852f4c0773ae8c429ec4f74413eabe1b
Source1: %{name}d.inetd
Source2: %{name}d.init
Source3: %{name}d.sysconfig
Patch0: %{name}-tinfo.patch
-Patch1: %{name}-clk.patch
-Patch2: no-inline.patch
-URL: http://sourceforge.net/projects/atftp/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+Patch1: %{name}-link.patch
+URL: https://sourceforge.net/projects/atftp/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.7
BuildRequires: libwrap-devel
+BuildRequires: ncurses-devel
+BuildRequires: pcre2-8-devel
BuildRequires: readline-devel
BuildRequires: rpmbuild(macros) >= 1.268
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Requires: atftpd-common = %{epoch}:%{version}-%{release}
Requires: rc-inetd >= 0.8.1
Provides: tftpdaemon
-Obsoletes: atftpd
+Obsoletes: atftpd < 0.7-9
Obsoletes: inetutils-tftpd
Obsoletes: tftp-server
Obsoletes: tftpd
Requires: atftpd-common = %{epoch}:%{version}-%{release}
Requires: rc-scripts
Provides: tftpdaemon
-Obsoletes: atftpd
+Obsoletes: atftpd < 0.7-9
Obsoletes: inetutils-tftpd
Obsoletes: tftp-server
Obsoletes: tftpd
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
-sed -i -e 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#g' configure.ac
-sed -i -e 's#CFLAGS="-g -Wall -D_REENTRANT"##g' configure.ac
+#sed -i -e 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#g' configure.ac
+#sed -i -e 's#CFLAGS="-g -Wall -D_REENTRANT"##g' configure.ac
%build
-%{__libtoolize}
%{__aclocal}
-%{__automake}
%{__autoconf}
-
+%{__autoheader}
+%{__automake}
%configure \
+ --enable-libpcre \
--enable-libreadline \
--enable-libwrap \
- --enable-libpcre \
--enable-mtftp
%{__make}
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%doc BUGS Changelog FAQ README README.MCAST README.PCRE TODO docs/pxespec.txt
+%attr(755,root,root) %{_bindir}/atftp
+%{_mandir}/man1/atftp.1*
%files -n atftpd-common
%defattr(644,root,root,755)
-%doc README FAQ
-%attr(755,root,root) %{_sbindir}/*
+%doc BUGS Changelog FAQ README README.MCAST README.PCRE TODO docs/pxespec.txt
+%attr(755,root,root) %{_sbindir}/atftpd
%attr(750,tftp,root) %dir /var/lib/tftp
-%{_mandir}/man8/*
+%{_mandir}/man8/atftpd.8*
%files -n atftpd-inetd
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
+%attr(755,root,root) %{_sbindir}/in.tftpd
+%{_mandir}/man8/in.tftpd.8*
%files -n atftpd-standalone
%defattr(644,root,root,755)
+++ /dev/null
---- atftp-0.7.1/argz.h~ 2011-03-11 07:51:24.000000000 +0100
-+++ atftp-0.7.1/argz.h 2016-10-18 19:25:56.408888344 +0200
-@@ -177,7 +177,7 @@
- extern char *argz_next (__const char *__restrict __argz, size_t __argz_len,
- __const char *__restrict __entry) __THROW;
-
--#ifdef __USE_EXTERN_INLINES
-+#if 0
- extern inline char *
- __argz_next (__const char *__argz, size_t __argz_len,
- __const char *__entry)
---- atftp-0.7.1/tftpd.h~ 2011-03-11 07:51:24.000000000 +0100
-+++ atftp-0.7.1/tftpd.h 2016-10-18 19:27:33.845636877 +0200
-@@ -93,7 +93,7 @@
- /*
- * Defined in tftpd_list.c, operation on client structure list.
- */
--inline void tftpd_clientlist_ready(struct thread_data *thread);
-+void tftpd_clientlist_ready(struct thread_data *thread);
- void tftpd_clientlist_remove(struct thread_data *thread,
- struct client_info *client);
- void tftpd_clientlist_free(struct thread_data *thread);
---- atftp-0.7.1/tftp_def.h~ 2011-03-24 09:24:18.000000000 +0100
-+++ atftp-0.7.1/tftp_def.h 2016-10-18 19:26:51.552296429 +0200
-@@ -50,7 +50,7 @@
-
- int timeval_diff(struct timeval *res, struct timeval *t1, struct timeval *t0);
- int print_eng(double value, char *string, int size, char *format);
--inline char *Strncpy(char *to, const char *from, size_t size);
-+char *Strncpy(char *to, const char *from, size_t size);
- int Gethostbyname(char *addr, struct hostent *host);
-
- char *sockaddr_print_addr(const struct sockaddr_storage *, char *, size_t);