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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Sep 19 19:55:44 2010 UTC (7 years, 3 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
/var/cache/fscache

(Portage version: 2.2_rc84/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.1.ebuild,v 1.1 2010/09/19 08:08:16 jlec Exp $
4
5 EAPI="2"
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"
12
13 IUSE="doc selinux"
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17
18 src_prepare() {
19 epatch "${FILESDIR}"/${PV}-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 src_install() {
26 emake DESTDIR="${D}" install || die "install failed"
27
28 if use selinux; then
29 insinto /usr/share/doc/${P}
30 doins -r selinux || die
31 fi
32
33 dodoc README howto.txt || die
34
35 newconfd "${FILESDIR}"/cachefilesd.conf cachefilesd || die
36 newinitd "${FILESDIR}"/cachefilesd.init cachefilesd || die
37
38 keepdir /var/cache/cachefilesd
39 }
40
41 pkg_postinst() {
42 [[ -d /var/fscache ]] && return
43 elog "Before CacheFiles can be used, a directory for local storage"
44 elog "must be created. The default configuration of /etc/cachefilesd.conf"
45 elog "uses /var/fscache. The filesystem mounted there must support"
46 elog "extended attributes (mount -o user_xattr)."
47 elog ""
48 elog "Once that is taken care of, start the daemon, add -o ...,fsc"
49 elog "to the mount options of your network mounts, and let it fly!"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20