Accepting request 1076521 from network
OBS-URL: https://build.opensuse.org/request/show/1076521 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pure-ftpd?expand=0&rev=6
This commit is contained in:
commit
d934b040c6
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 16 11:10:54 UTC 2023 - Stefan Schubert <schubi@suse.com>
|
||||||
|
|
||||||
|
- Migration of PAM settings to /usr/lib/pam.d.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 1 22:37:52 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Mon Aug 1 22:37:52 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package pure-ftpd
|
# spec file for package pure-ftpd
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -115,10 +115,16 @@ CFLAGS="%{optflags} -I%{_includedir}/mysql"
|
|||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
install -dD -m 0755 \
|
install -dD -m 0755 \
|
||||||
%{buildroot}%{_sysconfdir}/{%{name},%{name}/vhosts,pam.d,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}
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
install -dD -m 0755 %{buildroot}%{_pam_vendordir}
|
||||||
|
install -m 0644 %{SOURCE4} %{buildroot}%{_pam_vendordir}/pure-ftpd
|
||||||
|
%else
|
||||||
|
install -dD -m 0755 %{buildroot}%{_sysconfdir}/pam.d
|
||||||
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/pure-ftpd
|
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/pure-ftpd
|
||||||
|
%endif
|
||||||
|
|
||||||
install -m 0644 pureftpd.schema %{buildroot}%{_sysconfdir}/openldap/schema/
|
install -m 0644 pureftpd.schema %{buildroot}%{_sysconfdir}/openldap/schema/
|
||||||
|
|
||||||
@ -133,6 +139,18 @@ rm %{buildroot}/%{_docdir}/%{name}/pure-ftpd.conf
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre %{name}.service
|
%service_add_pre %{name}.service
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
# Prepare for migration to /usr/lib; save any old .rpmsave
|
||||||
|
for i in pam.d/pure-ftpd ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||||
|
done
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
# Migration to /usr/lib, restore just created .rpmsave
|
||||||
|
for i in pam.d/pure-ftpd ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
@ -164,7 +182,11 @@ fi
|
|||||||
%dir %{_sysconfdir}/apparmor/profiles
|
%dir %{_sysconfdir}/apparmor/profiles
|
||||||
%dir %{_sysconfdir}/apparmor/profiles/extras
|
%dir %{_sysconfdir}/apparmor/profiles/extras
|
||||||
%config %{_sysconfdir}/openldap/schema/pureftpd.schema
|
%config %{_sysconfdir}/openldap/schema/pureftpd.schema
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%{_pam_vendordir}/pure-ftpd
|
||||||
|
%else
|
||||||
%config %{_sysconfdir}/pam.d/pure-ftpd
|
%config %{_sysconfdir}/pam.d/pure-ftpd
|
||||||
|
%endif
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf
|
||||||
%config(noreplace) %{_sysconfdir}/apparmor/profiles/extras/usr.sbin.pure-ftpd
|
%config(noreplace) %{_sysconfdir}/apparmor/profiles/extras/usr.sbin.pure-ftpd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user