]> git.pld-linux.org Git - packages/ftpd-BSD.git/blame - ftpd-BSD.spec
- added BuildRequires and Obsoletes rules,
[packages/ftpd-BSD.git] / ftpd-BSD.spec
CommitLineData
9eaf0992 1Summary: OpenBSD's ftpd ported to Linux (with IPv6 support)
963e2124 2Name: ftpd-BSD
9eaf0992 3Version: 0.3.0
963e2124 4Release: 1
5License: BSD-like
6Group: Networking/Daemons
8fab0a0a 7Source0: ftp://quatramaran.ens.fr/pub/madore/ftpd-BSD/%{name}-%{version}.tar.gz
963e2124 8Source1: %{name}.inetd
9Source2: %{name}.pamd
9eaf0992 10Source3: %{name}-ftpusers
f663eb48 11Buildrequires: libwrap-devel
12Buildrequires: pam-devel
963e2124 13Requires: rc-inetd
14Requires: inetdaemon
15Requires: anonftp
16Provides: ftpserver
f663eb48 17BuildRoot: /tmp/%{name}-%{version}-root
18Obsoletes: wu-ftpd
19Obsoletes: proftpd
20Obsoletes: heimdal-ftpd
963e2124 21
22%description
f663eb48 23This is a Linux port of the BSD ftp server (ftpd). It doesn't have all the
24bells and whistles of wu-ftpd, but it is also probably less buggy and more
25secure (at least, it was certainly so before I ported it, and I hope I
26didn't mess things up *too* much).
963e2124 27
f663eb48 28The source code was taken from the OpenBSD CVS as of 2000/01/23 (this is
29between releases 2.6 and 2.7). The ftpd version number is 6.4 and this
30port's version number is 0.3.0.
963e2124 31
32%prep
33%setup -q
34
35%build
36make
37
38%install
39rm -rf $RPM_BUILD_ROOT
40install -d $RPM_BUILD_ROOT/{%{_sbindir},%{_mandir}/man8,etc/{pam.d,sysconfig/rc-inetd}}
41
42install -s ftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd-BSD
f663eb48 43install ftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/
44install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/ftpd
963e2124 45install %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
9eaf0992 46install %{SOURCE3} $RPM_BUILD_ROOT/etc/ftpusers
963e2124 47
48gzip -9nf README $RPM_BUILD_ROOT%{_mandir}/man8/*
49
963e2124 50%post
51if [ -f /var/lock/subsys/rc-inetd ]; then
9eaf0992 52 /etc/rc.d/init.d/rc-inetd reload 1>&2
963e2124 53else
54 echo "Type \"/etc/rc.d/init.d/rc-inetd start\" to start inet sever" 1>&2
55fi
56
57%postun
58if [ -f /var/lock/subsys/rc-inetd ]; then
9eaf0992 59 /etc/rc.d/init.d/rc-inetd reload
963e2124 60fi
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc README.gz
68%attr(755,root,root) %{_sbindir}/ftpd-BSD
69%attr(640,root,root) %{_mandir}/man8/*
8757d5f8 70%attr(640,root,root) %config %verify(not size mtime md5) /etc/pam.d/ftp
963e2124 71%attr(640,root,root) /etc/ftpusers
f663eb48 72%attr(640,root,root) /etc/sysconfig/rc-inetd/ftpd
This page took 0.532135 seconds and 4 git commands to generate.