diff --git a/README.md b/README.md index b40d315..a3ffd70 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # ntfs-3g_ntfsprogs +The NTFS-3G driver is an open source, GPL licensed, third generation Linux NTFS driver for 32-bit, little-endian architectures which was implemented by the Linux-NTFS project. +It provides full read-write access to NTFS, excluding access to encrypted files, writing compressed files, changing file ownership, access right. + +Technically it's based on and a major improvement to the third generation Linux NTFS driver, ntfsmount. +The improvements includes functionality, quality and performance enhancements. + diff --git a/ntfs-3g-2010.3.6-nomtab.patch b/ntfs-3g-2010.3.6-nomtab.patch new file mode 100644 index 0000000..4684177 --- /dev/null +++ b/ntfs-3g-2010.3.6-nomtab.patch @@ -0,0 +1,28 @@ +diff -up ntfs-3g-2010.3.6/src/ntfs-3g.c.orig ntfs-3g-2010.3.6/src/ntfs-3g.c +--- ntfs-3g-2010.3.6/src/ntfs-3g.c.orig 2009-03-03 19:01:21.000000000 -0500 ++++ ntfs-3g-2010.3.6/src/ntfs-3g.c 2009-03-26 18:37:45.000000000 -0400 +@@ -2012,10 +2012,11 @@ static int parse_options(int argc, char + { + int c; + +- static const char *sopt = "-o:hvV"; ++ static const char *sopt = "-o:hnvV"; + static const struct option lopt[] = { + { "options", required_argument, NULL, 'o' }, + { "help", no_argument, NULL, 'h' }, ++ { "nomtab", no_argument, NULL, 'n' }, + { "verbose", no_argument, NULL, 'v' }, + { "version", no_argument, NULL, 'V' }, + { NULL, 0, NULL, 0 } +@@ -2055,6 +2056,11 @@ static int parse_options(int argc, char + if (strappend(&opts.options, optarg)) + return -1; + break; ++ case 'n': ++ /* We must handle the 'nomtab' option even if ++ * we don't use it because mount(8) passes it. ++ */ ++ break; + case 'h': + usage(); + exit(9); diff --git a/ntfs-3g-policy b/ntfs-3g-policy new file mode 100644 index 0000000..108722f --- /dev/null +++ b/ntfs-3g-policy @@ -0,0 +1,18 @@ + + + + + + ntfs-3g + ntfs-3g + nonempty + show_sys_files + silent + no_def_opts + dmask= + fmask= + uid= + locale= + + + diff --git a/ntfs-3g_ntfsprogs.spec b/ntfs-3g_ntfsprogs.spec new file mode 100644 index 0000000..e2e1b03 --- /dev/null +++ b/ntfs-3g_ntfsprogs.spec @@ -0,0 +1,288 @@ +%define libname lib%{name} + +Name: ntfs-3g_ntfsprogs +Version: 2013.1.13 +Release: 1mamba +Epoch: 1 +Summary: A read-write NTFS driver +Group: System/Kernel and Hardware/Drivers +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://www.tuxera.com/community/ +Source: http://tuxera.com/opensource/ntfs-3g_ntfsprogs-%{version}.tgz +Source1: ntfs-3g-policy +Patch: ntfs-3g-2010.3.6-nomtab.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: fuse +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: libfuse-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The NTFS-3G driver is an open source, GPL licensed, third generation Linux NTFS driver for 32-bit, little-endian architectures which was implemented by the Linux-NTFS project. +It provides full read-write access to NTFS, excluding access to encrypted files, writing compressed files, changing file ownership, access right. + +Technically it's based on and a major improvement to the third generation Linux NTFS driver, ntfsmount. +The improvements includes functionality, quality and performance enhancements. + +%package -n ntfs-3g +Summary: A read-write NTFS driver +Group: System/Kernel and Hardware/Drivers +Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} +Requires: fuse + +%description -n ntfs-3g +The NTFS-3G driver is an open source, GPL licensed, third generation Linux NTFS driver for 32-bit, little-endian architectures which was implemented by the Linux-NTFS project. +It provides full read-write access to NTFS, excluding access to encrypted files, writing compressed files, changing file ownership, access right. + +Technically it's based on and a major improvement to the third generation Linux NTFS driver, ntfsmount. +The improvements includes functionality, quality and performance enhancements. + +%package -n ntfsprogs +Summary: NTFS filesystem utilities +Group: System/Kernel and Hardware +Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n ntfsprogs +NTFS filesystem utilities. + +%package -n %{libname} +Summary: NTFS-3G library +Group: System/Libraries +Provides: libntfs +Obsoletes: libntfs + +%description -n %{libname} +The NTFS-3G driver library. + +%package -n %{libname}-devel +Summary: Devel package for %{libname} +Group: Development/Libraries +Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} +Provides: libntfs-devel +Obsoletes: libntfs-devel + +%description -n %{libname}-devel +The NTFS-3G driver library. + +This package contains static libraries and header files need for development. + +%prep +%setup -q +#%patch -p1 + +%build +%configure \ + --disable-ldconfig + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -D -m 644 %{S:1} \ + %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/10-ntfs-3g-policy.fdi + +rm -rf %{buildroot}%{_defaultdocdir}/ntfs-3g + +ln -s mount.ntfs-3g %{buildroot}/sbin/mount.ntfs +ln -s mount.lowntfs-3g %{buildroot}/sbin/mount.lowntfs + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n ntfs-3g +tmpdir=`mktemp -d /tmp/%{name}.XXXXXX` || exit 1 +trap 'ret=$?; rm -rf $tmpdir && exit $ret' 0 +trap '(exit $?); exit' 1 2 13 15 +tmpfstab=`env TMPDIR="" mktemp -p $tmpdir tmpfile.XXXXXX` || exit 1 +[ -e /etc/fstab ] && cp /etc/fstab $tmpfstab || touch /etc/fstab +while read fs mount_point fstype options dump fsck_order ignore; do + case $fs in + /dev/*) + [ "$fstype" = ntfs-3g ] && continue + if [ "$fstype" != ntfs ]; then + devdisk="${fs/[0-9]*/}" + devfstype=$( /sbin/fdisk -l $devdisk 2>/dev/null | \ + sed -n "/^${fs//\//\\/}/{ + s,\*,,; # remove the star (bootable partition) + # select the 5th column (fs id) + s/\([^ ]*[ ]*\)\{4\}\([^ ]*\).*/\2/p}" ) + [ "$devfstype" = 7 ] || continue + fi + options="noauto,users,umask=002" + [ "$LANG" ] && options="$options,locale=$LANG" + sed -i "\@^$fs[ \t]*@d" /etc/fstab 2>/dev/null + echo "$fs $mount_point ntfs-3g $options 0 0" >> /etc/fstab + ;; + esac +done < $tmpfstab +> $tmpfstab +: + +%postun -n ntfs-3g +#erase +if [ $1 -eq 0 ]; then + tmpdir=`mktemp -d /tmp/%{name}.XXXXXX` || exit 1 + trap 'ret=$?; rm -rf $tmpdir && exit $ret' 0 + trap '(exit $?); exit' 1 2 13 15 + tmpfstab=`env TMPDIR="" mktemp -p $tmpdir tmpfile.XXXXXX` || exit 1 + [ -e /etc/fstab ] && cp /etc/fstab $tmpfstab || touch /etc/fstab + while read fs mount_point fstype options dump fsck_order ignore; do + case $fs in + /dev/*) + [ "$fstype" = ntfs-3g ] || continue + options="noauto,user,ro,umask=002" + sed -i "\@^$fs[ \t]*@d" /etc/fstab 2>/dev/null + echo "$fs $mount_point auto $options 0 0" >> /etc/fstab + ;; + esac + done < $tmpfstab + > $tmpfstab +fi +: + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n ntfs-3g +%defattr(-,root,root) +%{_bindir}/ntfs-3g* +%{_bindir}/lowntfs-3g* +/sbin/mount.ntfs +%attr(754,root,root) /sbin/mount.ntfs-3g +/sbin/mount.lowntfs +%attr(754,root,root) /sbin/mount.lowntfs-3g +%{_datadir}/hal/fdi/policy/10osvendor/10-ntfs-3g-policy.fdi +%{_mandir}/man8/*ntfs-3g* +%doc AUTHORS COPYING.LIB CREDITS ChangeLog NEWS README + +%files -n ntfsprogs +%defattr(-,root,root) +/sbin/mkfs.ntfs +%{_bindir}/ntfscat +%{_bindir}/ntfscluster +%{_bindir}/ntfscmp +%{_bindir}/ntfsfix +%{_bindir}/ntfsinfo +%{_bindir}/ntfsls +%{_sbindir}/mkntfs +%{_sbindir}/ntfsclone +%{_sbindir}/ntfscp +%{_sbindir}/ntfslabel +%{_sbindir}/ntfsresize +%{_sbindir}/ntfsundelete +%{_mandir}/man8/mkfs.ntfs.8* +%{_mandir}/man8/mkntfs.8* +%{_mandir}/man8/ntfscat.8* +%{_mandir}/man8/ntfsclone.8* +%{_mandir}/man8/ntfscluster.8* +%{_mandir}/man8/ntfscmp.8* +%{_mandir}/man8/ntfscp.8* +%{_mandir}/man8/ntfsfix.8* +%{_mandir}/man8/ntfsinfo.8* +%{_mandir}/man8/ntfslabel.8* +%{_mandir}/man8/ntfsls.8* +%{_mandir}/man8/ntfsprogs.8* +%{_mandir}/man8/ntfsresize.8* +%{_mandir}/man8/ntfsundelete.8* + +%files -n %{libname} +%defattr(-,root,root) +%{_libdir}/libntfs-3g.so.* + +%files -n %{libname}-devel +%defattr(-,root,root) +%{_includedir}/ntfs-3g +%{_libdir}/libntfs-3g.a +%{_libdir}/libntfs-3g.la +%{_libdir}/libntfs-3g.so +%{_libdir}/pkgconfig/libntfs-3g.pc + +%changelog +* Fri Jan 25 2013 Automatic Build System 2013.1.13-1mamba +- automatic version update by autodist + +* Mon Jan 23 2012 Automatic Build System 2012.1.15-1mamba +- automatic version update by autodist + +* Thu Apr 28 2011 Silvan Calarco 2011.4.12-2mamba +- added mount.ntfs symlink to mount.ntfs-3g to set automatic r/w mounts + +* Wed Apr 27 2011 Silvan Calarco 2011.4.12-1mamba +- update to 2011.4.12 (with ntfs-3g + ntfsprogs merge) + +* Tue Jan 25 2011 Automatic Build System 2011.1.15-1mamba +- automatic update by autodist + +* Fri Oct 08 2010 Automatic Build System 2010.10.2-1mamba +- automatic update to 2010.10.2 by autodist + +* Mon Aug 09 2010 Automatic Build System 2010.8.8-1mamba +- automatic update to 2010.8.8 by autodist + +* Sat May 22 2010 Automatic Build System 2010.5.16-1mamba +- automatic update to 2010.5.16 by autodist + +* Sun Apr 11 2010 Silvan Calarco 2010.3.6-2mamba +- removed duplicates of library in libntfs-3g-devel + +* Mon Mar 29 2010 Stefano Cotta Ramusino 2010.3.6-1mamba +- update to 2010.3.6 + +* Mon Jan 18 2010 Automatic Build System 2010.1.16-1mamba +- automatic update to 2010.1.16 by autodist + +* Tue Nov 17 2009 Automatic Build System 2009.11.14-1mamba +- automatic update to 2009.11.14 by autodist + +* Fri Apr 03 2009 Silvan Calarco 2009.4.4-1mamba +- automatic update to 2009.4.4 by autodist + +* Fri Mar 27 2009 Silvan Calarco 2009.3.8-1mamba +- automatic update to 2009.3.8 by autodist + +* Thu Feb 12 2009 Silvan Calarco 2009.2.1-1mamba +- automatic update to 2009.2.1 by autodist + +* Fri Jan 23 2009 Silvan Calarco 2009.1.1-1mamba +- automatic update to 2009.1.1 by autodist + +* Mon Dec 01 2008 Silvan Calarco 1.5130-1mamba +- automatic update to 1.5130 by autodist + +* Tue Oct 14 2008 Silvan Calarco 1.5012-1mamba +- automatic update to 1.5012 by autodist + +* Fri Sep 19 2008 Silvan Calarco 1.2918-1mamba +- automatic update to 1.2918 by autodist + +* Fri Aug 29 2008 Silvan Calarco 1.2812-1mamba +- update to 1.2812 + +* Mon Mar 10 2008 Silvan Calarco 1.2310-1mamba +- update to 1.2310 + +* Sat Nov 17 2007 Stefano Cotta Ramusino 1.1104-1mamba +- update to 1.1104 + +* Sat Aug 25 2007 Stefano Cotta Ramusino 1.810-1mamba +- update to 1.810 +- enabled hal backends to use ntfs-3g instead of standard ntfs driver + +* Sun May 27 2007 Stefano Cotta Ramusino 1.516-2mamba +- bumped to epoch 1 +- added %%post and %%postun scripts to enable/disable writing on ntfs partitions + +* Mon May 21 2007 Stefano Cotta Ramusino 1.516-1mamba +- update to 1.516 + +* Wed Apr 25 2007 Stefano Cotta Ramusino 1.417-1mamba +- update to 1.417 + +* Mon Jul 17 2006 Stefano Cotta Ramusino 20070714-1qilnx +- package created by autospec