Ana Guerrero 2024-09-29 16:09:18 +00:00 committed by Git OBS Bridge
commit 8b4255fccd
3 changed files with 12 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Sep 24 18:33:26 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Delete /usr/sbin/rc* symlink & specfile housekeeping
- Make atftpd.socket listen on AF_INET6 as well
- Deactivate FORTIFY_SOURCE for the time being due to a glibc bug
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 14 11:02:03 UTC 2022 - David Anes <david.anes@suse.com> Wed Sep 14 11:02:03 UTC 2022 - David Anes <david.anes@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package atftp # spec file for package atftp
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -49,7 +49,6 @@ Recommends: logrotate
Conflicts: tftp Conflicts: tftp
Provides: tftp(client) Provides: tftp(client)
Provides: tftp(server) Provides: tftp(server)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: systemd-rpm-macros BuildRequires: systemd-rpm-macros
%description %description
@ -66,16 +65,15 @@ boot of hundreds of machines simultaneously.
%build %build
autoreconf -fi autoreconf -fi
CFLAGS="%optflags -fgnu89-inline" # https://sourceware.org/bugzilla/show_bug.cgi?id=32206
CFLAGS="%optflags -fgnu89-inline -U_FORTIFY_SOURCE"
%configure %configure
make %{?_smp_mflags} %make_build
%install %install
%make_install %make_install
# SuSE rc
install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/atftpd.service install -D -m 0644 %{SOURCE5} %{buildroot}/%{_unitdir}/atftpd.service
install -D -m 0644 %{SOURCE6} %{buildroot}/%{_unitdir}/atftpd.socket install -D -m 0644 %{SOURCE6} %{buildroot}/%{_unitdir}/atftpd.socket
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcatftpd
install -D -m 0644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.atftpd install -D -m 0644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.atftpd
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
mkdir -p %{buildroot}%{_distconfdir}/logrotate.d mkdir -p %{buildroot}%{_distconfdir}/logrotate.d
@ -119,13 +117,11 @@ done
%endif %endif
%files %files
%defattr(-,root,root)
%license LICENSE %license LICENSE
%doc BUGS FAQ README README.MCAST README.PCRE TODO %doc BUGS FAQ README README.MCAST README.PCRE TODO
%{_bindir}/atftp %{_bindir}/atftp
%{_sbindir}/atftpd %{_sbindir}/atftpd
%{_sbindir}/in.tftpd %{_sbindir}/in.tftpd
%{_sbindir}/rcatftpd
%{_unitdir}/atftpd.service %{_unitdir}/atftpd.service
%{_unitdir}/atftpd.socket %{_unitdir}/atftpd.socket
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500

View File

@ -2,7 +2,7 @@
Description=Advanced tftp Server Activation Socket Description=Advanced tftp Server Activation Socket
[Socket] [Socket]
ListenDatagram=0.0.0.0:69 ListenDatagram=69
[Install] [Install]
WantedBy=sockets.target WantedBy=sockets.target