View | Details | Raw Unified | Return to bug 210196 | Differences between
and this patch

Collapse All | Expand All

(-)sysutils/fusefs-encfs/Makefile (-14 / +12 lines)
Lines 2-32 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	encfs
4
PORTNAME=	encfs
5
PORTVERSION=	1.7.4
5
PORTVERSION=	1.8.1
6
PORTREVISION=	7
6
DISTVERSIONPREFIX=	v
7
CATEGORIES=	sysutils
7
CATEGORIES=	sysutils
8
MASTER_SITES=	GOOGLE_CODE
9
PKGNAMEPREFIX=	fusefs-
8
PKGNAMEPREFIX=	fusefs-
10
9
11
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	dg@syrec.org
12
COMMENT=	Encrypted pass-through FUSE filesystem
11
COMMENT=	Encrypted pass-through FUSE filesystem
13
12
14
BROKEN_powerpc64=	Does not build
13
LICENSE=	GPLv3
15
14
16
LIB_DEPENDS=	librlog.so:devel/rlog \
15
LIB_DEPENDS=	librlog.so:devel/rlog \
17
		libboost_serialization.so:devel/boost-libs
16
		libboost_serialization.so:devel/boost-libs
18
17
19
BROKEN_sparc64=	cannot link with boost
18
BROKEN_powerpc64=	does not build
19
BROKEN_sparc64=		cannot link with boost
20
20
21
WRKSRC=		${WRKDIR}/encfs-${PORTVERSION}
21
WRKSRC=		${WRKDIR}/encfs-${PORTVERSION}
22
22
23
USES=		compiler:c++11-lib fuse autoreconf libtool pkgconfig
24
USE_GITHUB=	yes
25
GH_ACCOUNT=	vgough
23
GNU_CONFIGURE=	yes
26
GNU_CONFIGURE=	yes
24
CONFIGURE_ARGS=	--with-boost-serialization=boost_serialization \
27
CONFIGURE_ARGS=	--with-boost-serialization=boost_serialization
25
		--with-boost-system=boost_system \
26
		--with-boost-filesystem=boost_filesystem
27
CPPFLAGS+=	-I${LOCALBASE}/include
28
CPPFLAGS+=	-I${LOCALBASE}/include
28
LDFLAGS+=	-L${LOCALBASE}/lib
29
LDFLAGS+=	-L${LOCALBASE}/lib
29
USES=		fuse gmake libtool pkgconfig tar:tgz
30
USE_LDCONFIG=	yes
30
USE_LDCONFIG=	yes
31
USE_OPENSSL=	yes
31
USE_OPENSSL=	yes
32
INSTALL_TARGET=	install-strip
32
INSTALL_TARGET=	install-strip
Lines 36-45 Link Here
36
NLS_USES=	gettext
36
NLS_USES=	gettext
37
NLS_CONFIGURE_ENABLE=	nls
37
NLS_CONFIGURE_ENABLE=	nls
38
38
39
post-patch:
39
pre-configure:
40
	@${REINPLACE_CMD} '/OPENSSL_LIBS=/s/-lssl/& -lcrypto/' \
40
	@${REINPLACE_CMD} '/OPENSSL_LIBS=/s/-lssl/& -lcrypto/' \
41
		${WRKSRC}/configure
41
		${WRKSRC}/configure.ac
42
	@${FIND} ${WRKSRC}/encfs -type f | ${XARGS} ${REINPLACE_CMD} -E \
43
		's/(^|[[:space:]])(shared_ptr)/\1boost::\2/g'
44
42
45
.include <bsd.port.mk>
43
.include <bsd.port.mk>
(-)sysutils/fusefs-encfs/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (encfs-1.7.4.tgz) = 282ef0f04f2dd7ba3527b45621fab485b7cc510c2ceee116600d0348dc2170a8
1
TIMESTAMP = 1465595410
2
SIZE (encfs-1.7.4.tgz) = 931048
2
SHA256 (vgough-encfs-v1.8.1_GH0.tar.gz) = ed6b69d8aba06382ad01116bbce2e4ad49f8de85cdf4e2fab7ee4ac82af537e9
3
SIZE (vgough-encfs-v1.8.1_GH0.tar.gz) = 316534
(-)sysutils/fusefs-encfs/files/patch-encfs__encfsctl.cpp (-12 lines)
Lines 1-12 Link Here
1
--- encfs/encfsctl.cpp.orig	2014-08-17 19:49:24 UTC
2
+++ encfs/encfsctl.cpp
3
@@ -40,7 +40,8 @@
4
 #include <sys/stat.h>
5
 #include <fcntl.h>
6
 #ifdef __FreeBSD__
