]> git.pld-linux.org Git - packages/atftp.git/commitdiff
- new, stbr.
authorserek <serek@pld-linux.org>
Mon, 23 Jun 2003 01:16:09 +0000 (01:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atftp.spec -> 1.1

atftp.spec [new file with mode: 0644]

diff --git a/atftp.spec b/atftp.spec
new file mode 100644 (file)
index 0000000..b864cd6
--- /dev/null
@@ -0,0 +1,143 @@
+Summary:       Client for the Trivial File Transfer Protocol (TFTP)
+Summary(de):   Client für das 'trivial file transfer protocol (tftp)'
+Summary(fr):   Client pour le « trivial file transfer protocol » (tftp)
+Summary(pl):   Klient TFTP (Trivial File Transfer Protocol)
+Summary(tr):   Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
+Name:          atftp
+Version:       0.6.1.1
+Release:       1
+License:       GPL
+Group:         Applications/Networking
+# Source0-md5: 37cfd0e85e401980aaab17da49adb3b9
+Source0:       ftp://ftp.debian.org/debian/pool/main/a/%{name}_%{version}.tar.gz
+Source1:       tftpd.inetd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     tftp-hpa tftp
+
+%description
+The Trivial File Transfer Protocol (TFTP) is normally used only for
+booting diskless workstations. This package contains tftp client.
+
+%description -l de
+Das trivial file transfer protocol (tftp) wird in der Regel nur zum
+Booten von disklosen Workstations benutzt. Es bietet nur geringe
+Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
+
+%description -l fr
+Le « trivial file transfer protocol » (tftp) est normalement utilisé
+uniquement pour démarrer les stations de travail sans disque. Il offre
+très peu de sécurité et ne devrait pas être activé sauf si c'est
+nécessaire.
+
+%description -l pl
+Tftp (trivial file transfer protocol) jest u¿ywany g³ównie do
+startowania stacji bezdyskowych z sieci. Pakiet ten zawiera aplikacjê
+tftp klienta.
+
+%description -l tr
+Ýlkel dosya aktarým protokolu genelde disksiz iþ istasyonlarýnýn að
+üzerinden açýlmalarýnda kullanýlýr. Güvenlik denetimleri çok az
+olduðundan zorunlu kalmadýkça çalýþtýrýlmamalýdýr.
+
+%package -n atftpd
+Summary:       Daemon for the trivial file transfer protocol (tftp)
+Summary(de):   Dämon für das 'trivial file transfer protocol (tftp)'
+Summary(fr):   Démon pour le « trivial file transfer protocol » (tftp)
+Summary(pl):   Serwer tftp (trivial file transfer protocol)
+Summary(tr):   Ýlkel dosya aktarým protokolu (TFTP) için sunucu ve istemci
+Group:         Networking/Daemons
+PreReq:                rc-inetd >= 0.8.1
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/useradd
+Requires(postun):      /usr/sbin/userdel
+Provides:      tftpdaemon
+Obsoletes:     tftpd-hpa
+Obsoletes:     tftp-server
+Obsoletes:     utftpd
+
+%description -n atftpd
+The Trivial File Transfer Protocol (TFTP) is normally used only for
+booting diskless workstations. The tftp package provides the user
+interface for TFTP, which allows users to transfer files to and from a
+remote machine. It provides very little security, and should not be
+enabled unless it is needed.
+
+%description -n atftpd -l de
+Das trivial file transfer protocol (tftp) wird in der Regel nur zum
+Booten von disklosen Workstations benutzt. Es bietet nur geringe
+Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
+
+%description -n atftpd -l fr
+Le « trivial file transfer protocol » (tftp) est normalement utilisé
+uniquement pour démarrer les stations de travail sans disque. Il offre
+très peu de sécurité et ne devrait pas être activé sauf si c'est
+nécessaire.
+
+%description -n atftpd -l pl
+TFTP (Trivial File Transfer Protocol) jest u¿ywany g³ównie do
+startowania stacji bezdyskowych z sieci. Serwer tftp powinien byæ
+instalowany tylko wtedy, kiedy zachodzi taka konieczno¶æ poniewa¿
+nale¿y on do aplikacji o niskim poziomie bezpieczeñstwa.
+
+%prep
+%setup  -q
+
+%build
+
+./configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/{%{_bindir},%{_sbindir},/etc/sysconfig/rc-inetd} \
+       $RPM_BUILD_ROOT{%{_mandir}/man{1,8},/var/lib/tftp}
+
+install atftpd $RPM_BUILD_ROOT%{_sbindir}
+install atftp $RPM_BUILD_ROOT%{_bindir}
+install *.8 $RPM_BUILD_ROOT%{_mandir}/man8/
+install *.1 $RPM_BUILD_ROOT%{_mandir}/man1/
+
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre -n atftpd
+if [ -n "`id -u tftp 2>/dev/null`" ]; then
+       if [ "`id -u tftp`" != "15" ]; then
+               echo "Error: user tftp doesn't have uid=15. Correct this before installing tftpd." 1>&2
+               exit 1
+       fi
+else
+       echo "Adding user tftp UID=15."
+       /usr/sbin/useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp 1>&2
+fi
+
+%post -n atftpd
+if [ -f /var/lock/subsys/rc-inetd ]; then
+       /etc/rc.d/init.d/rc-inetd reload 1>&2
+else
+       echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server." 1>&2
+fi
+
+%postun -n atftpd
+if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
+       /etc/rc.d/init.d/rc-inetd reload
+fi
+if [ "$1" = "0" ]; then
+       echo "Removing user tftp."
+       /usr/sbin/userdel tftp
+fi
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/man1/*
+
+%files -n atftpd
+%defattr(644,root,root,755)
+%doc README FAQ
+%attr(755,root,root) %{_sbindir}/*
+%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/tftpd
+%attr(750,tftp,root) %dir /var/lib/tftp
+%{_mandir}/man8/*
This page took 0.062692 seconds and 4 git commands to generate.