From 8175731adc1d2b989b9e46f978728cac85140a3f Mon Sep 17 00:00:00 2001 From: sth Date: Sat, 14 Nov 2015 14:27:41 +0100 Subject: [PATCH] New package: tmfs-r5 --- srcpkgs/tmfs/patches/S_IFDIR.patch | 13 +++++++++++++ srcpkgs/tmfs/template | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/tmfs/patches/S_IFDIR.patch create mode 100644 srcpkgs/tmfs/template diff --git a/srcpkgs/tmfs/patches/S_IFDIR.patch b/srcpkgs/tmfs/patches/S_IFDIR.patch new file mode 100644 index 00000000000..94035ed1c08 --- /dev/null +++ b/srcpkgs/tmfs/patches/S_IFDIR.patch @@ -0,0 +1,13 @@ +diff --git src/readdir.cc src/readdir.cc +index 9b31232..94000bc 100644 +--- src/readdir.cc ++++ src/readdir.cc +@@ -13,7 +13,7 @@ int tmfs_readdir(const char * path, void * buf, fuse_fill_dir_t filler_cb, off_t + struct stat stbuf; + + // report ./ and ../ +- stbuf.st_mode = __S_IFDIR | 0755; ++ stbuf.st_mode = S_IFDIR | 0755; + stbuf.st_nlink = 2; + filler_cb(buf, ".", &stbuf, 0); + filler_cb(buf, "..", &stbuf, 0); diff --git a/srcpkgs/tmfs/template b/srcpkgs/tmfs/template new file mode 100644 index 00000000000..70fdd2a9053 --- /dev/null +++ b/srcpkgs/tmfs/template @@ -0,0 +1,16 @@ +# Template file for 'tmfs' +pkgname=tmfs +version=r5 +revision=1 +build_style=cmake +hostmakedepends="cmake pkg-config" +makedepends="fuse-devel boost-devel" +short_desc="Apple Time Machine read-only mounting utility" +maintainer="sth " +license="MIT" +homepage="https://github.com/abique/tmfs" +distfiles="https://github.com/abique/tmfs/archive/${version}.tar.gz" +checksum="897ad09e21ddd8e912dc1baba4466d8a65a09b3abdeb31e4640c2d770915f2f4" +post_install() { + vlicense LICENSE +}