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