代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/tftp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: tftp
Version: 5.2
Release: 27
Summary: The client for the Trivial File Transfer Protocol (TFTP)
License: BSD
Group: Applications/Internet
URL: http://www.kernel.org/pub/software/network/tftp/
Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-%{version}.tar.bz2
Source1: tftp.socket
Source2: tftp.service
#Acknowledge all patches from fedora or redhat.
Patch0000: tftp-0.40-remap.patch
Patch0002: tftp-hpa-0.39-tzfix.patch
Patch0003: tftp-0.42-tftpboot.patch
Patch0004: tftp-0.49-chk_retcodes.patch
Patch0005: tftp-hpa-0.49-fortify-strcpy-crash.patch
Patch0006: tftp-0.49-cmd_arg.patch
Patch0007: tftp-hpa-0.49-stats.patch
Patch0008: tftp-hpa-5.2-pktinfo.patch
Patch0009: tftp-doc.patch
Patch0010: tftp-enhanced-logging.patch
BuildRequires: readline-devel autoconf systemd-units
%description
TFTP which is the abbreviation of Trivial File Fransfer Protocol
enables users to transfer files between local host and remote machine.
This package tftp is a client implementing TFTP.
%package server
Summary: The server for the Trivial File Transfer Protocol (TFTP)
Requires: systemd-units
Requires(post): systemd-units
Requires(postun): systemd-units
%description server
The TFTP server is run by using systemd socket activation, and is disabled by default.
%package_help
%prep
%autosetup -n %{name}-hpa-%{version} -p1
%build
autoreconf
%configure
%make_build
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man{1,8} %{buildroot}%{_sbindir}
install -d %{buildroot}%{_localstatedir}/lib/tftpboot %{buildroot}%{_unitdir}
make INSTALLROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install
install -m755 -d -p %{buildroot}%{_sysconfdir}/xinetd.d/ %{buildroot}%{_localstatedir}/lib/tftpboot
sed -e 's:/var:%{_localstatedir}:' -e 's:/usr/sbin:%{_sbindir}:' \
tftp-xinetd > %{buildroot}%{_sysconfdir}/xinetd.d/tftp
touch -r tftp-xinetd %{buildroot}%{_sysconfdir}/xinetd.d/tftp
install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}
%post server
%systemd_post tftp.socket
%preun server
%systemd_preun tftp.socket
%postun server
%systemd_postun_with_restart tftp.socket
%files
%doc README README.security CHANGES
%{_bindir}/tftp
%files server
%config(noreplace) %{_sysconfdir}/xinetd.d/tftp
%dir %{_localstatedir}/lib/tftpboot
%{_sbindir}/in.tftpd
%{_unitdir}/*
%files help
%{_mandir}/man1/*
%{_mandir}/man8/*
%changelog
* Tue Dec 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.2-27
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add the systemd-units in requires for server package
* Tue Sep 17 2019 Zaiwang Li<lizaiwang1@huawei.com> - 5.2-26
- Init package
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。