Gentoo Archives: gentoo-commits

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/cachefilesd: cachefilesd-0.10.5-r3.ebuild ChangeLog
Date: Sun, 08 Jun 2014 13:13:29
Message-Id: 20140608131323.BAE8E2004F@flycatcher.gentoo.org
1 swift 14/06/08 13:13:23
2
3 Modified: ChangeLog
4 Added: cachefilesd-0.10.5-r3.ebuild
5 Log:
6 Fix bug #509708 - Update cachefilesd init script to handle SELinux support
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
9
10 Revision Changes Path
11 1.12 sys-fs/cachefilesd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/ChangeLog?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/ChangeLog?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/ChangeLog?r1=1.11&r2=1.12
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/ChangeLog,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- ChangeLog 18 Apr 2014 19:57:51 -0000 1.11
24 +++ ChangeLog 8 Jun 2014 13:13:23 -0000 1.12
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-fs/cachefilesd
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/ChangeLog,v 1.11 2014/04/18 19:57:51 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/ChangeLog,v 1.12 2014/06/08 13:13:23 swift Exp $
30 +
31 +*cachefilesd-0.10.5-r3 (08 Jun 2014)
32 +
33 + 08 Jun 2014; Sven Vermeulen <swift@g.o> +cachefilesd-0.10.5-r3.ebuild,
34 + +files/cachefilesd-2.init:
35 + Fix bug #509708 - Update cachefilesd init script to handle SELinux support
36
37 18 Apr 2014; Sven Vermeulen <swift@g.o> cachefilesd-0.10.5-r2.ebuild:
38 Depend on selinux-cachefilesd if USE=selinux is set
39
40
41
42 1.1 sys-fs/cachefilesd/cachefilesd-0.10.5-r3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cachefilesd-0.10.5-r3.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/cachefilesd/cachefilesd-0.10.5-r3.ebuild,v 1.1 2014/06/08 13:13:23 swift Exp $
52
53 EAPI=5
54
55 inherit eutils flag-o-matic systemd toolchain-funcs
56
57 DESCRIPTION="Provides a caching directory on an already mounted filesystem"
58 HOMEPAGE="http://people.redhat.com/~dhowells/fscache/"
59 SRC_URI="http://people.redhat.com/~dhowells/fscache/${P}.tar.bz2 -> ${P}.tar"
60
61 SLOT="0"
62 LICENSE="GPL-2"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="doc selinux"
65
66 DEPEND="selinux? ( sec-policy/selinux-cachefilesd )"
67 RDEPEND="${DEPEND}"
68
69 src_prepare() {
70 epatch "${FILESDIR}"/0.10.4-makefile.patch
71 tc-export CC
72 if ! use selinux; then
73 sed -e '/^secctx/s:^:#:g' -i cachefilesd.conf || die
74 fi
75
76 append-flags -fpie
77 }
78
79 src_install() {
80 default
81
82 if use selinux; then
83 insinto /usr/share/doc/${P}
84 doins -r selinux
85 fi
86
87 dodoc howto.txt
88
89 newconfd "${FILESDIR}"/cachefilesd.conf ${PN}
90 newinitd "${FILESDIR}"/cachefilesd-2.init ${PN}
91
92 systemd_dounit ${PN}.service
93
94 keepdir /var/cache/fscache
95 }
96
97 pkg_postinst() {
98 [[ -d /var/cache/fscache ]] && return
99 elog "Before CacheFiles can be used, a directory for local storage"
100 elog "must be created. The default configuration of /etc/cachefilesd.conf"
101 elog "uses /var/cache/fscache. The filesystem mounted there must support"
102 elog "extended attributes (mount -o user_xattr)."
103 echo ""
104 elog "Once that is taken care of, start the daemon, add -o ...,fsc"
105 elog "to the mount options of your network mounts, and let it fly!"
106 }