X-Git-Url: http://git.pld-linux.org/?p=packages%2Fftpd-BSD.git;a=blobdiff_plain;f=ftpd-BSD.spec;h=f5b9d456eaab4a4ae598b2366bf2aa4d46561f05;hp=5529a6ac56fa6fc90df974bf1ef574c2f1efb8e2;hb=HEAD;hpb=b3e60b19586e2c05ee88d347b108b77d927f20cb diff --git a/ftpd-BSD.spec b/ftpd-BSD.spec index 5529a6a..f5b9d45 100644 --- a/ftpd-BSD.spec +++ b/ftpd-BSD.spec @@ -1,81 +1,126 @@ +# TODO: +# - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010968.html Summary: OpenBSD's ftpd ported to Linux (with IPv6 support) +Summary(pl.UTF-8): Port ftpd z OpenBSD dla Linuksa (z obsługą IPv6) Name: ftpd-BSD -Version: 0.3.0 -Release: 1 +Version: 0.3.3 +Release: 12 License: BSD-like Group: Networking/Daemons -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 -Buildrequires: libwrap-devel -Buildrequires: pam-devel -Requires: rc-inetd +Source4: ftpusers.tar.bz2 +# Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16 +Patch0: %{name}-anonuser.patch +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 +BuildRequires: rpmbuild(macros) >= 1.268 Requires: inetdaemon -Requires: anonftp +Requires: pam >= 0.77.3 +Requires: rc-inetd Provides: ftpserver -BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Obsoletes: wu-ftpd -Obsoletes: proftpd +Obsoletes: anonftp +Obsoletes: bftpd +Obsoletes: ftpserver +Obsoletes: glftpd Obsoletes: heimdal-ftpd +Obsoletes: krb5-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 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -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). +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/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. -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. +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 on -wszystkich wymy¶lnych elementów wu-ftpd, jest jednak prawdopodobniej mniej -zapluskwiony i bardziej bezpieczny (w kazdym 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. +%description -l pl.UTF-8 +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 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/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 +%{__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 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}/ftpd/ftpusers -install -s 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/etc/ftpusers +bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir} -gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/* +%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 -fi +%service -q rc-inetd reload %postun -if [ -f /var/lock/subsys/rc-inetd ]; then - /etc/rc.d/init.d/rc-inetd reload +if [ "$1" = 0 ]; then + %service -q 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) /etc/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*