View | Details | Raw Unified | Return to bug 142716
Collapse All | Expand All

(-)/usr/ports/sysutils/fusefs-mhddfs_29/Makefile (-1 / +2 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	mhddfs
8
PORTNAME=	mhddfs
9
PORTVERSION=	0.1.23
9
PORTVERSION=	0.1.29
10
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
11
MASTER_SITES=	http://mhddfs.uvw.ru/downloads/
11
MASTER_SITES=	http://mhddfs.uvw.ru/downloads/
12
PKGNAMEPREFIX=	fusefs-
12
PKGNAMEPREFIX=	fusefs-
Lines 19-24 Link Here
19
RUN_DEPENDS=	${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
19
RUN_DEPENDS=	${LOCALBASE}/modules/fuse.ko:${PORTSDIR}/sysutils/fusefs-kmod
20
20
21
USE_GMAKE=	yes
21
USE_GMAKE=	yes
22
MAKE_ARGS=	WITHOUT_XATTR=1
22
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
23
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
23
24
24
MAN1=		${PORTNAME}.1
25
MAN1=		${PORTNAME}.1
(-)/usr/ports/sysutils/fusefs-mhddfs_29/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (mhddfs_0.1.23.tar.gz) = 7b35c1299257dedca05c63d016299017
1
MD5 (mhddfs_0.1.29.tar.gz) = 82491c20c9eb06fc467e70371619cd85
2
SHA256 (mhddfs_0.1.23.tar.gz) = 04bd420ca94211fd01d745f639fe67b6095cc043ee7281726d7456d5ea23ed71
2
SHA256 (mhddfs_0.1.29.tar.gz) = 6b5fa0169234dbd0d438bda71a259aefadf2f90a8ff8d43a2089d90eea05ee59
3
SIZE (mhddfs_0.1.23.tar.gz) = 33231
3
SIZE (mhddfs_0.1.29.tar.gz) = 36938
(-)/usr/ports/sysutils/fusefs-mhddfs_29/files/patch-src-main.c (-11 lines)
Lines 1-11 Link Here
1
--- src/main.c.orig	2009-06-25 05:11:08.000000000 +0400
2
+++ src/main.c	2009-06-25 05:23:57.000000000 +0400
3
@@ -755,7 +755,7 @@
4
     return -errno;
5
 }
6
 
7
-#if _POSIX_SYNCHRONIZED_IO + 0 > 0
8
+#if _POSIX_SYNCHRONIZED_IO + 0 > 0 || defined(__FreeBSD__)
9
 #undef HAVE_FDATASYNC
10
 #else
11
 #define HAVE_FDATASYNC 1
(-)/usr/ports/sysutils/fusefs-mhddfs_29/files/patch-src-tools.c (+57 lines)
Line 0 Link Here
1
--- src/tools.c.orig	2010-01-11 15:48:46.000000000 +0300
2
+++ src/tools.c	2010-01-11 15:53:42.000000000 +0300
3
@@ -30,7 +30,10 @@
4
 #include <fcntl.h>
5
 #include <sys/types.h>
6
 #include <dirent.h>
7
+
8
+#ifndef WITHOUT_XATTR
9
 #include <attr/xattr.h>
10
+#endif
11
 
12
 #include "tools.h"
13
 #include "debug.h"
14
@@ -262,11 +265,13 @@
15
 	ftime.modtime = st.st_mtime;
16
 	utime(to, &ftime);
17
 
18
+#ifndef WITHOUT_XATTR
19
         // extended attributes
20
         if (copy_xattrs(from, to) == -1)
21
             mhdd_debug(MHDD_MSG,
22
                     "copy_xattrs: error copying xattrs from %s to %s\n",
23
                     from, to);
24
+#endif
25
 
26
 
27
 	from = strdup(from);
28
@@ -282,6 +287,7 @@
29
 	return ret;
30
 }
31
 
32
+#ifndef WITHOUT_XATTR
33
 int copy_xattrs(const char *from, const char *to)
34
 {
35
         int listsize=0, attrvalsize=0;
36
@@ -350,6 +356,7 @@
37
         free(listbuf);
38
         return 0;
39
 }
40
+#endif
41
 
42
 char * create_path(const char *dir, const char * file)
43
 {
44
@@ -465,11 +472,13 @@
45
 			strerror(errno));
46
 	}
47
 
48
+#ifndef WITHOUT_XATTR
49
         // copy extended attributes of parent dir
50
         if (copy_xattrs(exists, path_parent) == -1)
51
             mhdd_debug(MHDD_MSG,
52
                     "copy_xattrs: error copying xattrs from %s to %s\n",
53
                     exists, path_parent);
54
+#endif
55
 
56
 	free(exists);
57
 	free(path_parent);

Return to bug 142716