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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 22 12:28:42 2013 UTC (4 years, 9 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
sys-fs/cachefilesd: Drop old

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

1 # Copyright 1999-2011 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.ebuild,v 1.1 2011/12/06 16:14:52 jlec Exp $
4
5 EAPI=4
6
7 inherit eutils 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 IUSE="doc selinux"
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17
18 src_prepare() {
19 epatch "${FILESDIR}"/0.10.4-makefile.patch
20 tc-export CC
21 if ! use selinux; then
22 sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die
23 fi
24 }
25
26 src_install() {
27 default
28
29 if use selinux; then
30 insinto /usr/share/doc/${P}
31 doins -r selinux
32 fi
33
34 dodoc howto.txt
35
36 newconfd "${FILESDIR}"/cachefilesd.conf ${PN}
37 newinitd "${FILESDIR}"/cachefilesd.init ${PN}
38
39 keepdir /var/cache/fscache
40 }
41
42 pkg_postinst() {
43 [[ -d /var/cache/fscache ]] && return
44 elog "Before CacheFiles can be used, a directory for local storage"
45 elog "must be created. The default configuration of /etc/cachefilesd.conf"
46 elog "uses /var/cache/fscache. The filesystem mounted there must support"
47 elog "extended attributes (mount -o user_xattr)."
48 echo ""
49 elog "Once that is taken care of, start the daemon, add -o ...,fsc"
50 elog "to the mount options of your network mounts, and let it fly!"
51 }

  ViewVC Help
Powered by ViewVC 1.1.20