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