1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Applications/Network
11 url = http://www.kernel.org/pub/software/network/tftp/
13 summary = Client and server for the Trivial File Transfer Protocol (TFTP).
16 The Trivial File Transfer Protocol (TFTP) is normally used only for
17 booting diskless workstations.
20 thisapp = %{name}-hpa-%{version}
22 source_dl = http://www.kernel.org/pub/software/network/tftp/tftp-hpa/
37 make_install_targets += \
38 INSTALLROOT=%{BUILDROOT}
41 mkdir -pv %{BUILDROOT}%{sharedstatedir}/tftpboot
42 chown tftp:tftp %{BUILDROOT}%{sharedstatedir}/tftpboot
47 getent group tftp >/dev/null || /usr/sbin/groupadd -r tftp
48 getent passwd tftp >/dev/null || /usr/sbin/useradd -r -g tftp \
49 -d %{sharedstatedir}/tftpboot -s /sbin/nologin tftp
55 %{name}-client = %{thisver}
56 %{name}-server = %{thisver}
60 package %{name}-client
61 summary = A client programm for the Trivial File Transfer Protocol (TFTP).
63 The tftp-client package provides the user
64 interface for TFTP, which allows users to transfer files to and from a
65 remote machine. This program and TFTP provide very little security,
66 and should not be enabled unless it is expressly needed.
75 package %{name}-server
76 summary = A Trivial File Transfer Protocol (TFTP) server.
78 The tftp-server package provides the
79 server for TFTP, which allows users to transfer files to and from a
80 remote machine. TFTP provides very little security, and should not be
81 enabled unless it is expressly needed.
88 %{sharedstatedir}/tftpboot
95 %{sharedstatedir}/tftpboot
103 systemctl daemon-reload >/dev/null 2>&1 || :
107 systemctl --no-reload disable tftp.socket >/dev/null 2>&1 || :
108 systemctl stop tftp.socket >/dev/null 2>&1 || :
109 systemctl stop tftp.service >/dev/null 2>&1 || :
113 systemctl daemon-reload >/dev/null 2>&1 || :
117 systemctl daemon-reload >/dev/null 2>&1 || :
118 systemctl try-restart tftp.service >/dev/null 2>&1 || :
122 package %{name}-debuginfo