Accepting request 1048506 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1048506 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/at?expand=0&rev=85
This commit is contained in:
commit
a0f45dd8d1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 27 13:35:20 UTC 2022 - Stefan Schubert <schubi@suse.com>
|
||||||
|
|
||||||
|
- Migration of PAM settings to /usr/lib/pam.d
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 18 12:31:43 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
Wed May 18 12:31:43 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
26
at.spec
26
at.spec
@ -83,7 +83,11 @@ autoreconf -fvi
|
|||||||
%sysusers_generate_pre %{SOURCE6} at system-user-at.conf
|
%sysusers_generate_pre %{SOURCE6} at system-user-at.conf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
install -d %{buildroot}{%{_pam_vendordir},%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8},%{_fillupdir}}
|
||||||
|
%else
|
||||||
install -d %{buildroot}{%{_sysconfdir}/pam.d,%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8},%{_fillupdir}}
|
install -d %{buildroot}{%{_sysconfdir}/pam.d,%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8},%{_fillupdir}}
|
||||||
|
%endif
|
||||||
|
|
||||||
export CFLAGS="%{?optflags}"
|
export CFLAGS="%{?optflags}"
|
||||||
export SENDMAIL=%{_sbindir}/sendmail
|
export SENDMAIL=%{_sbindir}/sendmail
|
||||||
@ -97,7 +101,11 @@ mv %{buildroot}/%{_prefix}/doc/at/* docs/
|
|||||||
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/atd.service
|
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/atd.service
|
||||||
ln -s service %{buildroot}%{_sbindir}/rcatd
|
ln -s service %{buildroot}%{_sbindir}/rcatd
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
install -m644 %{SOURCE2} %{buildroot}%{_pam_vendordir}/atd
|
||||||
|
%else
|
||||||
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/atd
|
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/atd
|
||||||
|
%endif
|
||||||
install -m644 %{SOURCE3} %{buildroot}%{_fillupdir}
|
install -m644 %{SOURCE3} %{buildroot}%{_fillupdir}
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sysusersdir}
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
@ -105,6 +113,12 @@ install -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/
|
|||||||
|
|
||||||
%pre -f at.pre
|
%pre -f at.pre
|
||||||
%service_add_pre atd.service
|
%service_add_pre atd.service
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||||
|
for i in pam.d/atd ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun atd.service
|
%service_del_preun atd.service
|
||||||
@ -120,12 +134,24 @@ install -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/
|
|||||||
%postun
|
%postun
|
||||||
%service_del_postun atd.service
|
%service_del_postun atd.service
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%posttrans
|
||||||
|
# Migration to /usr/etc, restore just created .rpmsave
|
||||||
|
for i in pam.d/atd ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Problems README ChangeLog timespec
|
%doc Problems README ChangeLog timespec
|
||||||
%license COPYING Copyright
|
%license COPYING Copyright
|
||||||
%config(noreplace) %{_sysconfdir}/at.deny
|
%config(noreplace) %{_sysconfdir}/at.deny
|
||||||
%{_sbindir}/rcatd
|
%{_sbindir}/rcatd
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%attr(644,root,root) %{_pam_vendordir}/atd
|
||||||
|
%else
|
||||||
%config %attr(644,root,root) %{_sysconfdir}/pam.d/atd
|
%config %attr(644,root,root) %{_sysconfdir}/pam.d/atd
|
||||||
|
%endif
|
||||||
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/at
|
%verify(not mode) %attr(4750,root,trusted) %{_bindir}/at
|
||||||
%{_bindir}/atq
|
%{_bindir}/atq
|
||||||
%{_bindir}/atrm
|
%{_bindir}/atrm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user