]> git.pld-linux.org Git - packages/atftp.git/blobdiff - atftp.spec
- updated to 0.8.0; added patch to remove unnecessary -lnsl
[packages/atftp.git] / atftp.spec
index 749fe19ab2c1a633d4c46af4f0f9084ca030512f..8855b5ca6b108c40ddd9142ae82bdae744e326f0 100644 (file)
 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
+Summary(de.UTF-8):     Client für das 'trivial file transfer protocol (tftp)'
+Summary(fr.UTF-8):     Client pour le Â« trivial file transfer protocol Â» (tftp)
+Summary(pl.UTF-8):     Klient TFTP (Trivial File Transfer Protocol)
+Summary(tr.UTF-8):     İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
 Name:          atftp
-Version:       0.7
-Release:       2
-License:       GPL
+Version:       0.8.0
+Release:       1
+License:       GPL v2+
 Group:         Applications/Networking
-Source0:       ftp://ftp.mamalinux.com/pub/atftp/%{name}-%{version}.tar.gz
-# Source0-md5: 3b27365772d918050b2251d98a9c7c82
-Source1:       atftpd.inetd
-BuildRequires: autoconf
-BuildRequires: automake
+Source0:       https://downloads.sourceforge.net/project/atftp/%{name}-%{version}.tar.gz
+# Source0-md5: 852f4c0773ae8c429ec4f74413eabe1b
+Source1:       %{name}d.inetd
+Source2:       %{name}d.init
+Source3:       %{name}d.sysconfig
+Patch0:                %{name}-tinfo.patch
+Patch1:                %{name}-link.patch
+URL:           https://sourceforge.net/projects/atftp/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake >= 1:1.7
 BuildRequires: libwrap-devel
-BuildRequires: libtool
+BuildRequires: ncurses-devel
+BuildRequires: pcre2-8-devel
+BuildRequires: readline-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 The Trivial File Transfer Protocol (TFTP) is normally used only for
 booting diskless workstations. This package contains tftp client.
 
-%description -l de
+%description -l de.UTF-8
 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 fr.UTF-8
+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ê
+%description -l pl.UTF-8
+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.
+%description -l tr.UTF-8
+İ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
+%package -n atftpd-common
 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
+Summary(de.UTF-8):     Dämon für das 'trivial file transfer protocol (tftp)'
+Summary(fr.UTF-8):     Démon pour le Â« trivial file transfer protocol Â» (tftp)
+Summary(pl.UTF-8):     Serwer tftp (trivial file transfer protocol)
+Summary(tr.UTF-8):     İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
+Group:         Networking/Daemons/FTP
+Requires(postun):      /usr/sbin/userdel
 Requires(pre): /bin/id
 Requires(pre): /usr/sbin/useradd
-Requires(postun):      /usr/sbin/userdel
-Provides:      tftpdaemon
-Obsoletes:     tftpd
-Obsoletes:     tftpd-hpa
-Obsoletes:     tftp-server
-Obsoletes:     utftpd
+Provides:      user(tftp)
 
-%description -n atftpd
+%description -n atftpd-common
 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
+%description -n atftpd-common -l de.UTF-8
 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-common -l fr.UTF-8
