Implemented automatic /etc/fstab modifications.
[captive.git] / captive.spec.in
index 14483d5..3f2c438 100644 (file)
@@ -67,6 +67,18 @@ LUFS is a hybrid userspace filesystem framework.
 Package provides LUFS filesystem module to access Microsoft Windows platform
 filesystems such as NTFS.
 
+%package install
+Summary: Instant installer for Microsoft Windows platform filesystem access.
+Group: System Environment/Base
+Requires: captive-lufs = %{PACKAGE_VERSION}
+BuildRequires: ntfsprogs-devel
+Requires: ntfsprogs
+
+%description install
+Package provides easy enough unattended installation of Microsoft Windows
+platform filesystem access. Installer finds available NTFS partitions and
+tries to acquire needed Microsoft Windows filesystem driver files.
+
 #% %package devel
 #% Summary: Microsoft Windows platform filesystem access development support.
 #% Group: Development/System
@@ -131,6 +143,16 @@ rm -rf $RPM_BUILD_ROOT
 /sbin/mount.@PACKAGE@
 /sbin/mount.@PACKAGE@-*
 
+%post install
+%{_sbindir}/captive-install-fstab --add
+
+%preun install
+%{_sbindir}/captive-install-fstab --remove
+
+%files install
+%defattr(-,root,root)
+%{_sbindir}/captive-install-fstab
+
 # %files devel
 # %defattr(-,root,root)
 # %doc ChangeLog