7
-#include <libintl.h>
8
+#include "gettext.h"
9
+#include <climits>
10
 #endif
11
 
12
 #include "i18n.h"
(-)sysutils/fusefs-encfs/files/patch-encfs_encfs.cpp (+20 lines)
Line 0 Link Here
1
--- encfs/encfs.cpp.orig	2015-03-24 20:45:16 UTC
2
+++ encfs/encfs.cpp
3
@@ -529,6 +529,17 @@ int encfs_open(const char *path, struct 
4
   return res;
5
 }
6
 
7
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *file)
8
+{
9
+  int res;
10
+
11
+  res = encfs_mknod(path, mode, 0);
12
+  if (res)
13
+    return res;
14
+
15
+  return encfs_open(path, file);
16
+}
17
+
18
 int _do_flush(FileNode *fnode) {
19
   /* Flush can be called multiple times for an open file, so it doesn't
20
      close the file.  However it is important to call close() for some
(-)sysutils/fusefs-encfs/files/patch-encfs_encfs.h (+10 lines)
Line 0 Link Here
1
--- encfs/encfs.h.orig	2015-03-24 20:45:16 UTC
2
+++ encfs/encfs.h
3
@@ -74,6 +74,7 @@ int encfs_chown(const char *path, uid_t 
4
 int encfs_truncate(const char *path, off_t size);
5
 int encfs_ftruncate(const char *path, off_t size, struct fuse_file_info *fi);
6
 int encfs_utime(const char *path, struct utimbuf *buf);
7
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *info);
8
 int encfs_open(const char *path, struct fuse_file_info *info);
9
 int encfs_release(const char *path, struct fuse_file_info *info);
10
 int encfs_read(const char *path, char *buf, size_t size, off_t offset,
(-)sysutils/fusefs-encfs/files/patch-encfs_main.cpp (+10 lines)
Line 0 Link Here
1
--- encfs/main.cpp.orig	2016-06-18 20:53:13 UTC
2
+++ encfs/main.cpp
3
@@ -27,6 +27,7 @@
4
 #include <sys/time.h>
5
 #include <cerrno>
6
 #include <cstring>
7
+#include <cstdlib>
8
 
9
 #include <getopt.h>
10
 
(-)sysutils/fusefs-encfs/files/patch-encfs_makeKey.cpp (+10 lines)
Line 0 Link Here
1
--- encfs/makeKey.cpp.orig	2016-06-18 20:53:44 UTC
2
+++ encfs/makeKey.cpp
3
@@ -25,6 +25,7 @@
4
 #include "openssl.h"
5
 
6
 #include <iostream>
7
+#include <cstdlib>
8
 
9
 #include <sys/types.h>
10
 #include <unistd.h>
(-)sysutils/fusefs-encfs/files/patch-implement-encf_create (-46 lines)
Lines 1-46 Link Here
1
As described in PR 192563
2
3
--- encfs/encfs.cpp.orig	2014-04-21 15:10:48.592664000 +0000
4
+++ encfs/encfs.cpp
5
@@ -587,6 +587,19 @@
6
     return res;
7
 }
8
 
9
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *file)
10
+{
11
+    int res;
12
+    
13
+    res = encfs_mknod(path, mode, 0);
14
+    if (res)
15
+        return res;
16
+    
17
+    res = encfs_open(path, file);
18
+    
19
+    return res;
20
+}
21
+
22
 int _do_flush(FileNode *fnode, int )
23
 {
24
     /* Flush can be called multiple times for an open file, so it doesn't
25
--- encfs/encfs.h.orig	2014-04-21 15:10:48.592664000 +0000
26
+++ encfs/encfs.h
27
@@ -74,6 +74,7 @@
28
 	struct fuse_file_info *fi);
29
 int encfs_utime(const char *path, struct utimbuf *buf);
30
 int encfs_open(const char *path, struct fuse_file_info *info);
31
+int encfs_create(const char *path, mode_t mode, struct fuse_file_info *info);
32
 int encfs_release(const char *path, struct fuse_file_info *info);
33
 int encfs_read(const char *path, char *buf, size_t size, off_t offset,
34
 	struct fuse_file_info *info);
35
diff -ur encfs-1.7.4.orig/encfs/main.cpp encfs-1.7.4/encfs/main.cpp
36
--- encfs/main.cpp.orig	2014-04-21 15:10:48.592664000 +0000
37
+++ encfs/main.cpp
38
@@ -563,7 +563,7 @@
39
     encfs_oper.init = encfs_init;
40
     encfs_oper.destroy = encfs_destroy;
41
     //encfs_oper.access = encfs_access;
42
-    //encfs_oper.create = encfs_create;
43
+    encfs_oper.create = encfs_create;
44
     encfs_oper.ftruncate = encfs_ftruncate;
45
     encfs_oper.fgetattr = encfs_fgetattr;
46
     //encfs_oper.lock = encfs_lock;
(-)sysutils/fusefs-encfs/pkg-plist (-6 / +1 lines)
Lines 3-9 Link Here
3
bin/encfssh
3
bin/encfssh
4
lib/libencfs.so
4
lib/libencfs.so
5
lib/libencfs.so.6
5
lib/libencfs.so.6
6
lib/libencfs.so.6.0.1
6
lib/libencfs.so.6.0.2
7
man/man1/encfs.1.gz
7
man/man1/encfs.1.gz
8
man/man1/encfsctl.1.gz
8
man/man1/encfsctl.1.gz
9
%%NLS%%share/locale/ar/LC_MESSAGES/encfs.mo
9
%%NLS%%share/locale/ar/LC_MESSAGES/encfs.mo
Lines 31-47 Link Here
31
%%NLS%%share/locale/fr_FR/LC_MESSAGES/encfs.mo
31
%%NLS%%share/locale/fr_FR/LC_MESSAGES/encfs.mo
32
%%NLS%%share/locale/gl/LC_MESSAGES/encfs.mo
32
%%NLS%%share/locale/gl/LC_MESSAGES/encfs.mo
33
%%NLS%%share/locale/he/LC_MESSAGES/encfs.mo
33
%%NLS%%share/locale/he/LC_MESSAGES/encfs.mo
34
%%NLS%%share/locale/hi/LC_MESSAGES/encfs.mo
35
%%NLS%%share/locale/hr/LC_MESSAGES/encfs.mo
34
%%NLS%%share/locale/hr/LC_MESSAGES/encfs.mo
36
%%NLS%%share/locale/hu/LC_MESSAGES/encfs.mo
35
%%NLS%%share/locale/hu/LC_MESSAGES/encfs.mo
37
%%NLS%%share/locale/hu_HU/LC_MESSAGES/encfs.mo
38
%%NLS%%share/locale/id/LC_MESSAGES/encfs.mo
36
%%NLS%%share/locale/id/LC_MESSAGES/encfs.mo
39
%%NLS%%share/locale/it/LC_MESSAGES/encfs.mo
37
%%NLS%%share/locale/it/LC_MESSAGES/encfs.mo
40
%%NLS%%share/locale/ja/LC_MESSAGES/encfs.mo
38
%%NLS%%share/locale/ja/LC_MESSAGES/encfs.mo
41
%%NLS%%share/locale/ka/LC_MESSAGES/encfs.mo
42
%%NLS%%share/locale/ko/LC_MESSAGES/encfs.mo
39
%%NLS%%share/locale/ko/LC_MESSAGES/encfs.mo
43
%%NLS%%share/locale/lv/LC_MESSAGES/encfs.mo
40
%%NLS%%share/locale/lv/LC_MESSAGES/encfs.mo
44
%%NLS%%share/locale/mr/LC_MESSAGES/encfs.mo
45
%%NLS%%share/locale/nb/LC_MESSAGES/encfs.mo
41
%%NLS%%share/locale/nb/LC_MESSAGES/encfs.mo
46
%%NLS%%share/locale/nds/LC_MESSAGES/encfs.mo
42
%%NLS%%share/locale/nds/LC_MESSAGES/encfs.mo
47
%%NLS%%share/locale/nl/LC_MESSAGES/encfs.mo
43
%%NLS%%share/locale/nl/LC_MESSAGES/encfs.mo
Lines 57-63 Link Here
57
%%NLS%%share/locale/sr/LC_MESSAGES/encfs.mo
53
%%NLS%%share/locale/sr/LC_MESSAGES/encfs.mo
58
%%NLS%%share/locale/sv/LC_MESSAGES/encfs.mo
54
%%NLS%%share/locale/sv/LC_MESSAGES/encfs.mo
59
%%NLS%%share/locale/ta/LC_MESSAGES/encfs.mo
55
%%NLS%%share/locale/ta/LC_MESSAGES/encfs.mo
60
%%NLS%%share/locale/te/LC_MESSAGES/encfs.mo
61
%%NLS%%share/locale/tr/LC_MESSAGES/encfs.mo
56
%%NLS%%share/locale/tr/LC_MESSAGES/encfs.mo
62
%%NLS%%share/locale/uk/LC_MESSAGES/encfs.mo
57
%%NLS%%share/locale/uk/LC_MESSAGES/encfs.mo
63
%%NLS%%share/locale/vi/LC_MESSAGES/encfs.mo
58
%%NLS%%share/locale/vi/LC_MESSAGES/encfs.mo

Return to bug 210196