File bftpd.spec of Package bftpd
#
# spec file for package bftpd
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: bftpd
Version: 6.1
Release: 0
Summary: Small, easy-to-configure FTP Server
License: GPL-2.0-only
Group: Productivity/Networking/Ftp/Servers
URL: http://bftpd.sourceforge.net/
Source: https://sourceforge.net/projects/bftpd/files/bftpd/bftpd-%{version}/bftpd-%{version}.tar.gz
Source1: %{name}.xinetd
Patch1: bftpd-4.9_install.patch
BuildRequires: pam-devel
BuildRequires: xinetd
BuildRequires: pkgconfig(zlib)
Requires: xinetd
%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.
%package doc
Summary: Documentation for bftpd
Group: Documentation/HTML
Requires: %{name} = %{version}
%description doc
HTML documentation for bftpd.
%prep
%setup -q -n %{name}
%patch1 -p1
sed -i 's/\r$//' doc/*/*.sgml COPYING
%build
%configure \
--enable-pam \
--enable-libz
%make_build
%install
%make_install
install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_sysconfdir}/xinetd.d/%{name}"
%files doc
%doc doc/*
%files
%license COPYING
%doc CHANGELOG README
%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}
%changelog