]> git.pld-linux.org Git - packages/atftp.git/blob - atftp.spec
- typo, of course...
[packages/atftp.git] / atftp.spec
1 Summary:        Client for the Trivial File Transfer Protocol (TFTP)
2 Summary(de):    Client für das 'trivial file transfer protocol (tftp)'
3 Summary(fr):    Client pour le « trivial file transfer protocol » (tftp)
4 Summary(pl):    Klient TFTP (Trivial File Transfer Protocol)
5 Summary(tr):    Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
6 Name:           atftp
7 Version:        0.6.1.1
8 Release:        1
9 License:        GPL
10 Group:          Applications/Networking
11 # Source0-md5:  37cfd0e85e401980aaab17da49adb3b9
12 Source0:        ftp://ftp.debian.org/debian/pool/main/a/%{name}_%{version}.tar.gz
13 Source1:        atftpd.inetd
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 Obsoletes:      tftp-hpa tftp
16
17 %description
18 The Trivial File Transfer Protocol (TFTP) is normally used only for
19 booting diskless workstations. This package contains tftp client.
20
21 %description -l de
22 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
23 Booten von disklosen Workstations benutzt. Es bietet nur geringe
24 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
25
26 %description -l fr
27 Le « trivial file transfer protocol » (tftp) est normalement utilisé
28 uniquement pour démarrer les stations de travail sans disque. Il offre
29 très peu de sécurité et ne devrait pas être activé sauf si c'est
30 nécessaire.
31
32 %description -l pl
33 Tftp (trivial file transfer protocol) jest u¿ywany g³ównie do
34 startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikacjê
35 tftp klienta.
36
37 %description -l tr
38 Ýlkel dosya aktarým protokolu genelde disksiz iþ istasyonlarýnýn að
39 üzerinden açýlmalarýnda kullanýlýr. Güvenlik denetimleri çok az
40 olduðundan zorunlu kalmadýkça çalýþtýrýlmamalýdýr.
41
42 %package -n atftpd
43 Summary:        Daemon for the trivial file transfer protocol (tftp)
44 Summary(de):    Dämon für das 'trivial file transfer protocol (tftp)'
45 Summary(fr):    Démon pour le « trivial file transfer protocol » (tftp)
46 Summary(pl):    Serwer tftp (trivial file transfer protocol)
47 Summary(tr):    Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
48 Group:          Networking/Daemons
49 PreReq:         rc-inetd >= 0.8.1
50 Requires(pre):  /bin/id
51 Requires(pre):  /usr/sbin/useradd
52 Requires(postun):       /usr/sbin/userdel
53 Provides:       tftpdaemon
54 Obsoletes:      tftpd-hpa
55 Obsoletes:      tftp-server
56 Obsoletes:      utftpd
57
58 %description -n atftpd
59 The Trivial File Transfer Protocol (TFTP) is normally used only for
60 booting diskless workstations. The tftp package provides the user
61 interface for TFTP, which allows users to transfer files to and from a
62 remote machine. It provides very little security, and should not be
63 enabled unless it is needed.
64
65 %description -n atftpd -l de
66 Das trivial file transfer protocol (tftp) wird in der Regel nur zum
67 Booten von disklosen Workstations benutzt. Es bietet nur geringe
68 Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
69
70 %description -n atftpd -l fr
71 Le « trivial file transfer protocol » (tftp) est normalement utilisé
72 uniquement pour démarrer les stations de travail sans disque. Il offre
73 très peu de sécurité et ne devrait pas être activé sauf si c'est
74 nécessaire.
75
76 %description -n atftpd -l pl
77 TFTP (Trivial File Transfer Protocol) jest u¿ywany g³ównie do
78 startowania stacji bezdyskowych z sieci. Serwer tftp powinien byæ
79 instalowany tylko wtedy, kiedy zachodzi taka konieczno¶æ poniewa¿
80 nale¿y on do aplikacji o niskim poziomie bezpieczeñstwa.
81
82 %prep
83 %setup  -q
84
85 %build
86
87 ./configure
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT/{%{_bindir},%{_sbindir},/etc/sysconfig/rc-inetd} \
93         $RPM_BUILD_ROOT{%{_mandir}/man{1,8},/var/lib/tftp}
94
95 install atftpd $RPM_BUILD_ROOT%{_sbindir}
96 install atftp $RPM_BUILD_ROOT%{_bindir}
97 install *.8 $RPM_BUILD_ROOT%{_mandir}/man8/
98 install *.1 $RPM_BUILD_ROOT%{_mandir}/man1/
99
100 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %pre -n atftpd
106 if [ -n "`id -u tftp 2>/dev/null`" ]; then
107         if [ "`id -u tftp`" != "15" ]; then
108                 echo "Error: user tftp doesn't have uid=15. Correct this before installing tftpd." 1>&2
109                 exit 1
110         fi
111 else
112         echo "Adding user tftp UID=15."
113         /usr/sbin/useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp 1>&2
114 fi
115
116 %post -n atftpd
117 if [ -f /var/lock/subsys/rc-inetd ]; then
118         /etc/rc.d/init.d/rc-inetd reload 1>&2
119 else
120         echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
121 fi
122
123 %postun -n atftpd
124 if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
125         /etc/rc.d/init.d/rc-inetd reload
126 fi
127 if [ "$1" = "0" ]; then
128         echo "Removing user tftp."
129         /usr/sbin/userdel tftp
130 fi
131
132 %files
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_bindir}/*
135 %{_mandir}/man1/*
136
137 %files -n atftpd
138 %defattr(644,root,root,755)
139 %doc README FAQ
140 %attr(755,root,root) %{_sbindir}/*
141 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/tftpd
142 %attr(750,tftp,root) %dir /var/lib/tftp
143 %{_mandir}/man8/*
This page took 0.039699 seconds and 3 git commands to generate.