diff options
author | Martin Matuska <mm@FreeBSD.org> | 2007-07-19 14:32:18 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2007-07-19 14:32:18 +0000 |
commit | 42b9350078e2078fff680540272dea2334e8d8ce (patch) | |
tree | 529ad1f92eea329448cc8f6058c439bd26c0f1dd /sysutils/fusefs-libs | |
parent | 839ecda0dbfa72f5130b17fa5212a09edbe5bb73 (diff) | |
download | ports-42b9350078e2078fff680540272dea2334e8d8ce.tar.gz ports-42b9350078e2078fff680540272dea2334e8d8ce.zip |
Notes
Diffstat (limited to 'sysutils/fusefs-libs')
-rw-r--r-- | sysutils/fusefs-libs/Makefile | 1 | ||||
-rw-r--r-- | sysutils/fusefs-libs/files/patch-subtype | 138 |
2 files changed, 139 insertions, 0 deletions
diff --git a/sysutils/fusefs-libs/Makefile b/sysutils/fusefs-libs/Makefile index 78d70bd1bd8b..9e77c8da5afd 100644 --- a/sysutils/fusefs-libs/Makefile +++ b/sysutils/fusefs-libs/Makefile @@ -6,6 +6,7 @@ PORTNAME= fusefs PORTVERSION= 2.7.0 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= fuse diff --git a/sysutils/fusefs-libs/files/patch-subtype b/sysutils/fusefs-libs/files/patch-subtype new file mode 100644 index 000000000000..0563b5794d4a --- /dev/null +++ b/sysutils/fusefs-libs/files/patch-subtype @@ -0,0 +1,138 @@ +--- ../fuse-2.7.0/include/fuse_common.h Mon Jul 2 13:32:15 2007 ++++ include/fuse_common.h Wed Apr 25 18:14:26 2007 +@@ -160,20 +160,8 @@ + int fuse_parse_cmdline(struct fuse_args *args, char **mountpoint, + int *multithreaded, int *foreground); + +-/** +- * Go into the background +- * +- * @param foreground if true, stay in the foreground +- * @return 0 on success, -1 on failure +- */ +-int fuse_daemonize(int foreground); + +-/** +- * Get the version of the library +- * +- * @return the version +- */ +-int fuse_version(void); ++int fuse_daemonize(int foreground); + + /* ----------------------------------------------------------- * + * Signal handling * +--- ../fuse-2.7.0/lib/helper.c Mon Jul 2 13:32:17 2007 ++++ lib/helper.c Wed Apr 25 18:14:26 2007 +@@ -29,7 +29,7 @@ + struct helper_opts { + int singlethread; + int foreground; +- int nodefault_subtype; ++ int fsname; + char *mountpoint; + }; + +@@ -40,8 +40,7 @@ + FUSE_HELPER_OPT("debug", foreground), + FUSE_HELPER_OPT("-f", foreground), + FUSE_HELPER_OPT("-s", singlethread), +- FUSE_HELPER_OPT("fsname=", nodefault_subtype), +- FUSE_HELPER_OPT("subtype=", nodefault_subtype), ++ FUSE_HELPER_OPT("fsname=", fsname), + + FUSE_OPT_KEY("-h", KEY_HELP), + FUSE_OPT_KEY("--help", KEY_HELP), +@@ -51,7 +50,6 @@ + FUSE_OPT_KEY("-d", FUSE_OPT_KEY_KEEP), + FUSE_OPT_KEY("debug", FUSE_OPT_KEY_KEEP), + FUSE_OPT_KEY("fsname=", FUSE_OPT_KEY_KEEP), +- FUSE_OPT_KEY("subtype=", FUSE_OPT_KEY_KEEP), + FUSE_OPT_END + }; + +@@ -119,24 +117,24 @@ + } + } + +-static int add_default_subtype(const char *progname, struct fuse_args *args) ++static int add_default_fsname(const char *progname, struct fuse_args *args) + { + int res; +- char *subtype_opt; ++ char *fsname_opt; + const char *basename = strrchr(progname, '/'); + if (basename == NULL) + basename = progname; + else if (basename[1] != '\0') + basename++; + +- subtype_opt = (char *) malloc(strlen(basename) + 64); +- if (subtype_opt == NULL) { ++ fsname_opt = (char *) malloc(strlen(basename) + 64); ++ if (fsname_opt == NULL) { + fprintf(stderr, "fuse: memory allocation failed\n"); + return -1; + } +- sprintf(subtype_opt, "-osubtype=%s", basename); +- res = fuse_opt_add_arg(args, subtype_opt); +- free(subtype_opt); ++ sprintf(fsname_opt, "-ofsname=%s", basename); ++ res = fuse_opt_add_arg(args, fsname_opt); ++ free(fsname_opt); + return res; + } + +@@ -151,8 +149,8 @@ + if (res == -1) + return -1; + +- if (!hopts.nodefault_subtype) { +- res = add_default_subtype(args->argv[0], args); ++ if (!hopts.fsname) { ++ res = add_default_fsname(args->argv[0], args); + if (res == -1) + goto err; + } +@@ -331,11 +329,6 @@ + { + fprintf(stderr, "fuse_main(): This function does not exist\n"); + return -1; +-} +- +-int fuse_version(void) +-{ +- return FUSE_VERSION; + } + + #include "fuse_compat.h" +--- ../fuse-2.7.0/lib/mount_util.c Mon Jul 2 13:32:17 2007 ++++ lib/mount_util.c Thu May 3 13:56:37 2007 +@@ -193,20 +193,3 @@ + } + return 0; + } +- +-int fuse_mnt_check_fuseblk(void) +-{ +- char buf[256]; +- FILE *f = fopen("/proc/filesystems", "r"); +- if (!f) +- return 1; +- +- while (fgets(buf, sizeof(buf), f)) +- if (strstr(buf, "fuseblk\n")) { +- fclose(f); +- return 1; +- } +- +- fclose(f); +- return 0; +-} +--- ../fuse-2.7.0/lib/mount_util.h Mon Jul 2 13:32:17 2007 ++++ lib/mount_util.h Wed May 2 16:34:03 2007 +@@ -14,4 +14,3 @@ + char *fuse_mnt_resolve_path(const char *progname, const char *orig); + int fuse_mnt_check_empty(const char *progname, const char *mnt, + mode_t rootmode, off_t rootsize); +-int fuse_mnt_check_fuseblk(void); |