NAME: gnome-commander VERSION: 0.9.8 RELEASE: 2 SUMMARY: A Gnome file manager similar to the Norton Commander (TM) DISTRIBUTION: Cygwin GNOME 1.4 VENDOR: LICENSE: GPL PACKAGER: Hansom Young GROUP: Applications/File OS: Cygwin ARCH: i586 SOURCE RPM: gnome-commander-0.9.8-2.src.rpm REQUIRES: cygwin(>1.3.12) gtk gdk-pixbuf imlib gnome-libs gnome-vfs DESCRIPTION: Gnome Commander is a file manager that just like the classical Norton Commander (TM) lets you do everything with the keyboard. It can perform all standard file operations and some extra features like FTP support. ---------------------------------------------------------------------- @ gnome-commander category: GNOME-apps curr: 0.9.8-2 requires: gtk gdk-pixbuf imlib gnome-libs gnome-vfs libintl1 ldesc: "A Gnome file manager similar to the Norton Commander (TM)" sdesc: "Gnome Commander is a file manager that just like the classical Norton Commander (TM) lets you do everything with the keyboard. It can perform all standard file operations and some extra features like FTP support." ---------------------------------------------------------------------- Cygwin Port Log ----------------- Sep 9, 2002 0.9.8-1 First Cygwin port. Sep, 12, 2002 0.9.8-2 DOS drives now use cdrom.xpm as icon. Already return TRUE in is_mounted. Build gnome-commander for Cygwin: --------------------------------- Gnome-commander homepage: http://www.freesoftware.fsf.org/gcmd/ You can find the source package there. To build gnome-commander, you need headers file and static libraries for gtk+, gdk-pixbuf, imlib, gnome-libs, gnome-vfs. Binary packages of them could be downloaded from the Cygwin GNOME project: http://www.sourceforge.net/projects/cygnome Libintl and libiconv are optional to build gnome-commander. They could be found in the Cygwin net release. Start building: - Unpack source package. - patch -p1 -b < gnome-commander-0.9.8-cygwin.patch - CFLAGS=-O2 ./configure --prefix=/opt/gnome - make - make install -------------- gnome-commander-0.9.8-cygwin.patch ------------------- diff -urp gnome-commander-0.9.8/configure gnome-commander-0.9.8-cygwin/configure --- gnome-commander-0.9.8/configure Tue Jul 16 00:13:48 2002 +++ gnome-commander-0.9.8-cygwin/configure Wed Jan 29 22:36:42 2003 @@ -3794,7 +3794,8 @@ EOF else $CC -o impgen impgen.c ; fi)~ $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' + #old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' + old_archive_from_expsyms_cmds= # cygwin and mingw dlls have different entry points and sets of symbols # to exclude. @@ -5639,7 +5640,8 @@ old_postuninstall_cmds=$lt_old_postunins old_archive_from_new_cmds=$lt_old_archive_from_new_cmds # Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds +#old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds +old_archive_from_expsyms_cmds= # Commands used to build and install a shared archive. archive_cmds=$lt_archive_cmds diff -urp gnome-commander-0.9.8/src/gnome-cmd-connection.c gnome-commander-0.9.8-cygwin/src/gnome-cmd-connection.c --- gnome-commander-0.9.8/src/gnome-cmd-connection.c Mon Jul 15 23:30:56 2002 +++ gnome-commander-0.9.8-cygwin/src/gnome-cmd-connection.c Wed Jan 29 23:02:42 2003 @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#include #include #include "gnome-cmd-includes.h" #include "gnome-cmd-connection-funcs.h" --- gnome-commander-0.9.8/src/gnome-cmd-connection.c Mon Jul 15 23:30:56 2002 +++ gnome-commander-0.9.8-cygwin/src/gnome-cmd-connection.c Wed Jan 29 22:36:10 2003 @@ -177,6 +178,7 @@ parse_mntents (void) { ent = getmntent (filep); if (ent) { +#ifndef __CYGWIN__ if (strcmp (ent->mnt_type, "iso9660") == 0) add_mntent (ent, DEV_TYPE_CDROM); else if (strncmp ("/dev/cd", ent->mnt_fsname, 7) == 0) @@ -187,6 +188,9 @@ parse_mntents (void) add_mntent (ent, DEV_TYPE_FLOPPY); else if (strncmp ("/dev/sd", ent->mnt_fsname, 7) == 0) add_mntent (ent, DEV_TYPE_DEFAULT); +#else + if (strlen(ent->mnt_fsname) == 2) then /* DOS drives */ + add_mntent (ent, DEV_TYPE_CDROM); + else + add_mntent (ent, DEV_TYPE_DEFAULT); +#endif } } while (ent != NULL);