summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2018-06-05 11:55:22 +0800
committerJason Zaman <perfinion@gentoo.org>2018-06-05 12:31:52 +0800
commitbd7631ab861eadb40adb4c5386b1519b2c9dde5c (patch)
treeb08cef8fcea97c05104bed01faec1f9eb5af447d /sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild
parentmedia-video/mediainfo: remove old (diff)
downloadgentoo-bd7631ab861eadb40adb4c5386b1519b2c9dde5c.tar.gz
gentoo-bd7631ab861eadb40adb4c5386b1519b2c9dde5c.tar.bz2
gentoo-bd7631ab861eadb40adb4c5386b1519b2c9dde5c.zip
sys-fs/cachefilesd: bump 0.10.10
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild')
-rw-r--r--sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild b/sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild
new file mode 100644
index 00000000000..629ffd58c2c
--- /dev/null
+++ b/sys-fs/cachefilesd/cachefilesd-0.10.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit flag-o-matic systemd toolchain-funcs
+
+DESCRIPTION="Provides a caching directory on an already mounted filesystem"
+HOMEPAGE="https://people.redhat.com/~dhowells/fscache/"
+SRC_URI="https://people.redhat.com/~dhowells/fscache/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-cachefilesd )"
+DEPEND=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.10.9-makefile.patch
+)
+
+src_prepare() {
+ default
+ if ! use selinux; then
+ sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die
+ fi
+
+ tc-export CC
+ append-flags -fpie
+}
+
+src_install() {
+ default
+
+ if use selinux; then
+ insinto /usr/share/doc/${P}
+ doins -r selinux
+ fi
+
+ dodoc howto.txt
+
+ newconfd "${FILESDIR}"/${PN}.conf ${PN}
+ newinitd "${FILESDIR}"/${PN}-3.init ${PN}
+
+ systemd_dounit ${PN}.service
+ systemd_newtmpfilesd "${FILESDIR}"/${PN}-tmpfiles.d ${PN}.conf
+}
+
+pkg_postinst() {
+ [[ -d /var/cache/fscache ]] && return
+ elog "Before CacheFiles can be used, a directory for local storage"
+ elog "must be created. The default configuration of /etc/cachefilesd.conf"
+ elog "uses /var/cache/fscache. The filesystem mounted there must support"
+ elog "extended attributes (mount -o user_xattr)."
+ echo ""
+ elog "Once that is taken care of, start the daemon, add -o ...,fsc"
+ elog "to the mount options of your network mounts, and let it fly!"
+}