/[gentoo-x86]/sys-fs/cachefilesd/cachefilesd-0.10.5-r2.ebuild
Gentoo

Contents of /sys-fs/cachefilesd/cachefilesd-0.10.5-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Jan 26 11:41:42 2015 UTC (2 years, 8 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
sys-fs/cachefilesd: Drop old

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r2.ebuild,v 1.5 2014/11/02 10:11:03 swift Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic systemd toolchain-funcs
8
9 DESCRIPTION="Provides a caching directory on an already mounted filesystem"
10 HOMEPAGE="http://people.redhat.com/~dhowells/fscache/"
11 SRC_URI="http://people.redhat.com/~dhowells/fscache/${P}.tar.bz2 -> ${P}.tar"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="amd64 x86"
16 IUSE="doc selinux"
17
18 RDEPEND="selinux? ( sec-policy/selinux-cachefilesd )"
19 DEPEND=""
20
21 src_prepare() {
22 epatch "${FILESDIR}"/0.10.4-makefile.patch
23 tc-export CC
24 if ! use selinux; then
25 sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die
26 fi
27
28 append-flags -fpie
29 }
30
31 src_install() {
32 default
33
34 if use selinux; then
35 insinto /usr/share/doc/${P}
36 doins -r selinux
37 fi
38
39 dodoc howto.txt
40
41 newconfd "${FILESDIR}"/cachefilesd.conf ${PN}
42 newinitd "${FILESDIR}"/cachefilesd.init ${PN}
43
44 systemd_dounit ${PN}.service
45
46 keepdir /var/cache/fscache
47 }
48
49 pkg_postinst() {
50 [[ -d /var/cache/fscache ]] && return
51 elog "Before CacheFiles can be used, a directory for local storage"
52 elog "must be created. The default configuration of /etc/cachefilesd.conf"
53 elog "uses /var/cache/fscache. The filesystem mounted there must support"
54 elog "extended attributes (mount -o user_xattr)."
55 echo ""
56 elog "Once that is taken care of, start the daemon, add -o ...,fsc"
57 elog "to the mount options of your network mounts, and let it fly!"
58 }

  ViewVC Help
Powered by ViewVC 1.1.20