+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-common -l pl.UTF-8
+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.
+
+%package -n atftpd-inetd
+Summary:       inetd configs for atftpd
+Summary(pl.UTF-8):     Pliki konfiguracyjne do użycia atftpd poprzez inetd
+Group:         Networking/Daemons/FTP
+Requires:      atftpd-common = %{epoch}:%{version}-%{release}
+Requires:      rc-inetd >= 0.8.1
+Provides:      tftpdaemon
+Obsoletes:     atftpd < 0.7-9
+Obsoletes:     inetutils-tftpd
+Obsoletes:     tftp-server
+Obsoletes:     tftpd
+Obsoletes:     tftpd-hpa
+Obsoletes:     utftpd
+
+%description -n atftpd-inetd
+atftpd configs for running from inetd.
+
+%description -n atftpd-inetd -l pl.UTF-8
+Pliki konfiguracyjna atftpd do startowania demona poprzez inetd.
+
+%package -n atftpd-standalone
+Summary:       Standalone daemon configs for atftpd
+Summary(pl.UTF-8):     Pliki konfiguracyjne do startowania atftpd w trybie standalone
+Group:         Networking/Daemons/FTP
+Requires:      atftpd-common = %{epoch}:%{version}-%{release}
+Requires:      rc-scripts
+Provides:      tftpdaemon
+Obsoletes:     atftpd < 0.7-9
+Obsoletes:     inetutils-tftpd
+Obsoletes:     tftp-server
+Obsoletes:     tftpd
+Obsoletes:     tftpd-hpa
+Obsoletes:     utftpd
+
+%description -n atftpd-standalone
+atftpd configs for running as a standalone daemon.
 
-%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.
+%description -n atftpd-standalone -l pl.UTF-8
+Pliki konfiguracyjne atftpd do startowania demona w trybie
+standalone.
 
 %prep
 %setup -q
+%patch0 -p1
+%patch1 -p1
+
+#sed -i -e 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#g' configure.ac
+#sed -i -e 's#CFLAGS="-g -Wall -D_REENTRANT"##g' configure.ac
 
 %build
-rm -f missing
-%{__libtoolize}
 %{__aclocal}
-%{__automake}
 %{__autoconf}
-%configure
+%{__autoheader}
+%{__automake}
+%configure \
+       --enable-libpcre \
+       --enable-libreadline \
+       --enable-libwrap \
+       --enable-mtftp
 %{__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 -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},/var/lib/tftp} \
+       $RPM_BUILD_ROOT{%{_mandir}/man{1,8},} \
+       $RPM_BUILD_ROOT{/etc/sysconfig/rc-inetd,/etc/rc.d/init.d}
 
-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/
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/atftpd
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/atftpd
 
 %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
+%pre -n atftpd-common
+%useradd -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g ftp tftp
 
-%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
+%postun -n atftpd-common
+if [ "$1" = "0" ]; then
+       %userremove tftp
 fi
 
-%postun -n atftpd
-if [ "$1" = "0" -a -f /var/lock/subsys/rc-inetd ]; then
-       /etc/rc.d/init.d/rc-inetd reload
+%post -n atftpd-inetd
+%service -q rc-inetd reload
+
+%postun -n atftpd-inetd
+if [ "$1" = "0" ]; then
+       %service -q rc-inetd reload
 fi
+
+%post -n atftpd-standalone
+/sbin/chkconfig --add atftpd
+%service atftpd restart
+
+%preun
 if [ "$1" = "0" ]; then
-       echo "Removing user tftp."
-       /usr/sbin/userdel tftp
+       %service atftpd stop
+       /sbin/chkconfig --del atftpd
 fi
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
+%doc BUGS Changelog FAQ README README.MCAST README.PCRE TODO docs/pxespec.txt
+%attr(755,root,root) %{_bindir}/atftp
+%{_mandir}/man1/atftp.1*
 
-%files -n atftpd
+%files -n atftpd-common
 %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
+%doc BUGS Changelog FAQ README README.MCAST README.PCRE TODO docs/pxespec.txt
+%attr(755,root,root) %{_sbindir}/atftpd
 %attr(750,tftp,root) %dir /var/lib/tftp
-%{_mandir}/man8/*
+%{_mandir}/man8/atftpd.8*
+
+%files -n atftpd-inetd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
+%attr(755,root,root) %{_sbindir}/in.tftpd
+%{_mandir}/man8/in.tftpd.8*
+
+%files -n atftpd-standalone
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/atftpd
+%attr(754,root,root) /etc/rc.d/init.d/atftpd
This page took 0.063666 seconds and 4 git commands to generate.