diff --git a/pam_mount.changes b/pam_mount.changes index a627e95..49212a4 100644 --- a/pam_mount.changes +++ b/pam_mount.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Nov 3 10:06:25 UTC 2021 - Josef Möllers + +- Make symlinks between /sbin and /usr/sbin conditional as they + are not applicable under UsrMerge. + [pam_mount.spec] + ------------------------------------------------------------------- Mon Jan 4 12:12:40 UTC 2021 - Jan Engelhardt diff --git a/pam_mount.spec b/pam_mount.spec index 3fa303f..d2dff02 100644 --- a/pam_mount.spec +++ b/pam_mount.spec @@ -114,11 +114,13 @@ mkdir -p "$b/%_docdir/%name/examples" cp -a doc/bugs.txt doc/news.txt LICENSE* doc/faq.txt doc/todo.txt doc/options.txt "$b/%_docdir/%name/" install -m 755 %SOURCE1 "$b/%_docdir/%name/examples/" install -m 755 %SOURCE2 "$b/%_docdir/%name/examples/" +%if !0%{?usrmerged} mkdir -p "$b/sbin" ln -s /usr/sbin/mount.crypt "$b/sbin" ln -s /usr/sbin/umount.crypt "$b/sbin" ln -s /usr/sbin/mount.crypt_LUKS "$b/sbin" ln -s /usr/sbin/umount.crypt_LUKS "$b/sbin" +%endif %fdupes %buildroot/%_prefix %post @@ -149,7 +151,9 @@ fi %_sbindir/umount.* %_sbindir/pmvarrun %_sbindir/pmt-ehd +%if !0%{?usrmerged} /sbin/*mount* +%endif %config(noreplace) %_sysconfdir/security/pam_mount.conf.xml %doc %_mandir/man5/pam_mount.conf.5.gz %doc %_mandir/man8/*.8.gz