summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-09-17 03:54:30 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-09-17 03:54:30 +0000
commitdacd8b7f76cdb561ee412f5761e818b171e15850 (patch)
tree0b60d8554fd91c8d30c6392e99fed8c2e2eb4bcb /sys-fs
parentAdded to sys-fs from app-misc (diff)
downloadhistorical-dacd8b7f76cdb561ee412f5761e818b171e15850.tar.gz
historical-dacd8b7f76cdb561ee412f5761e818b171e15850.tar.bz2
historical-dacd8b7f76cdb561ee412f5761e818b171e15850.zip
Added to sys-fs from app-misc
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/mtoolsfm/Manifest8
-rw-r--r--sys-fs/mtoolsfm/files/digest-mtoolsfm-1.9.31
-rw-r--r--sys-fs/mtoolsfm/files/mtoolsfm.c.diff62
-rw-r--r--sys-fs/mtoolsfm/metadata.xml9
-rw-r--r--sys-fs/mtoolsfm/mtoolsfm-1.9.3.ebuild28
5 files changed, 104 insertions, 4 deletions
diff --git a/sys-fs/mtoolsfm/Manifest b/sys-fs/mtoolsfm/Manifest
index 554957b694b8..918433e55159 100644
--- a/sys-fs/mtoolsfm/Manifest
+++ b/sys-fs/mtoolsfm/Manifest
@@ -1,5 +1,5 @@
-MD5 d1d9def37127f9c318c473026de352be files/digest-mtoolsfm-1.9.3 66
-MD5 87ef961e5ed3682a37f8b66f2e0f9aaf files/mtoolsfm.c.diff 1767
-MD5 dc71c9272946192ab7eb3bca9e18921c ChangeLog 436
-MD5 b673cf33cbf617b25811bbb593cdddfe mtoolsfm-1.9.3.ebuild 745
+MD5 55a982151784471bf0d2ca8aeb4b31c5 mtoolsfm-1.9.3.ebuild 740
+MD5 e082578a8f79fd16c364b4792ef4d643 ChangeLog 651
MD5 503ccb1138f9c49f0855884d830988a6 metadata.xml 253
+MD5 87ef961e5ed3682a37f8b66f2e0f9aaf files/mtoolsfm.c.diff 1767
+MD5 d1d9def37127f9c318c473026de352be files/digest-mtoolsfm-1.9.3 66
diff --git a/sys-fs/mtoolsfm/files/digest-mtoolsfm-1.9.3 b/sys-fs/mtoolsfm/files/digest-mtoolsfm-1.9.3
new file mode 100644
index 000000000000..1aac6212c19a
--- /dev/null
+++ b/sys-fs/mtoolsfm/files/digest-mtoolsfm-1.9.3
@@ -0,0 +1 @@
+MD5 5ce76261ad969209c86b28e49924fc43 MToolsFM-1.9-3.tar.gz 177388
diff --git a/sys-fs/mtoolsfm/files/mtoolsfm.c.diff b/sys-fs/mtoolsfm/files/mtoolsfm.c.diff
new file mode 100644
index 000000000000..cc7b12e95fc4
--- /dev/null
+++ b/sys-fs/mtoolsfm/files/mtoolsfm.c.diff
@@ -0,0 +1,62 @@
+--- src/mtoolsfm.c 2001-08-27 08:45:25.000000000 +0200
++++ src/mtoolsfm.c.1 2003-07-04 20:24:03.000000000 +0200
+@@ -85,6 +85,10 @@
+ char *homedir;
+ int debug=0;
+
++char *leftpath = "";
++char *rightpath = "";
++int sidecount=0;
++
+ /* should a configuration file ~/.mtoolsfm be written in user's homedir ? */
+ #ifdef DEFAULT_NOSAVE
+ int nosave=1;
+@@ -652,6 +656,7 @@
+ char *nextposition;
+ unsigned int path_length=50;
+ unsigned int path_add=50;
++ sidecount++;
+
+ if (debug) {
+ printf ("In gethdpath()\n");
+@@ -660,11 +665,19 @@
+ clearpath (whichside);
+ errno = 0;
+ path = malloc (path_length * sizeof (char));
++ if (sidecount == 1 && strlen(leftpath) != 0) {
++ strcpy(path, leftpath);
++ }
++ else if (sidecount == 2 && strlen(rightpath) != 0) {
++ strcpy(path, rightpath);
++ }
++ else {
+ while ((!getcwd (path, path_length - 2)) && (errno == ERANGE))
+ {
+ if (debug) printf(" getcwd buffer resize: errno=%d, path_length=%d, path=%s\n",errno,path_length,path);
+ path = g_realloc (path, (path_length+=path_add) * sizeof (char));
+ }
++ }
+ strcat (path, "/");
+ if (debug)
+ printf (" path: %s\n", path);
+@@ -2920,6 +2933,20 @@
+ debug = 1;
+ else if (!strcmp (argv[i], "--debug"))
+ debug = 1;
++ else if (!strncmp (argv[i], "--leftpath", 10)) {
++ leftpath = strchr(argv[i], '=');
++ if(leftpath) {
++ *leftpath = 0;
++ leftpath++;
++ }
++ }
++ else if (!strncmp (argv[i], "--rightpath", 11)) {
++ rightpath = strchr(argv[i], '=');
++ if(rightpath) {
++ *rightpath = 0;
++ rightpath++;
++ }
++ }
+ else if (!strcmp (argv[i], "--help")) {
+ g_print ("\n%s%s\n%s%s%s\n",ABOUTMTOOLSFM_1,ABOUTMTOOLSFM_2,
+ MTOOLSFMOPTIONS_1,CONFFILE,MTOOLSFMOPTIONS_2);
diff --git a/sys-fs/mtoolsfm/metadata.xml b/sys-fs/mtoolsfm/metadata.xml
new file mode 100644
index 000000000000..c3504b40c506
--- /dev/null
+++ b/sys-fs/mtoolsfm/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>lanius@gentoo.org</email>
+ <name>Heinrich Wendel</name>
+</maintainer>
+</pkgmetadata>
diff --git a/sys-fs/mtoolsfm/mtoolsfm-1.9.3.ebuild b/sys-fs/mtoolsfm/mtoolsfm-1.9.3.ebuild
new file mode 100644
index 000000000000..23986e45fb04
--- /dev/null
+++ b/sys-fs/mtoolsfm/mtoolsfm-1.9.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtoolsfm/mtoolsfm-1.9.3.ebuild,v 1.1 2003/09/17 03:54:28 seemant Exp $
+
+inherit eutils
+
+S=${WORKDIR}/MToolsFM-${PV}
+DESCRIPTION="easy floppy-access under linux / UNIX"
+HOMEPAGE="http://www.core-coutainville.org/MToolsFM/"
+SRC_URI="http://www.core-coutainville.org/MToolsFM/archive/SOURCES/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+DEPEND="=x11-libs/gtk+-1.2*
+ sys-fs/mtools"
+
+src_unpack() {
+ unpack ${A} || die
+ cd ${S} || die
+ epatch ${FILESDIR}/mtoolsfm.c.diff
+}
+
+src_install() {
+ einstall install_prefix=${D}
+ dodoc AUTHORS COPYING ChangeLog NEWS README THANKS
+}