File bftpd.spec of Package bftpd
# norootforbuild
Name: bftpd
Version: 2.9
Release: 0
#
Group: Productivity/Networking/Ftp/Servers
License: GNU General Public License version 2 (GPL v2)
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: zlib-devel pam-devel
#
Url: http://bftpd.sourceforge.net/
# http://prdownloads.sourceforge.net/bftpd/bftpd-%{version}.tar.gz
Source: bftpd-%{version}.tar.bz2
Source1: %{name}.xinetd
Source99: bftpd-rpmlintrc
Patch1: bftpd-2.8_install.patch
#
Summary: Small, easy-to-configure FTP Server
%description
The Bftpd file server is designed to be as small and easy to manage as
possible, while providing most of the features you would expect from a file
server. On most home systems, Bftpd is ready to work out-of-the-box without
requiring any extra configuration. Production systems can be set up by editing
a few lines in an easy-to-read config file.
Bftpd has been reported to run on Linux, BSD, routers and machines running
read-only file systems.
Authors:
--------
Jesse <jessefrgsmith@yahoo.ca>
%prep
%setup -q -n "%{name}"
%patch1
find . -type d -name CVS -exec %__rm -rf {} +
%__sed -i 's/\r$//' doc/*/*.sgml COPYING
%build
%configure \
--enable-pam \
--enable-libz
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}/etc/xinetd.d/%{name}"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root,-)
%config(noreplace) %attr(600,root,root) %verify(not mtime) %{_sysconfdir}/bftpd.conf
%config(noreplace) %attr(644,root,root) %verify(not mtime) %{_sysconfdir}/xinetd.d/%{name}
%{_sbindir}/bftpd
%{_mandir}/man8/bftpd.8%{ext_man}
%verify(not mtime size md5) /var/log/bftpd.log
/var/run/bftpd
%doc doc/* COPYING TODO CHANGELOG
%changelog