- dropped pre-cvs changelog
[packages/ftpd-BSD.git] / ftpd-BSD.spec
CommitLineData
c25cb074
PG
1# TODO:
2# - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010968.html
9eaf0992 3Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
1d552f7b 4Summary(pl.UTF-8): Port ftpd z OpenBSD dla Linuksa (z obsługą IPv6)
963e2124 5Name: ftpd-BSD
298b26b0 6Version: 0.3.3
393fd2b8 7Release: 12
963e2124 8License: BSD-like
9Group: Networking/Daemons
298b26b0 10Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/contrib/%{name}-%{version}.tar.gz
17e04a84 11# Source0-md5: db925235417c8699bb1eb8ca77811fc5
963e2124 12Source1: %{name}.inetd
13Source2: %{name}.pamd
9eaf0992 14Source3: %{name}-ftpusers
45670279 15Source4: ftpusers.tar.bz2
986677f4 16# Source4-md5: 76c80b6ec9f4d079a1e27316edddbe16
2c794332 17Patch0: %{name}-anonuser.patch
1e1c3cf7 18Patch1: %{name}-paths.patch
331a52bd 19Patch2: %{name}-username.patch
298b26b0 20Patch3: %{name}-SA_LEN.patch
5ecb4bd3 21Patch4: %{name}-no_libnsl.patch
298b26b0 22URL: http://www.eleves.ens.fr:8080/home/madore/programs/#prog_ftpd-BSD
d0fc2967 23BuildRequires: libwrap-devel
24BuildRequires: pam-devel
eaf4411f 25BuildRequires: rpmbuild(macros) >= 1.268
963e2124 26Requires: inetdaemon
536d4eab 27Requires: pam >= 0.77.3
445a220a 28Requires: rc-inetd
11403463 29Provides: ftpserver
11403463 30Obsoletes: anonftp
0d95cd18 31Obsoletes: bftpd
eaf4411f 32Obsoletes: ftpserver
6097a540 33Obsoletes: glftpd
f663eb48 34Obsoletes: heimdal-ftpd
393fd2b8 35Obsoletes: krb5-ftpd
56dbe8db 36Obsoletes: linux-ftpd
11403463 37Obsoletes: muddleftpd
0d95cd18 38Obsoletes: proftpd
020b6cc1
JB
39Obsoletes: proftpd-common
40Obsoletes: proftpd-inetd
41Obsoletes: proftpd-standalone
0d95cd18 42Obsoletes: pure-ftpd
773b7cf9 43Obsoletes: troll-ftpd
11403463 44Obsoletes: vsftpd
0d95cd18 45Obsoletes: wu-ftpd
45670279 46Conflicts: man-pages < 1.51
eaf4411f 47BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
963e2124 48
49%description
366a1a2e 50This is a Linux port of the BSD FTP server (ftpd). It doesn't have all
f7893e6b 51the bells and whistles of wu-ftpd, but it is also probably less buggy
52and more secure (at least, it was certainly so before I ported it, and
53I hope I didn't mess things up *too* much).
963e2124 54
5ecb4bd3
JB
55The source code was taken from the OpenBSD CVS as of 2000/07/07 (this
56is after release 2.7). The ftpd version number is 6.5 and this port's
57version number is 0.3.2.
58
59Package comes with anonymous upload disabled. If you really want to
50ebe324 60enable it - chmod /home/services/ftp/upload to 0730.
963e2124 61
3fa527b0 62%description -l pl.UTF-8
366a1a2e 63Pakiet ten zawiera linuksowy port serwera FTP BSD (ftpd). Nie zawiera
3fa527b0
JR
64on wszystkich wymyślnych elementów wu-ftpd, jest jednak
65prawdopodobniej mniej zapluskwiony i bardziej bezpieczny (w każdym
66razie był takim zanim go przeniosłem na Linuksa, i mam nadzieję, że
67nie nabałaganiłem *za bardzo*). Kod źródłowy pochodzi z repozytorium
5ecb4bd3 68CVS OpenBSD z dnia 2000/07/07 (tj. po wersji 2.7). Numer wersji ftpd
3fa527b0 69to 6.5, zaś numer wersji tego portu to 0.3.2.
5ecb4bd3 70
3fa527b0
JR
71Pakiet przychodzi z wyłączonym anonimowym uploadem. Jeśli naprawdę
72chcesz go włączyć - zmień uprawnienia do /home/services/ftp/upload na
445a220a 730730.
48a88c42 74
963e2124 75%prep
298b26b0 76%setup -q -n ftpd-bsd-%{version}
2c794332 77%patch0 -p1
1e1c3cf7 78%patch1 -p1
e99c4a95 79%patch2 -p1
fe758b67 80%patch3 -p1
c8eb4cc1 81%patch4 -p1
298b26b0 82
963e2124 83%build
298b26b0 84%{__make} OPT_CFLAGS="%{rpmcflags}"
963e2124 85
86%install
87rm -rf $RPM_BUILD_ROOT
1e1c3cf7
JR
88install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
89 $RPM_BUILD_ROOT%{_sysconfdir}/{ftpd,pam.d,sysconfig/rc-inetd} \
50ebe324 90 $RPM_BUILD_ROOT/home/services/ftp/{upload,pub}
963e2124 91
298b26b0 92install ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
93install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
49b75143 94install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
95install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
1e1c3cf7 96install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/ftpd/ftpusers
963e2124 97
45670279 98bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
99
5ecb4bd3
JB
100%clean
101rm -rf $RPM_BUILD_ROOT
102
963e2124 103%post
eaf4411f 104%service -q rc-inetd reload
963e2124 105
106%postun
eaf4411f
ER
107if [ "$1" = 0 ]; then
108 %service -q rc-inetd reload
b10e70e7 109fi
963e2124 110
963e2124 111%files
112%defattr(644,root,root,755)
020b6cc1 113%doc README*
963e2124 114%attr(755,root,root) %{_sbindir}/ftpd-BSD
306bd0f9 115%dir %{_sysconfdir}/ftpd
c49e2efb 116%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/ftp
1e1c3cf7 117%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ftpd/ftpusers
ee7a5b94 118%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/ftpd
50ebe324
TO
119%dir /home/services/ftp
120%dir /home/services/ftp/pub
121%attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload
1e1c3cf7 122%{_mandir}/man8/*
45670279 123%lang(ja) %{_mandir}/ja/man5/ftpusers*
124%lang(pl) %{_mandir}/pl/man5/ftpusers*
125%lang(pt_BR) %{_mandir}/pt_BR/man5/ftpusers*
126%lang(ru) %{_mandir}/ru/man5/ftpusers*
This page took 0.065338 seconds and 5 git commands to generate.