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