the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: gnome-vfs2-unified
Version: 2.24.2
Epoch: 1
Revision: 2
Depends: <<
%N-shlibs (= %e:%v-%r),
dbus (>= 1.2.1-1),
dbus-glib1.2-shlibs,
dbus1.3-shlibs,
dpkg-base-files,
gconf2 (>= 2.28.0-1),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
libavahi-client3-shlibs (>= 0.6.25-3),
libavahi-common3-shlibs (>= 0.6.25-3),
libavahi-glib1-shlibs (>= 0.6.25-2),
libgettext8-shlibs,
libxml2-shlibs (>= 2.6.30-1)
<<
BuildDepends: <<
autoconf2.6,
automake1.11,
bzip2-dev,
dbus-glib1.2-dev,
dbus1.3-dev,
fink (>= 0.24.12-1),
fink-package-precedence (>= 0.5),
gconf2-dev (>= 2.28.0-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
gnome-common (>= 2.28.0-1),
gtk-doc (>= 1.13-5),
intltool40,
libavahi-client3-dev,
libavahi-common3-dev,
libavahi-glib1-dev (>= 0.6.25-2),
libgettext8-dev,
libiconv-dev,
libtool2,
libxml2 (>= 2.6.30-1),
libxslt,
orbit2-dev (>= 2.14.17-2),
pkgconfig (>= 0.23),
system-openssl-dev
<<
Replaces: gnome-vfs2 (<< 2.15.0-1), gnome-vfs2-ssl (<< 2.15.0-1), libgnome2 (<< 2.6.0-6)
Source: mirror:gnome:sources/gnome-vfs/2.24/gnome-vfs-%v.tar.bz2
Source-MD5: 371d13e7306eb82e3fe3748a7584c440
PatchFile: %n.patch
PatchFile-MD5: 4aedc3eadd9e45a26dcc14f10d2a9905
PatchScript: <<
%{default_script}
perl -pi -e 's|open64|||g; s|posix_fadvise||g' configure.in
autoreconf -f -i
perl -pi -e 's|data_dirs = "/usr|data_dirs = "%p/share:/usr|g' libgnomevfs/xdgmime.c
perl -pi -e 's|/etc/fstab|/etc/fstab.hd|g' libgnomevfs/gnome-vfs-unix-mounts.c
<<
SetCPPFLAGS: -fno-common
SetCFLAGS: -Os
SetLDFLAGS: -L%p/lib/system-openssl/lib
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --enable-ipv6 --enable-avahi --disable-howl --disable-gnutls --disable-samba --disable-fam --disable-hal --libexecdir=%p/sbin --disable-static --enable-shared --enable-dependency-tracking --disable-schemas-install PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/system-openssl/lib/pkgconfig:$PKG_CONFIG_PATH" --enable-gtk-doc
CompileScript: <<
SSH_PROGRAM=/usr/bin/ssh gvfs_cv_HAVE_POSIX_ACLS=no ./configure %c --libdir=%p/lib/gnome-vfs2.16
make
# perl -pi -e 's/-lssl//g; s/-lcrypto//g' libgnomevfs/.libs/libgnomevfs-2.lai
fink-package-precedence --prohibit-bdep %n-dev .
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR="%d" GTKDOC_REBASE=%p/bin/gtkdoc-rebase
pushd %i/lib
ln -s gnome-vfs2.16/libgnomevfs-2.dylib .
ln -s gnome-vfs2.16/libgnomevfs-2.la .
mv gnome-vfs2.16/pkgconfig .
<<
PostInstScript: <<
if [ configure = "$1" ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
for i in desktop_default_applications desktop_gnome_url_handlers \
system_dns_sd system_http_proxy system_smb; do
gconftool-2 --makefile-install-rule %p/etc/gconf/schemas/$i.schemas >/dev/null
done
fi
<<
SplitOff: <<
Package: %N-shlibs
Depends: <<
bzip2-shlibs,
dbus-glib1.2-shlibs,
dbus1.3-shlibs,
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
gnome-mime-data (>= 2.18.0-1),
libavahi-client3-shlibs (>= 0.6.25-3),
libavahi-common3-shlibs (>= 0.6.25-3),
libavahi-glib1-shlibs (>= 0.6.25-2),
libgettext8-shlibs,
libxml2-shlibs (>= 2.6.30-1),
xdg-base
<<
DescPackaging: <<
share/locale was in %N until 2.10.0-5
<<
Replaces: gnome-vfs2-shlibs (<< 2.15.0-1), gnome-vfs2-ssl-shlibs (<< 2.15.0-1), gnome-vfs2 (<< 2.10.1-5), gnome-vfs2-ssl (<< 2.10.1-5), gnome-vfs2-unified-dev (<< 1:2.24.2-1)
Files: <<
lib/gnome-vfs2.16/libgnomevfs-2.*.dylib
lib/gnome-vfs2.16/gnome-vfs-2.0/modules
share/locale
<<
Shlibs: <<
%p/lib/gnome-vfs2.16/libgnomevfs-2.0.dylib 2401.0.0 %n (>= 1:2.24.0-1)
<<
DocFiles: AUTHORS COPYING* ChangeLog NEWS README
<<
SplitOff2: <<
Package: %N-dev
Depends: <<
%N-shlibs (= %e:%v-%r),
dpkg-base-files
<<
DescPackaging: <<
modules/lib*.{a,la} were in %N-shlibs until 2.10.0-5
<<
Replaces: gnome-vfs2-dev (<< 2.15.0-1), gnome-vfs2-ssl-dev (<< 2.15.0-1), gnome-vfs2-shlibs (<< 2.10.0-5), gnome-vfs2-ssl-shlibs (<< 2.10.0-5)
BuildDependsOnly: True
Files: <<
include share/gtk-doc
lib
<<
DocFiles: AUTHORS COPYING* ChangeLog NEWS README
<<
ConfFiles: <<
%p/etc/gnome-vfs-2.0/modules/default-modules.conf
%p/etc/gconf/schemas/desktop_default_applications.schemas
%p/etc/gconf/schemas/desktop_gnome_url_handlers.schemas
%p/etc/gconf/schemas/system_dns_sd.schemas
%p/etc/gconf/schemas/system_http_proxy.schemas
%p/etc/gconf/schemas/system_smb.schemas
<<
DocFiles: AUTHORS COPYING* ChangeLog NEWS README
Description: The GNOME virtual file-system libraries
DescDetail: <<
GNOME VFS is the GNOME virtual file system. It is the foundation of the
Nautilus file manager. It provides a modular architecture and ships with
several modules that implement support for file systems, http, ftp and others.
It provides a URI-based API, a backend supporting asynchronous file operations,
a MIME type manipulation library and other features.
<<
DescPackaging: <<
# Remove -lssl and -lcrypto flags from *.la files to make dependent
# programs depends on those crypto libraries directly and pass their
# own flags. (avoids accidental linking of fink's openssl)
dpkg-base-files now cleans all library dependency info from .la
Play many games to place openssl flags first in order to
assure system-openssl-dev trumps fink's opensslX packages
Disable fam because we haven't usually had it and don't know
if its support works (would be supplied by gamin package).
Disable howl because we haven't usually had it and don't know
if its support works.
Compensate for gtk-doc bug. See:
http://bugzilla.gnome.org/show_bug.cgi?id=583170
<<
DescUsage: <<
ABI BREAKAGE! Between 2.15.2 and 2.15.3, several symbols were
removed from the public interface of libgnomevfs-2.0.dylib:
gnome_vfs_mime_component_list_free
gnome_vfs_mime_get_all_components
gnome_vfs_mime_get_default_component
If you need any of those symbols, remain below version 2.15.3.
See: http://bugzilla.gnome.org/show_bug.cgi?id=348100
Current library is therefore pushed into a subdirectory of lib/
so we can keep old around (from older pre-unified packages) if
really need it.
<<
DescPort: <<
Need -lresolv to get res_9_ symbols due to
http://bugzilla.gnome.org/show_bug.cgi?id=509715
Clean up neon compiler flags. See:
http://bugzilla.gnome.org/show_bug.cgi?id=511189
And also don't bother with NEON_CFLAGS that are not
appropriate when compiling neon in its own directory.
Not fixing ACL-support test. See:
http://bugzilla.gnome.org/show_bug.cgi?id=511195
<<
License: GPL/LGPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org/
diff -Nurd -x'*~' gnome-vfs-2.24.0.orig/acinclude.m4 gnome-vfs-2.24.0/acinclude.m4
--- gnome-vfs-2.24.0.orig/acinclude.m4 2008-09-14 07:24:46.000000000 -0400
+++ gnome-vfs-2.24.0/acinclude.m4 2008-10-15 00:52:13.000000000 -0400
@@ -235,7 +235,6 @@
AC_MSG_NOTICE([using bundled neon ($NEON_VERSION)])
NEON_BUILD_BUNDLED="yes"
LIBNEON_SOURCE_CHECKS
-NEON_CFLAGS="$CFLAGS -I.. -I../.. -I$srcdir/$neon_bundled_srcdir"
NEON_NEED_XML_PARSER=yes
neon_library_message="included libneon (${NEON_VERSION})"
@@ -267,8 +266,8 @@
#xml parser stuff
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= $XML_REQUIRED)
-NEON_CFLAGS="$NEON_CFLAGS $LIBXML_CFLAGS"
-NEON_LIBS="$NEON_LIBS $LIBXML_LIBS"
+NEON_CFLAGS="$NEON_CFLAGS $OPENSSL_CFLAGS $LIBXML_CFLAGS"
+NEON_LIBS="$NEON_LIBS $OPENSSL_LIBS $LIBXML_LIBS"
AC_DEFINE(HAVE_LIBXML, 1, [Define if you have libxml])
@@ -403,10 +402,11 @@
Darwin) ne_cv_os_macosx=yes ;;
*) ne_cv_os_macosx=no ;;
esac])
-if test $ne_cv_os_macosx = yes; then
- CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
- LDFLAGS="$LDFLAGS -flat_namespace"
-fi
+dnl not appropriate for modern darwin (back at least to 10.3)
+dnl if test $ne_cv_os_macosx = yes; then
+dnl CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
+dnl LDFLAGS="$LDFLAGS -flat_namespace"
+dnl fi
])
AC_DEFUN([NEON_FORMAT_PREP], [
diff -Nurd -x'*~' gnome-vfs-2.24.0.orig/configure.in gnome-vfs-2.24.0/configure.in
--- gnome-vfs-2.24.0.orig/configure.in 2008-09-22 05:34:00.000000000 -0400
+++ gnome-vfs-2.24.0/configure.in 2008-10-15 01:01:07.000000000 -0400
@@ -451,8 +451,8 @@
AC_PATH_PROG([KRB5_CONFIG], krb5-config, none, $PATH:/usr/kerberos/bin)
if test "x$KRB5_CONFIG" != "xnone"; then
- GSSAPI_LIBS="`${KRB5_CONFIG} --libs gssapi`"
- GSSAPI_CFLAGS="`${KRB5_CONFIG} --cflags gssapi`"
+ GSSAPI_LIBS="`${KRB5_CONFIG} --libs gssapi | sed -e 's,-L/usr/lib,,'`"
+ GSSAPI_CFLAGS="`${KRB5_CONFIG} --cflags gssapi | sed -e 's,-L/usr/include,,'`"
saved_CPPFLAGS="$CPPFLAGS"
saved_LIBS="$LIBS"
@@ -489,7 +489,6 @@
dnl ******************************
dnl http-method (neon checks)
dnl ******************************
-VFS_NEON_BUNDLED(imported/neon)
AC_ARG_ENABLE(http-debug,
[AS_HELP_STRING([--enable-http-debug],[Enable HTTP method debugging])],
@@ -658,6 +657,10 @@
dnl end of PKG_CHECK_MODULES(openssl)
fi
+# this is patched (acinclude.m4) to slurp OPENSSL_, so must be after
+# openssl tests, cf http://bugzilla.gnome.org/show_bug.cgi?id=511189
+VFS_NEON_BUNDLED(imported/neon)
+
dnl ****************************
dnl GNUTLS
dnl ****************************
@@ -1045,8 +1048,8 @@
dnl ==============================================================================
PKG_CHECK_MODULES(LIBGNOMEVFS, glib-2.0 >= $GLIB_REQUIRED gmodule-no-export-2.0 >= $GLIB_REQUIRED gthread-2.0 >= $GLIB_REQUIRED gobject-2.0 >= $GLIB_REQUIRED gconf-2.0 >= $GCONF_REQUIRED libxml-2.0 >= $XML_REQUIRED gnome-mime-data-2.0 $dbus_requirement)
-LIBGNOMEVFS_CFLAGS="$LIBGNOMEVFS_CFLAGS $OPENSSL_CFLAGS $LIBGNUTLS_CFLAGS $HOWL_CFLAGS $AVAHI_CFLAGS"
-LIBGNOMEVFS_LIBS="$LIBGNOMEVFS_LIBS $OPENSSL_LIBS $LIBGNUTLS_LIBS $HOWL_LIBS $AVAHI_LIBS $RESOLVER_LIBS"
+LIBGNOMEVFS_CFLAGS="$OPENSSL_CFLAGS $LIBGNOMEVFS_CFLAGS $LIBGNUTLS_CFLAGS $HOWL_CFLAGS $AVAHI_CFLAGS"
+LIBGNOMEVFS_LIBS="$OPENSSL_LIBS $LIBGNOMEVFS_LIBS $LIBGNUTLS_LIBS $HOWL_LIBS $AVAHI_LIBS $RESOLVER_LIBS"
AC_SUBST(LIBGNOMEVFS_CFLAGS)
AC_SUBST(LIBGNOMEVFS_LIBS)
@@ -1095,7 +1098,7 @@
AC_CACHE_CHECK([for POSIX ACL], gvfs_cv_HAVE_POSIX_ACLS,[
acl_LIBS=$LIBS
- LIBS="$LIBS -lacl"
+ LIBS="$LIBS $ACL_LIBS"
AC_TRY_LINK([#include
#include
[ acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry (acl, entry_id, entry_p);],
diff -Nurd -x'*~' gnome-vfs-2.24.0.orig/imported/neon/Makefile.am gnome-vfs-2.24.0/imported/neon/Makefile.am
--- gnome-vfs-2.24.0.orig/imported/neon/Makefile.am 2008-09-14 07:24:45.000000000 -0400
+++ gnome-vfs-2.24.0/imported/neon/Makefile.am 2008-10-15 00:55:42.000000000 -0400
@@ -9,13 +9,12 @@
INCLUDES = \
-DNE_HAVE_DAV \
$(SSL_DEFINES) \
- $(NEON_CFLAGS) \
- $(LIBGNOMEVFS_CFLAGS) \
- $(GSSAPI_CFLAGS) \
-I$(top_srcdir) \
-I$(top_builddir) \
-I$(top_srcdir)/libgnomevfs \
-I$(top_builddir)/libgnomevfs \
+ $(NEON_CFLAGS) \
+ $(LIBGNOMEVFS_CFLAGS) \
$(NULL)
noinst_LTLIBRARIES = libneon.la
@@ -64,6 +63,7 @@
libneon_la_LIBADD = \
$(NEON_LIBS) $(NEON_LTLIBS) \
+ $(LIBGNOMEVFS_LIBS) \
$(NULL)
libneon_la_LDFLAGS = \
diff -Nurd -x'*~' gnome-vfs-2.24.0.orig/libgnomevfs/Makefile.am gnome-vfs-2.24.0/libgnomevfs/Makefile.am
--- gnome-vfs-2.24.0.orig/libgnomevfs/Makefile.am 2008-09-14 07:24:45.000000000 -0400
+++ gnome-vfs-2.24.0/libgnomevfs/Makefile.am 2008-10-15 01:21:03.000000000 -0400
@@ -114,6 +114,7 @@
$(SOCKET_LIBS) \
$(INTLLIBS) \
$(SELINUX_LIBS) \
+ -lresolv \
$(NULL)
libgnomevfs_2_la_LDFLAGS = \
diff -Nurd -x'*~' gnome-vfs-2.24.0.orig/modules/Makefile.am gnome-vfs-2.24.0/modules/Makefile.am
--- gnome-vfs-2.24.0.orig/modules/Makefile.am 2008-09-14 07:24:45.000000000 -0400
+++ gnome-vfs-2.24.0/modules/Makefile.am 2008-10-15 01:10:46.000000000 -0400
@@ -204,8 +204,8 @@
libhttp_la_LDFLAGS = $(module_flags)
libhttp_la_LIBADD = \
- $(MODULES_GCONF_LIBS) \
$(OPENSSL_LIBS) \
+ $(MODULES_GCONF_LIBS) \
../imported/neon/libneon.la \
../libgnomevfs/libgnomevfs-2.la