forked from pool/ntfs-3g_ntfsprogs
Accepting request 419783 from filesystems
1 OBS-URL: https://build.opensuse.org/request/show/419783 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ntfs-3g_ntfsprogs?expand=0&rev=22
This commit is contained in:
commit
0d9986ae16
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Aug 11 21:39:51 UTC 2016 - Greg.Freemyer@gmail.com
|
||||||
|
|
||||||
|
- Fix update-alternatives usage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 21 22:56:13 UTC 2016 - Greg.Freemyer@gmail.com
|
Mon Mar 21 22:56:13 UTC 2016 - Greg.Freemyer@gmail.com
|
||||||
|
|
||||||
|
@ -53,11 +53,8 @@ Obsoletes: ntfsprogs-fuse < 1.13.1
|
|||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
# The build service fails to build the package because it doesn't really
|
Requires(preun): update-alternatives
|
||||||
# understand Requires(post), so use PreReq too (see bnc#439232).
|
Requires(postun): update-alternatives
|
||||||
PreReq: update-alternatives
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} > 1010
|
|
||||||
Supplements: filesystem(ntfs-3g)
|
Supplements: filesystem(ntfs-3g)
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -129,7 +126,6 @@ export LDFLAGS="-pie"
|
|||||||
--enable-extras \
|
--enable-extras \
|
||||||
--enable-crypto \
|
--enable-crypto \
|
||||||
--enable-quarantined
|
--enable-quarantined
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -138,8 +134,10 @@ make install DESTDIR="%buildroot"
|
|||||||
# Hal stuff for mounting on hotplug.
|
# Hal stuff for mounting on hotplug.
|
||||||
%{__mkdir_p} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
|
%{__mkdir_p} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
|
||||||
%{__install} -m 644 %{SOURCE2} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/21-storage-ntfs-3g.fdi
|
%{__install} -m 644 %{SOURCE2} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/21-storage-ntfs-3g.fdi
|
||||||
# Touch ghost files
|
# Alternatives for mount.ntfs (binary and manpage)
|
||||||
touch %{buildroot}/sbin/mount.ntfs %{buildroot}%{_mandir}/man8/mount.ntfs.8
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
ln -s -f %{_sysconfdir}/alternatives/mount.ntfs %{buildroot}/sbin/mount.ntfs
|
||||||
|
ln -s -f %{_sysconfdir}/alternatives/mount.ntfs.8%{ext_man} %{buildroot}%{_mandir}/man8/mount.ntfs.8%{?ext_man}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
TESTFS=$(mktemp) || exit 1
|
TESTFS=$(mktemp) || exit 1
|
||||||
@ -151,21 +149,14 @@ rm -v $TESTFS
|
|||||||
%post -n ntfs-3g
|
%post -n ntfs-3g
|
||||||
# If the mount.ntfs group is in automatic mode, then this will also switch all
|
# If the mount.ntfs group is in automatic mode, then this will also switch all
|
||||||
# symlinks automatically
|
# symlinks automatically
|
||||||
update-alternatives --install /sbin/mount.ntfs mount.ntfs /sbin/mount.ntfs-3g 10 --slave /usr/share/man/man8/mount.ntfs.8.gz mount.ntfs.8.gz /usr/share/man/man8/mount.ntfs-3g.8.gz
|
update-alternatives --install /sbin/mount.ntfs mount.ntfs /sbin/mount.ntfs-3g 10 --slave %{_mandir}/man8/mount.ntfs.8%{?ext_man} mount.ntfs.8%{?ext_man} %{_mandir}/man8/mount.ntfs-3g.8%{?ext_man}
|
||||||
|
|
||||||
%postun -n ntfs-3g
|
%preun -n ntfs-3g
|
||||||
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
|
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
|
||||||
if [ ! -f /sbin/mount.ntfs-3g ]; then
|
if [ ! -f /sbin/mount.ntfs-3g ]; then
|
||||||
update-alternatives --remove mount.ntfs /sbin/mount.ntfs-3g
|
update-alternatives --remove mount.ntfs /sbin/mount.ntfs-3g
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans -n ntfs-3g
|
|
||||||
# Workaround old bug in 11.1/11.2 packages that always removed the symlinks in
|
|
||||||
# %postun. Can be removed during 12.2 development.
|
|
||||||
if [ ! -f /sbin/mount.ntfs -a -f /sbin/mount.ntfs-3g ]; then
|
|
||||||
update-alternatives --install /sbin/mount.ntfs mount.ntfs /sbin/mount.ntfs-3g 10 --slave /usr/share/man/man8/mount.ntfs.8.gz mount.ntfs.8.gz /usr/share/man/man8/mount.ntfs-3g.8.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
%post -n libntfs-3g%soname -p /sbin/ldconfig
|
%post -n libntfs-3g%soname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libntfs-3g%soname -p /sbin/ldconfig
|
%postun -n libntfs-3g%soname -p /sbin/ldconfig
|
||||||
@ -184,6 +175,8 @@ fi
|
|||||||
%{_bindir}/ntfs-3g.usermap
|
%{_bindir}/ntfs-3g.usermap
|
||||||
%{_bindir}/lowntfs-3g
|
%{_bindir}/lowntfs-3g
|
||||||
%ghost /sbin/mount.ntfs
|
%ghost /sbin/mount.ntfs
|
||||||
|
%ghost %{_sysconfdir}/alternatives/mount.ntfs
|
||||||
|
%ghost %{_sysconfdir}/alternatives/mount.ntfs.8%{?ext_man}
|
||||||
/sbin/mount.ntfs-3g
|
/sbin/mount.ntfs-3g
|
||||||
/sbin/mount.lowntfs-3g
|
/sbin/mount.lowntfs-3g
|
||||||
%{_mandir}/man8/mount.lowntfs-3g.8%{?ext_man}
|
%{_mandir}/man8/mount.lowntfs-3g.8%{?ext_man}
|
||||||
|
Loading…
Reference in New Issue
Block a user