1 # http://gentoo-wiki.com/HOWTO_NTFS_write_with_Captive_approach
2 # nice article about how to use it in gentoo, should be easy to prot to pld
4 # please allow those bconds to remain here as next version might be gnome-vfs2 independent
5 # %bcond_without vfs # enable gnome2 cvs
6 Summary: Captive - NTFS read/write filesystem for Linux
7 Summary(pl): Captive - obs³uga NTFS dla Linuksa z odczytem i zapisem
13 Source0: http://www.jankratochvil.net/project/captive/dist/%{name}-%{version}.tar.gz
14 # Source0-md5: 34312cd854ca992f0daf0a8faabaae9a
15 Patch0: %{name}-popt_link.patch
16 URL: http://www.jankratochvil.net/project/captive/
18 BuildRequires: gnome-vfs2-devel >= 2.0
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: gettext-devel
23 BuildRequires: libfuse-devel >= 2.4.1
24 BuildRequires: libtool
25 BuildRequires: libxml2-devel >= 2.5.9
26 BuildRequires: openssl-devel
27 BuildRequires: perl-tools-pod
28 BuildRequires: pkgconfig
29 BuildRequires: readline-devel
30 BuildRequires: rpmbuild(macros) >= 1.202
31 BuildRequires: ORBit2-devel
32 BuildRequires: sed >= 4.0
33 Provides: group(captive)
34 Provides: user(captive)
35 Requires(postun): /usr/sbin/groupdel
36 Requires(postun): /usr/sbin/userdel
37 Requires(pre): /bin/id
38 Requires(pre): /usr/bin/getgid
39 Requires(pre): /usr/sbin/groupadd
40 Requires(pre): /usr/sbin/useradd
41 Requires: ntfsprogs >= 1.8.0
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 Captive project implements the first full read/write free access to
46 NTFS disk drives. You can mount your Microsoft Windows NT, 200x or XP
47 partition as a transparently accessible volume for your GNU/Linux.
49 This compatibility was achieved in the Wine way by using the original
50 Microsoft Windows ntfs.sys driver. It emulates the required subsystems
51 of the Microsoft Windows kernel by reusing one of the original
52 ntoskrnl.exe, ReactOS parts, or this project's own reimplementations,
53 on a case by case basis. Project includes the first open source
54 MS-Windows kernel API for Free operating systems. Involvement of the
55 original driver files was chosen to achieve the best and unprecedented
56 filesystem compatibility and safety.
59 Projekt Captive implementuje pierwszy pe³ny, swobodny dostêp z
60 odczytem i zapisem do partycji NTFS. Pozwala zamontowaæ partycje z
61 Microsoft Windows NT, 200x i XP jako dostêpny w sposób przezroczysty
64 Kompatybilno¶æ osi±gniêto metod± Wine poprzez u¿ycie oryginalnego
65 sterownika ntfs.sys. Captive emuluje wymagane podsystemy j±dra
66 Microsoft Windows poprzez wykorzystanie oryginalnego ntoskrnl.exe,
67 czê¶ci ReactOS-a lub w³asne implementacje z tego projektu w zale¿no¶ci
68 od danego przypadku. Projekt zawiera pierwsze API j±dra MS-Windows z
69 otwartymi ¼ród³ami dla wolnodostêpnych systemów operacyjnych. Wybrano
70 wykorzystanie plików oryginalnego sterownika aby osi±gn±æ lepsz±
71 kompatybilno¶æ i bezpieczeñstwo.
74 Summary: Header files for captive library
75 Summary(pl): Pliki nag³ówkowe biblioteki captive
76 Group: Development/Libraries
77 Requires: %{name} = %{version}-%{release}
80 This is the package containing the header files for captive.
82 %description devel -l pl
83 Ten pakiet zawiera pliki nag³ówkowe biblioteki captive.
86 Summary: Gnome vfs data for captive support
87 Summary(pl): Dane dla Gnome vfs z obs³ug± captive
88 Group: Development/Libraries
89 Requires: %{name} = %{version}-%{release}
90 Requires: gnome-vfs2 >= 2.0
93 Gnome vfs data for captive support.
95 %description gnome -l pl
96 Dane dla Gnome vfs z obs³ug± captive.
102 # Fix not finished moving captive-sandbox-server to libdir
103 sed -i -e 's/--sandbox-server=@sbindir@/--sandbox-server=@libdir@/g' src/client/gnomevfs/captive.conf.in
107 %{__aclocal} -I macros
115 --disable-bug-replay \
118 --disable-install-pkg \
119 --enable-sandbox-setuid=captive \
120 --enable-sandbox-setgid=captive \
121 --enable-sandbox-chroot=/var/lib/captive \
123 --enable-sbin-mountdir=/sbin \
124 --enable-sbin-mount-fs=ntfs:fastfat:cdfs:ext2fsd \
125 --with-oribt-line=link} \
131 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
136 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs.la
141 rm -rf $RPM_BUILD_ROOT
144 %groupadd -g 141 captive
145 %useradd -u 141 -r -d /var/lib/captive -s /bin/false -c "Captive User" -g captive captive
148 if [ "$1" = "0" ]; then
153 %files -f %{name}.lang
154 %defattr(644,root,root,755)
155 %doc AUTHORS NEWS README THANKS TODO
156 %attr(755,root,root) /sbin/*
157 %attr(755,root,root) %{_bindir}/captive-cmdline
158 #%attr(755,root,root) %{_bindir}/captive-bug-replay was here earlier.
159 %attr(755,root,root) %{_libdir}/captive-sandbox-server
160 %{_sysconfdir}/w32-mod-id.captivemodid.xml
161 %attr(755,root,root) %{_libdir}/libcaptive-*.so
166 %defattr(644,root,root,755)
167 %attr(755,root,root) %{_libdir}/libcaptive.so
168 %{_libdir}/libcaptive.la
169 %{_includedir}/captive
173 %defattr(644,root,root,755)
174 %{_sysconfdir}/gnome-vfs-2.0/modules/*
175 %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/libcaptive-gnomevfs*.so