# Build fully statically.
-# /usr/local/devel-static is required to contain static libraries.
+# /usr/local/staticbuild is required to contain static libraries.
%define static 1
Version: @VERSION@
Release: %{release}
Group: System Environment/Base
-Packager: Jan Kratochvil <project-captive@jankratochvil.net>
+Packager: Jan Kratochvil <lace@jankratochvil.net>
Source: http://www.jankratochvil.net/project/captive/dist/@PACKAGE@-@VERSION@.tar.gz
License: GPL
BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root
The implementation allows applications running under the GNU/Linux operating
system to access NTFS drives. File system driver compatibility with VFAT,
ISO9660 and EXT2 is also provided.
+
+http://www.jankratochvil.net/project/captive/
%if %{static}
This packaging is a standalone static version, no other packages are needed.
%endif
# 'define' of rpm(1) does not accept line-continuation backslashes ('\').
%if %{static}
+export CPPFLAGS="-I/usr/local/staticbuild/include/gnome-vfs-module-2.0"
%configure \
--disable-shared --enable-static \
--enable-standalone \
%pre fuse
%endif
%if %{static}
-/usr/sbin/groupadd -r fuse 2>/dev/null || \
- /usr/sbin/groupadd fuse 2>/dev/null || \
- true
+/usr/sbin/groupadd -r fuse 2>/dev/null || \
+ /usr/sbin/groupadd fuse 2>/dev/null || \
+ /usr/sbin/adduser --quiet --system --no-create-home fuse 2>/dev/null || \
+ echo >&2 "WARNING: Failed to create system group: fuse"
%endif
%post
/sbin/ldconfig
-/usr/sbin/groupadd -r captive 2>/dev/null || \
- /usr/sbin/groupadd captive 2>/dev/null || \
- true
+/usr/sbin/groupadd -r captive 2>/dev/null || \
+ /usr/sbin/groupadd captive 2>/dev/null || \
+ /usr/sbin/addgroup --system --quiet captive 2>/dev/null || \
+ echo >&2 "WARNING: Failed to create system group: captive"
/usr/sbin/useradd -r -c "Captive Sandbox" -s /sbin/nologin -g captive -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \
/usr/sbin/useradd -c "Captive Sandbox" -s /sbin/nologin -g captive -d %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \
- true
+ /usr/sbin/adduser --quiet --system --no-create-home --home %{_var}/lib/@PACKAGE@ captive 2>/dev/null || \
+ echo >&2 "WARNING: Failed to create system user: captive"
%if ! %{static}
%post fuse