diff options
Diffstat (limited to 'x11-fm/nautilus2/files')
-rw-r--r-- | x11-fm/nautilus2/files/patch-aa | 59 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ab | 27 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ac | 289 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-xml-i18n-extract | 11 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-xml-i18n-merge | 11 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-xml-i18n-update | 11 |
6 files changed, 227 insertions, 181 deletions
diff --git a/x11-fm/nautilus2/files/patch-aa b/x11-fm/nautilus2/files/patch-aa index 4f01381ab0bb..5c7b55cccce7 100644 --- a/x11-fm/nautilus2/files/patch-aa +++ b/x11-fm/nautilus2/files/patch-aa @@ -1,11 +1,6 @@ - -$FreeBSD$ - ---- configure.orig Wed Jan 31 17:42:11 2001 -+++ configure Wed Jan 31 17:52:50 2001 -@@ -41,9 +41,9 @@ - ac_help="$ac_help - --enable-eazel-services Enable support for Eazel services (default is no)" +--- configure.orig Mon Mar 12 19:48:16 2001 ++++ configure Fri Mar 16 15:02:38 2001 +@@ -45,5 +45,5 @@ ac_help="$ac_help - --with-freetype2-libraries=PATH freetype2 library path" + --with-freetype2-lib-place=PREFIX freetype2 library path" @@ -13,49 +8,31 @@ $FreeBSD$ - --with-freetype2-includes=PATH freetype2 include path" + --with-freetype2-include-place=PREFIX freetype2 include path" ac_help="$ac_help - --with-freetype2-prefix=PATH freetype2 installation prefix" - ac_help="$ac_help -@@ -2789,15 +2789,15 @@ - _found_freetype2="no" - +@@ -3216,4 +3216,4 @@ # Check whether --with-freetype2-libraries or --without-freetype2-libraries was given. -if test "${with_freetype2_libraries+set}" = set; then - withval="$with_freetype2_libraries" +if test "${with_freetype2_lib_place+set}" = set; then + withval="$with_freetype2_lib_place" freetype2_lib_prefix=$withval - fi - - +@@ -3223,4 +3223,4 @@ # Check whether --with-freetype2-includes or --without-freetype2-includes was given. -if test "${with_freetype2_includes+set}" = set; then - withval="$with_freetype2_includes" +if test "${with_freetype2_include_place+set}" = set; then + withval="$with_freetype2_include_place" freetype2_include_prefix=$withval - fi - -@@ -2927,7 +2927,7 @@ - echo $ac_n "(cached) $ac_c" 1>&6 - else +@@ -3354,3 +3354,3 @@ ac_save_LIBS="$LIBS" -LIBS="-lpam -ldl $LIBS" +LIBS="-lpam $LIBS" cat > conftest.$ac_ext <<EOF - #line 2933 "configure" - #include "confdefs.h" -@@ -2967,7 +2967,7 @@ - echo $ac_n "(cached) $ac_c" 1>&6 - else +@@ -3394,3 +3394,3 @@ ac_save_LIBS="$LIBS" -LIBS="-lpam_misc -ldl -lpam $LIBS" +LIBS="-lpam_misc -lpam $LIBS" cat > conftest.$ac_ext <<EOF - #line 2973 "configure" - #include "confdefs.h" -@@ -2995,10 +2995,10 @@ - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then +@@ -3422,6 +3422,6 @@ echo "$ac_t""yes" 1>&6 - PAM_LIBS="-ldl -lpam -lpam_misc" + PAM_LIBS="-lpam -lpam_misc" @@ -64,23 +41,13 @@ $FreeBSD$ -PAM_LIBS="-ldl -lpam" +PAM_LIBS="-lpam" fi - - else -@@ -3235,7 +3235,7 @@ - - CC="$_save_cc" +@@ -3662,3 +3662,3 @@ -LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtksuperwin" +LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lstdc++ -lgtksuperwin" echo $ac_n "checking for gdk_superwin_get_type in -lgtksuperwin""... $ac_c" 1>&6 - echo "configure:3241: checking for gdk_superwin_get_type in -lgtksuperwin" >&5 - ac_lib_var=`echo gtksuperwin'_'gdk_superwin_get_type | sed 'y%./+-%__p_%'` -@@ -3598,7 +3598,7 @@ - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 -- rpm_libs=-lbz2 -+ rpm_libs="-lrpm -lbz2" - else - echo "$ac_t""no" 1>&6 +@@ -6117,3 +6117,3 @@ + if test x$SCROLLKEEPER_CONFIG = xno; then +- { echo "configure: error: Couldn't find scrollkeeper-config" 1>&2; exit 1; } ++ echo "configure: warning: Couldn't find scrollkeeper-config" 1>&2 fi diff --git a/x11-fm/nautilus2/files/patch-ab b/x11-fm/nautilus2/files/patch-ab index a46aeaaf19d8..169e4d76349d 100644 --- a/x11-fm/nautilus2/files/patch-ab +++ b/x11-fm/nautilus2/files/patch-ab @@ -1,13 +1,28 @@ ---- Makefile.in.orig Wed Aug 16 08:26:30 2000 -+++ Makefile.in Wed Aug 23 14:56:45 2000 -@@ -501,8 +501,8 @@ - $(mkinstalldirs) $(DESTDIR)/$(prefix)/bin - @list='nautilus-clean.sh'; for p in $$list; do\ +--- Makefile.in.orig Mon Mar 12 19:49:51 2001 ++++ Makefile.in Fri Mar 16 16:15:38 2001 +@@ -202,3 +202,3 @@ + +-SUBDIRS = data icons intl cut-n-paste-code librsvg libnautilus libnautilus-adapter libnautilus-extensions helper-utilities helper-scripts src components $(APPLETS_SUBDIRS) nautilus-installer test user-guide help po omf-install $(NULL) ++SUBDIRS = data icons intl cut-n-paste-code librsvg libnautilus libnautilus-adapter libnautilus-extensions helper-utilities helper-scripts src components $(APPLETS_SUBDIRS) nautilus-installer test user-guide help po $(NULL) + +@@ -607,4 +607,4 @@ if test -f $(srcdir)/$$p; then \ - echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ - $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ + echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ + $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ else :; fi; \ +@@ -620,4 +620,4 @@ + do \ +- echo $(INSTALL_PROGRAM) $$i $(icondir)/`basename $$i`; \ +- $(INSTALL_PROGRAM) $$i $(icondir)/`basename $$i`; \ ++ echo $(INSTALL_DATA) $$i $(icondir)/`basename $$i`; \ ++ $(INSTALL_DATA) $$i $(icondir)/`basename $$i`; \ + done +@@ -628,4 +628,4 @@ + do \ +- echo $(INSTALL_PROGRAM) $$i $(throbberdir)/`basename $$i`; \ +- $(INSTALL_PROGRAM) $$i $(throbberdir)/`basename $$i`; \ ++ echo $(INSTALL_DATA) $$i $(throbberdir)/`basename $$i`; \ ++ $(INSTALL_DATA) $$i $(throbberdir)/`basename $$i`; \ done - diff --git a/x11-fm/nautilus2/files/patch-ac b/x11-fm/nautilus2/files/patch-ac index 632cbbc8420a..8e4edd0bf3ab 100644 --- a/x11-fm/nautilus2/files/patch-ac +++ b/x11-fm/nautilus2/files/patch-ac @@ -1,54 +1,92 @@ $FreeBSD$ ---- libnautilus-extensions/nautilus-volume-monitor.c.orig Tue Jan 16 03:31:56 2001 -+++ libnautilus-extensions/nautilus-volume-monitor.c Wed Jan 31 21:29:21 2001 -@@ -60,7 +60,13 @@ - #include <fstab.h> +--- libnautilus-extensions/nautilus-volume-monitor.c.orig Sat Feb 24 01:54:34 2001 ++++ libnautilus-extensions/nautilus-volume-monitor.c Sun Mar 11 15:46:11 2001 +@@ -68,6 +68,12 @@ + #include <mntent.h> #endif +#ifdef __FreeBSD__ +#include <sys/param.h> +#include <sys/ucred.h> +#include <sys/mount.h> -+#else - #include <mntent.h> +#endif ++ + #ifdef HAVE_SYS_MNTTAB_H + #define SOLARIS_MNT 1 + #include <sys/mnttab.h> +@@ -327,6 +333,12 @@ + has_removable_mntent_options (struct mnttab *ent) + { - #ifdef MOUNT_AUDIO_CD ++#elif defined(__FreeBSD__) ++ ++static gboolean ++has_removable_mntent_options (struct fstab *ent) ++{ ++ + #else + + static gboolean +@@ -335,12 +347,18 @@ + + #endif /* HAVE_SYS_MNTTAB_H */ + ++#ifndef __FreeBSD__ + /* Use "owner" or "user" or "users" as our way of determining a removable volume */ + if (hasmntopt (ent, "user") != NULL + || hasmntopt (ent, "users") != NULL + || hasmntopt (ent, "owner") != NULL) { + return TRUE; + } ++#else ++ if (strstr (ent->fs_mntops, "noauto") != NULL) { ++ return TRUE; ++ } ++#endif -@@ -264,16 +270,25 @@ - GList * - nautilus_volume_monitor_get_removable_volumes (NautilusVolumeMonitor *monitor) + #if SOLARIS_MNT && HAVE_VOL + if (strstr (ent->mnt_special, "/vol/") == ent->mnt_special) { +@@ -360,23 +378,32 @@ + static GList * + get_removable_volumes (void) { +#ifndef __FreeBSD__ FILE *file; - GList *volumes; + #if HAVE_SYS_MNTTAB_H + struct mnttab dummy_ent; + struct mnttab *ent = &dummy_ent; + #else struct mntent *ent; -+#else -+ struct fstab *ent; -+#endif + #endif /* HAVE_SYS_MNTTAB_H */ ++#else /* __FreeBSD__ */ ++struct fstab *ent; ++#endif /* __FreeBSD__ */ + GList *volumes; NautilusVolume *volume; volumes = NULL; +#ifndef __FreeBSD__ - file = setmntent (_PATH_MNTTAB, "r"); - g_return_val_if_fail (file != NULL, NULL); + file = setmntent (PATH_MOUNT_TABLE, "r"); + if (file == NULL) { + return NULL; + } +#else + setfsent(); -+#endif ++#endif /* __FreeBSD__ */ +#ifndef __FreeBSD__ - while ((ent = getmntent (file)) != NULL) { - /* Use noauto as our way of determining a removable volume */ - if (strstr (ent->mnt_opts, MNTOPT_NOAUTO) != NULL) { -@@ -281,6 +296,15 @@ - volume->device_path = g_strdup (ent->mnt_fsname); - volume->mount_path = g_strdup (ent->mnt_dir); + #if HAVE_SYS_MNTTAB_H + while (! getmntent (file, ent)) { + /* On Solaris look for /vol/ for determining a removable volume */ +@@ -396,12 +423,27 @@ volume->filesystem = g_strdup (ent->mnt_type); -+#else /* FreeBSD, probably ;) */ + + #endif /* HAVE_SYS_MNTTAB_H */ ++#else /* __FreeBSD__ */ + while ((ent = getfsent ()) != NULL) { + /* Use noauto as our way of determining a removable volume */ + if (strstr (ent->fs_mntops, "noauto") != NULL) { @@ -56,11 +94,11 @@ $FreeBSD$ + volume->device_path = g_strdup (ent->fs_spec); + volume->mount_path = g_strdup (ent->fs_file); + volume->filesystem = g_strdup (ent->fs_vfstype); -+#endif - if (mount_volume_add_filesystem (volume)) { - mount_volume_get_name (volume); - volumes = g_list_append (volumes, volume); -@@ -290,7 +314,11 @@ ++ volume->is_removable = TRUE; ++ volume->is_read_only = (strstr (ent->fs_type, FSTAB_RO) !=NULL); ++#endif /* __FreeBSD__ */ + + volumes = mount_volume_add_filesystem (volume, volumes); } } @@ -72,62 +110,158 @@ $FreeBSD$ #ifdef MOUNT_AUDIO_CD volume = g_new0 (NautilusVolume, 1); -@@ -682,15 +710,27 @@ +@@ -419,6 +461,7 @@ + static gboolean + volume_is_removable (const NautilusVolume *volume) { - GList *current_mounts = NULL; - NautilusVolume *volume = NULL; +#ifndef __FreeBSD__ - FILE *fh; + FILE *file; + #if HAVE_SYS_MNTTAB_H + struct mnttab dummy_ent; +@@ -426,13 +469,21 @@ + #else + struct mntent *ent; + #endif /* HAVE_SYS_MNTTAB_H */ ++#else /* __FreeBSD__ */ ++ struct fstab *ent; ++#endif /* __FreeBSD__ */ + ++#ifndef __FreeBSD__ + file = setmntent (PATH_MOUNT_TABLE, "r"); + if (file == NULL) { + return FALSE; + } ++#else ++ setfsent(); ++#endif /* __FreeBSD__ */ + + /* Search for our device in the fstab */ ++#ifndef __FreeBSD__ + #if HAVE_SYS_MNTTAB_H + while (!getmntent (file, ent)) { + if (strcmp (volume->device_path, ent->mnt_special) == 0) { +@@ -455,8 +506,23 @@ + } + + #endif /* HAVE_SYS_MNTTAB_H */ +- ++#else /* __FreeBSD__ */ ++ while ((ent = getfsent ()) != NULL) { ++ /* Use noauto as our way of determining a removable volume */ ++ if (strcmp (volume->device_path, ent->fs_spec) == 0 ++ && has_removable_mntent_options (ent)) { ++ endfsent(); ++ return TRUE; ++ } ++ } ++#endif /* __FreeBSD__ */ ++ ++ ++#ifndef __FreeBSD__ + fclose (file); ++#else ++ endfsent(); ++#endif + return FALSE; + } + +@@ -484,14 +550,23 @@ + } + } + #else ++#ifndef __FreeBSD__ + struct mntent *ent; +- ++#else ++ struct fstab *ent; ++#endif ++ ++#ifndef __FreeBSD__ + file = setmntent (PATH_MOUNT_TABLE, "r"); + if (file == NULL) { + return FALSE; + } +- ++#else ++ setfsent(); ++#endif /* __FreeBSD__ */ ++ + /* Search for our device in the fstab */ ++#ifndef __FreeBSD__ + while ((ent = getmntent (file)) != NULL) { + if (strcmp (volume->device_path, ent->mnt_fsname) == 0) { + if (strstr (ent->mnt_opts, MNTOPT_RO) != NULL) { +@@ -500,9 +575,21 @@ + } + } + } ++#else /* __FreeBSD__ */ ++ while ((ent = getfsent ()) != NULL) { ++ if (strcmp (volume->device_path, ent->fs_spec) == 0 ++ && strstr (ent->fs_type, FSTAB_RO) != NULL) { ++ endfsent(); ++ return TRUE; ++ } ++ } ++ endfsent(); ++#endif + #endif + ++#ifndef __FreeBSD__ + fclose (file); ++#endif + return FALSE; + } + +@@ -975,14 +1062,26 @@ + + + #else ++#ifndef __FreeBSD__ char line[PATH_MAX * 3]; char device_name[sizeof (line)]; NautilusStringList *list; -+#else ++#else /* __FreeBSD__ */ + struct statfs *mounted; + int mounted_num; + int i; -+#endif ++#endif /* __FreeBSD__ */ +#ifndef __FreeBSD__ /* Open /proc/mounts */ fh = fopen (PATH_PROC_MOUNTS, "r"); g_return_val_if_fail (fh != NULL, NULL); -+#else ++#else /* __FreeBSD__ */ + mounted_num = getmntinfo(&mounted, MNT_WAIT); + g_return_val_if_fail (mounted_num > 0, NULL); -+#endif ++#endif /* __FreeBSD__ */ +#ifndef __FreeBSD__ while (fgets (line, sizeof(line), fh)) { if (sscanf (line, "%s", device_name) == 1) { - list = nautilus_string_list_new_from_tokens (line, " ", FALSE); -@@ -702,17 +742,25 @@ + list = nautilus_string_list_new_from_tokens (line, PROC_MOUNTS_SEPARATOR, FALSE); +@@ -995,11 +1094,20 @@ volume->device_path = nautilus_string_list_nth (list, 0); volume->mount_path = nautilus_string_list_nth (list, 1); volume->filesystem = nautilus_string_list_nth (list, 2); -- -+#else ++#else /* __FreeBSD__ */ + for (i = 0; i < mounted_num; i++) { + volume = g_new0 (NautilusVolume, 1); + volume->device_path = g_strdup(mounted[i].f_mntfromname); + volume->mount_path = g_strdup(mounted[i].f_mntonname); + volume->filesystem = g_strdup(mounted[i].f_fstypename); +#endif /* __FreeBSD__ */ - if (mount_volume_add_filesystem (volume)) { - mount_volume_get_name (volume); - current_mounts = g_list_append (current_mounts, volume); - } else { - nautilus_volume_monitor_free_volume (volume); - } + current_mounts = mount_volume_add_filesystem (volume, current_mounts); +#ifndef __FreeBSD__ } nautilus_string_list_free (list); } } -+#endif ++#endif /* __FreeBSD__ */ } - #ifdef MOUNT_AUDIO_CD -@@ -728,7 +776,9 @@ + #endif /* SOLARIS_MNT */ +@@ -1019,7 +1127,9 @@ } #endif @@ -137,53 +271,7 @@ $FreeBSD$ return current_mounts; -@@ -889,6 +939,45 @@ - return TRUE; - } - -+#ifdef 0 -+#ifdef __FreeBSD__ -+static void -+fstab_add_mount_volume (NautilusVolumeMonitor *monitor, struct fstab *ent) -+{ -+ NautilusVolume *volume; -+ gboolean mounted; -+ -+ volume = g_new0 (NautilusVolume, 1); -+ volume->device_path = g_strdup(ent->fs_spec); -+ volume->mount_path = g_strdup(ent->fs_file); -+ -+ mounted = FALSE; -+ -+ if (nautilus_str_has_prefix (ent->fs_spec, "/dev/fd")) { -+ mounted = mount_volume_floppy_add (monitor, volume); -+ } else if (strcmp (ent->fs_vfstype, "ufs") == 0) { -+ mounted = mount_volume_ext2_add (volume); -+ } else if (strcmp (ent->fs_vfstype, "nfs") == 0) { -+ mounted = mount_volume_nfs_add (volume); -+ } else if (strcmp (ent->fs_vfstype, "cd9660") == 0) { -+ mounted = mount_volume_iso9660_add (volume); -+ } else if (strcmp (ent->fs_vfstype, "msdos") == 0) { -+ mounted = mount_volume_msdos_add (volume); -+ } -+ -+ if (mounted) { -+ volume->is_read_only = strstr (ent->fs_type, FSTAB_RO) != NULL; -+ monitor->details->volumes = g_list_append (monitor->details->volumes, volume); -+ mount_volume_add_aliases (monitor, volume->device_path, volume); -+ } else { -+ g_free (volume->device_path); -+ g_free (volume->mount_path); -+ g_free (volume); -+ } -+} -+#endif -+#endif -+ - static void - cdrom_ioctl_get_info (int fd) - { -@@ -1025,6 +1114,14 @@ +@@ -1375,6 +1485,14 @@ break; } } @@ -198,3 +286,12 @@ $FreeBSD$ } #endif +@@ -1869,7 +1987,7 @@ + } + + if (mounted) { +-#ifndef SOLARIS_MNT ++#if !defined(SOLARIS_MNT) && !defined(__FreeBSD__) + volume->is_removable = volume_is_removable (volume); + volume->is_read_only = volume_is_read_only (volume); + #endif /* SOLARIS_MNT */ diff --git a/x11-fm/nautilus2/files/patch-xml-i18n-extract b/x11-fm/nautilus2/files/patch-xml-i18n-extract deleted file mode 100644 index a21354cc11b4..000000000000 --- a/x11-fm/nautilus2/files/patch-xml-i18n-extract +++ /dev/null @@ -1,11 +0,0 @@ - -$FreeBSD$ - ---- xml-i18n-extract 2001/01/31 17:44:52 1.1 -+++ xml-i18n-extract 2001/01/31 17:45:08 -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl -w - # -*- Mode: perl; indent-tabs-mode: nil; c-basic-offset: 2 -*- - - # diff --git a/x11-fm/nautilus2/files/patch-xml-i18n-merge b/x11-fm/nautilus2/files/patch-xml-i18n-merge deleted file mode 100644 index 137e5978ddfd..000000000000 --- a/x11-fm/nautilus2/files/patch-xml-i18n-merge +++ /dev/null @@ -1,11 +0,0 @@ - -$FreeBSD$ - ---- xml-i18n-merge 2001/01/31 17:44:52 1.1 -+++ xml-i18n-merge 2001/01/31 17:45:16 -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl -w - - # - # The XML Translation Merge Tool diff --git a/x11-fm/nautilus2/files/patch-xml-i18n-update b/x11-fm/nautilus2/files/patch-xml-i18n-update deleted file mode 100644 index abdebb38482b..000000000000 --- a/x11-fm/nautilus2/files/patch-xml-i18n-update +++ /dev/null @@ -1,11 +0,0 @@ - -$FreeBSD$ - ---- xml-i18n-update 2001/01/31 17:44:52 1.1 -+++ xml-i18n-update 2001/01/31 17:45:22 -@@ -1,4 +1,4 @@ --#!/usr/local/bin/perl -w -+#!/usr/bin/perl -w - - # The GNOME Translation Update Tool - # |