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