Ticket #11481: Portfile

File Portfile, 1.5 KB (added by yunzheng.hu@…, 17 years ago)

Portfile for fuse/encfs

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name            encfs
6version         1.3.2
7revision        1
8categories      fuse
9platforms       darwin
10maintainers     nomaintainer@macports.org
11description     An encrypted pass-through FUSE filesystem
12
13long_description EncFS is an encrypted pass-through filesystem which \
14                 runs in userspace, using the FUSE kernel module.  \
15                 Similar in design to CFS and other pass-through \
16                 filesystems, all data is encrypted and stored in the \
17                 underlying filesystem.  Unlike loopback filesystems, \
18                 there is no predetermined or pre-allocated filesystem size.
19
20homepage        http://arg0.net/encfs
21
22distname        ${name}-${version}-${revision}
23master_sites    http://arg0.net/vgough/download
24extract.suffix  .tgz
25worksrcdir      ${name}-${version}
26checksums       md5 71482dbe0e158ee9ba522ae637337230 \
27                sha1 6b200c9f7e0118e974384a5daa6c9b3301df076e
28
29depends_lib     port:rlog \
30                port:openssl
31depends_run     port:fusefs
32
33configure.env   CPPFLAGS="-${prefix}/include -DHAVE_SSL -D__FreeBSD__=10" \
34                LDFLAGS="-L${prefix}/lib -lcrypto -lfuse"
35
36post-configure {
37    reinplace "s|^\\(#define _Config_incl_$\\)|\\1\\\n#include \"../config.h\"|g" \
38        ${worksrcpath}/encfs/config.h
39    reinplace "s|\\(::getxattr.*\\)\);|\\1, 0, 0);|g" ${worksrcpath}/encfs/encfs.cpp
40    reinplace "s|\\(::listxattr.*\\)\);|\\1, 0);|g" ${worksrcpath}/encfs/encfs.cpp
41    reinplace "s|\\(::removexattr.*\\)\);|\\1, 0);|g" ${worksrcpath}/encfs/encfs.cpp
42    reinplace "s|\\(::setxattr.*\\)\);|\\1, 0);|g" ${worksrcpath}/encfs/encfs.cpp
43}