X-Git-Url: http://git.pld-linux.org/?p=packages%2Fftpd-BSD.git;a=blobdiff_plain;f=ftpd-BSD.spec;h=125f3d9866141cdce7733050972a0dea9802ad79;hp=abbe7e973dc28cf8125fb15accb9582c33f17317;hb=445a220a51259ba4e7114f3f857ff6a5f0fa1718;hpb=c1c6f6cba33a97ae161caf669cbc125c700fd66f diff --git a/ftpd-BSD.spec b/ftpd-BSD.spec index abbe7e9..125f3d9 100644 --- a/ftpd-BSD.spec +++ b/ftpd-BSD.spec @@ -1,69 +1,108 @@ +# TODO: +# - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010968.html Summary: OpenBSD's ftpd ported to Linux (with IPv6 support) +Summary(pl): Port ftpd z OpenBSD dla Linuksa (z obs³ug± IPv6) Name: ftpd-BSD -Version: 0.3.2 -Release: 3 +Version: 0.3.3 +Release: 11 License: BSD-like Group: Networking/Daemons -Group(pl): Sieciowe/Serwery -Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/%{name}-%{version}.tar.gz +Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz +# Source0-md5: db925235417c8699bb1eb8ca77811fc5 Source1: %{name}.inetd Source2: %{name}.pamd Source3: %{name}-ftpusers +Source4: ftpusers.tar.bz2 +# Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16 Patch0: %{name}-anonuser.patch -Buildrequires: libwrap-devel -Buildrequires: pam-devel -Requires: rc-inetd +Patch1: %{name}-paths.patch +Patch2: %{name}-username.patch +Patch3: %{name}-SA_LEN.patch +Patch4: %{name}-no_libnsl.patch +URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD +BuildRequires: libwrap-devel +BuildRequires: pam-devel Requires: inetdaemon -Provides: ftpserver +Requires: pam >= 0.77.3 +Requires: rc-inetd BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Obsoletes: wu-ftpd -Obsoletes: proftpd +Provides: ftpserver +Obsoletes: ftpserver +Obsoletes: anonftp +Obsoletes: bftpd +Obsoletes: glftpd Obsoletes: heimdal-ftpd Obsoletes: linux-ftpd +Obsoletes: muddleftpd +Obsoletes: proftpd +Obsoletes: proftpd-common +Obsoletes: proftpd-inetd +Obsoletes: proftpd-standalone +Obsoletes: pure-ftpd +Obsoletes: troll-ftpd +Obsoletes: vsftpd +Obsoletes: wu-ftpd +Conflicts: man-pages < 1.51 %description -This is a Linux port of the BSD ftp server (ftpd). It doesn't have all +This is a Linux port of the BSD FTP server (ftpd). It doesn't have all the bells and whistles of wu-ftpd, but it is also probably less buggy and more secure (at least, it was certainly so before I ported it, and I hope I didn't mess things up *too* much). -The source code was taken from the OpenBSD CVS as of 2000/01/23 (this -is between releases 2.6 and 2.7). The ftpd version number is 6.4 and -this port's version number is 0.3.0. +The source code was taken from the OpenBSD CVS as of 2000/07/07 (this +is after release 2.7). The ftpd version number is 6.5 and this port's +version number is 0.3.2. + +Package comes with anonymous upload disabled. If you really want to +enable it - chmod /home/services/ftp/upload to 0730. %description -l pl -Pakiet ten zawiera linuksowy port serwera ftp BSD (ftpd). Nie zawiera +Pakiet ten zawiera linuksowy port serwera FTP BSD (ftpd). Nie zawiera on wszystkich wymy¶lnych elementów wu-ftpd, jest jednak -prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w kazdym +prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w ka¿dym razie by³ takim zanim go przenios³em na Linuksa, i mam nadziejê, ¿e nie naba³agani³em *za bardzo*). Kod ¼ród³owy pochodzi z repozytorium -CVS OpenBSD z dnia 2000/01/23 (tj. miêdzy wersj± 2.6 a 2.7). Numer -wersji ftpd to 6.4, za¶ numer wersji tego portu to 0.3.0. +CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd +to 6.5, za¶ numer wersji tego portu to 0.3.2. + +Pakiet przychodzi z wy³±czonym anonimowym uploadem. Je¶li naprawdê +chcesz go w³±czyæ - zmieñ uprawnienia do /home/services/ftp/upload na +0730. %prep -%setup -q +%setup -q -n ftpd-bsd-%{version} %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build -%{__make} -C ftpd OPT_CFLAGS="$RPM_OPT_FLAGS" +%{__make} OPT_CFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}} +install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \ + $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \ + $RPM_BUILD_ROOT/home/services/ftp/{upload,pub} -install -s ftpd/ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD -install ftpd/ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ +install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD +install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/ install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp -install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpusers +install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers -gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/* +bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} + +%clean +rm -rf $RPM_BUILD_ROOT %post 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 sever" 1>&2 + echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet server" 1>&2 fi %postun @@ -71,14 +110,19 @@ if [ -f /var/lock/subsys/rc-inetd ]; then /etc/rc.d/init.d/rc-inetd reload fi -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(644,root,root,755) -%doc README.gz +%doc README* %attr(755,root,root) %{_sbindir}/ftpd-BSD -%attr(640,root,root) %{_mandir}/man8/* -%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp -%attr(640,root,root) %{_sysconfdir}/ftpusers -%attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd +%dir %{_sysconfdir}/ftpd +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers +%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd +%dir /home/services/ftp +%dir /home/services/ftp/pub +%attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload +%{_mandir}/man8/* +%lang(ja) %{_mandir}/ja/man5/ftpusers* +%lang(pl) %{_mandir}/pl/man5/ftpusers* +%lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers* +%lang(ru) %{_mandir}/ru/man5/ftpusers*