SHA256
1
0
forked from pool/pure-ftpd

Accepting request 1115551 from home:kukuk:branches:network

- Add pure-ftpd.ftpusers, the netcfg one is not maintained, outdated
  and will be removed.
- pure-ftpd.pam: use own copy of ftpusers.
- Remove hard systemd requires, it's not necessary.

OBS-URL: https://build.opensuse.org/request/show/1115551
OBS-URL: https://build.opensuse.org/package/show/network/pure-ftpd?expand=0&rev=90
This commit is contained in:
Peter Simons 2023-10-04 09:41:41 +00:00 committed by Git OBS Bridge
parent d69eae137d
commit a32aff7417
4 changed files with 28 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Oct 4 08:49:26 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Add pure-ftpd.ftpusers, the netcfg one is not maintained, outdated
and will be removed.
- pure-ftpd.pam: use own copy of ftpusers.
- Remove hard systemd requires, it's not necessary.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 16 11:10:54 UTC 2023 - Stefan Schubert <schubi@suse.com> Mon Jan 16 11:10:54 UTC 2023 - Stefan Schubert <schubi@suse.com>

16
pure-ftpd.ftpusers Normal file
View File

@ -0,0 +1,16 @@
#
# ftpusers This file describes the names of the users that may
# _*NOT*_ log into the system via the FTP server.
# This usually includes "root", "uucp", "news" and the
# like, because those users have too much power to be
# allowed to do "just" FTP...
#
adm
bin
daemon
games
mail
news
nobody
root
uucp

View File

@ -1,5 +1,5 @@
#%PAM-1.0 #%PAM-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed auth required pam_listfile.so item=user sense=deny file=/etc/pure-ftpd/ftpusers onerr=succeed
auth required pam_shells.so auth required pam_shells.so
auth include common-auth auth include common-auth
account include common-account account include common-account

View File

@ -29,6 +29,7 @@ Source2: %{name}.keyring
Source3: %{name}.init Source3: %{name}.init
Source4: %{name}.pamd Source4: %{name}.pamd
Source5: %{name}.xinetd Source5: %{name}.xinetd
Source6: %{name}.ftpusers
Source8: %{name}.service Source8: %{name}.service
# PATCH-FEATURE-OPENSUSE %{name}-1.0.20_config.patch -- Custom service configs. # PATCH-FEATURE-OPENSUSE %{name}-1.0.20_config.patch -- Custom service configs.
Patch0: %{name}-1.0.20_config.patch Patch0: %{name}-1.0.20_config.patch
@ -57,7 +58,6 @@ Provides: pureftpd = %{version}-%{release}
BuildRequires: postgresql-server-devel BuildRequires: postgresql-server-devel
%endif %endif
BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(systemd)
%{?systemd_requires}
Requires(pre): user(ftp) Requires(pre): user(ftp)
%description %description
@ -117,7 +117,7 @@ CFLAGS="%{optflags} -I%{_includedir}/mysql"
install -dD -m 0755 \ install -dD -m 0755 \
%{buildroot}%{_sysconfdir}/{%{name},%{name}/vhosts,openldap/schema} %{buildroot}%{_sysconfdir}/{%{name},%{name}/vhosts,openldap/schema}
install -m 0644 pure-ftpd.conf %{buildroot}%{_sysconfdir}/%{name} install -m 0644 pure-ftpd.conf %{buildroot}%{_sysconfdir}/%{name}
install -m 0600 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ftpusers
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
install -dD -m 0755 %{buildroot}%{_pam_vendordir} install -dD -m 0755 %{buildroot}%{_pam_vendordir}
install -m 0644 %{SOURCE4} %{buildroot}%{_pam_vendordir}/pure-ftpd install -m 0644 %{SOURCE4} %{buildroot}%{_pam_vendordir}/pure-ftpd
@ -188,6 +188,7 @@ fi
%config %{_sysconfdir}/pam.d/pure-ftpd %config %{_sysconfdir}/pam.d/pure-ftpd
%endif %endif
%config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf %config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf
%config(noreplace) %{_sysconfdir}/%{name}/ftpusers
%config(noreplace) %{_sysconfdir}/apparmor/profiles/extras/usr.sbin.pure-ftpd %config(noreplace) %{_sysconfdir}/apparmor/profiles/extras/usr.sbin.pure-ftpd
%{_unitdir}/%{name}.service %{_unitdir}/%{name}.service