1 Star 0 Fork 8

yixiangzhike/tftp

forked from src-openEuler/tftp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tftp.spec 2.76 KB
一键复制 编辑 原始数据 按行查看 历史
orange-snn 提交于 2019-12-26 19:41 . add the systemd-units in requires
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yixiangzhike/tftp.git
git@gitee.com:yixiangzhike/tftp.git
yixiangzhike
tftp
tftp
master

搜索帮助